AppMeasurement sends two kinds of server calls. s.t() records a page view.
s.tl() records a link or custom interaction without counting a page view. Use the controls
below to see the call each interaction makes. The console shows a simulated beacon; nothing is sent.
Report suite
jwiedeman.sandbox
Endpoint
https://metrics-demo.sc.omtrdc.net/b/ss/.../s
linkName: cta:request-demo · linkType: o
Custom link: demo request
A button click tracked with s.tl() and link type o (custom link).
linkTrackVars and linkTrackEvents list the variables and events the call
may send. Anything not listed is dropped.
Link type d reports the click as a file download. Type e is used for exit
links. AppMeasurement can track both automatically with trackDownloadLinks and
trackExternalLinks; the explicit call below adds custom variables.
Commerce events use the reserved names prodView, scOpen,
scAdd, scRemove, scCheckout and purchase.
s.products is a comma-separated list of products in the form
category;product;quantity;price;events;eVars. Quantity and price are only counted on
purchase.
events
scAdd
products
Plans;pro-annual
s.tl(this, 'o', 'cart:add', {
linkTrackVars: 'events,products',
linkTrackEvents: 'scAdd',
events: 'scAdd',
products: 'Plans;pro-annual'
});
// On the order confirmation page (s.t()):
s.events = 'purchase';
s.purchaseID = 'ORD-10042';
s.products = 'Plans;pro-annual;1;199.00';
Page view variables
The s.t() call on page load sends every variable that is set on the s
object. Props hold values for the current hit only. eVars persist according to their expiration
setting, so later conversions can be credited to them.
propN: traffic variable. Hit-scoped, used for pathing and counts.
eVarN: conversion variable. Persists until it expires; success events are credited to it.
eventN: custom success event. Counter by default; can be numeric or currency.
contextData: key/value pairs mapped to props and eVars with processing rules.
s.tl(this, type, name): link call. o custom, d download, e exit.
With the Web SDK (alloy.js) the same data is sent as XDM. Page views and link clicks are both
sendEvent calls, distinguished by eventType and
web.webInteraction.