The t() 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.
// Instantiate the tracking object var s = s_gi("examplersid"); // Define config variables and page variables s.trackingServerSecure = "data.example.com"; s.eVar1 = "Example dimension value"; // Compile the variables on the page into an image request to Adobe s.t();
Running the t() method takes all Analytics variables defined and formulates a URL based on those variables. Some Analytics variables determine the URL of the image, while other variables determine query string parameter values.
Adobe receives the image request, then parses the request header, URL, and query string parameters. Data collection servers then return a transparent 1x1 pixel image, invisibly displayed on your site.
Page view tracking call in Adobe Experience Platform Launch
Launch has a dedicated location set a page view tracking call.
- Log in to launch.adobe.com using your AdobeID credentials.
- Click the desired property.
- Go to the Rules tab, then click the desired rule (or create a rule).
- Under Actions, click the '+' icon
- Set the Extension dropdown to Adobe Analytics, and the Action Type to Send Beacon.
- Click the s.t() radio button.
s.t() method in AppMeasurement and Launch custom code editor
Call the s.t() method when you want to send a tracking call to Adobe.
Optionally, you can use an object as an argument to override variable values. See variable overrides for more information.
var y = new Object(); y.eVar1 = "Override value"; s.t(y);
Previous versions of AppMeasurement used several lines of code to call this function. The additional code historically accommodated workarounds for different browsers. Standardization and best practices in modern browsers no longer require this block of code. Only the method call s.t() is needed now.