The tl() method is an important core component to Adobe Analytics. It takes all Analytics variables defined on the page, compiles them into an image request, and sends that data to Adobe data collection servers. It works similarly to the t() method, however this method does not increment page views. It is useful for tracking links and other elements that wouldn't be considered a full page load.
If trackDownloadLinks or trackExternalLinks are enabled, AppMeasurement automatically calls the tl() method to send download link and exit link tracking data. If your organization prefers to have more control over the links to track and their behavior, you can call the tl() method manually. Custom links can only be manually tracked.
s.tl() method in AppMeasurement and Launch custom code editor
Call the s.tl() method when you want to send a tracking call to Adobe.
Optionally, this method accepts several arguments:
s.tl([Link object],[Link type],[Link name],[Override variable]);
Lets you change variable values for a single call. See variable overrides for more information.
var y = new Object(); y.eVar1 = "Override value"; y.linkTrackVars = "eVar1"; s.tl(true,"o","Example custom link",y);
Examples and use cases
Send a basic link tracking call directly inside an HTML link:
<a href="example.html" onClick="s.tl(true,'o','Example link');">Click here</a>
s.linkType = "o"; s.linkName = "Example link"; s.tl();