[Adobe Analytics](/about/adobe-analytics) November 24, 2026

# linkTrackVars, s.tl() and success events in Adobe Analytics

How s.tl() sends custom, download and exit links, why linkTrackVars and linkTrackEvents drop events, and how to set up each success event type.

![](/images/65d75b0ae8d69ef95785a5d6_david-pombar.webp)

**[David Pombar](/authors-guides/david-pombar)** Swiss army knife at Trackingplan

12 min read · 2600 words

A custom link call in Adobe Analytics sends only what you allow it to send. That is the whole job of `linkTrackVars` and `linkTrackEvents`, and it is why a click can arrive in Adobe with its link name and without the event you built the rule for. This guide covers `s.tl()`, the two filters, the success event types and the settings that stop double counting. It is part of our [Adobe Analytics guide for digital analysts](/guides/master-adobe-analytics-digital-analysts-guide); for the full implementation, from report suite to publishing, start with the [Adobe Analytics implementation guide](/guides/implementing-advanced-tracking-adobe-analytics).

Every platform fact here comes from Adobe’s documentation, linked in each section.

## What s.tl() sends

`s.tl()` is the AppMeasurement method for a link tracking call: a hit that is not a page view. A carousel click, a PDF download, an outbound link to a partner, a form step. Link calls do not add page views, and that is the point: a click sent with `s.t()` would count as a page view.

The syntax, from [Adobe’s reference for the method](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/functions/tl-method):

```javascript
s.tl([link object], [link type], [link name], [override variables]);
```

| Argument | Required | What it does |
| --- | --- | --- |
| Link object | Yes | Decides whether the browser waits before leaving the page (`this` or `true`) |
| Link type | Yes | One character: `o` custom, `d` download, `e` exit |
| Link name | Recommended | The value of the Custom link, Download link or Exit link dimension; without it, Adobe uses the `linkURL` variable |
| Override variables | No  | An object that changes variable values for this one call |

The link type decides which report the click lands in. In the request it shows up as `pe=lnk_o`, `pe=lnk_d` or `pe=lnk_e`, with the link name in `pev2` and the URL in `pev1`, as [Adobe’s data insertion variable reference](https://developer.adobe.com/analytics-collection-apis/methods/data-insertion/variable-reference) lists.

A minimal custom link:

```javascript
s.tl(true, "o", "pricing toggle annual");
```

Name links for the report, not for the code. "pricing toggle annual" reads well in a Workspace table six months later; "btn\_click\_3" does not.

## this, true and the 500 ms wait

The first argument exists because a link that leaves the page can kill the request before it goes out.

-   `this` tells AppMeasurement to wait up to 500 ms so the image request has time to leave. If the request goes out sooner, the page navigates straight away. Adobe lists it as the default.
-   `true` means do not wait.

Use `this` on a real `<a>` element that navigates. Use `true` when the call is not tied to a navigation: a toggle, a tab, a video start, a call from a data layer listener.

The wait matters less than it did. Adobe’s note on the method says AppMeasurement turns on `useBeacon` for exit links automatically ([Adobe’s useBeacon page](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/usebeacon) has the details), which sends the hit with `navigator.sendBeacon()`, so the argument is no longer needed in modern browsers. For a download or custom link that navigates, you can set `s.useBeacon = true` before the call; it resets to `false` after each hit.

## linkTrackVars: which variables ride on the link call

`linkTrackVars` is the list of variables a link call is allowed to carry. Whether `s.tl()` sends everything on the `s` object or almost nothing depends on it.

From [Adobe’s reference page for the variable](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackvars):

-   It is a comma-delimited string of variable names, without the `s.` prefix: `"eVar1,eVar2,events,channel,products"`.
-   A variable reaches the hit only if it has a value **and** it is on the list.
-   Empty or undefined (the default is an empty string) sends every variable.
-   `"None"` sends none. Adobe notes that the AppMeasurement code from Code Manager sets it to `"None"`, which is why so many sites send bare link calls until someone fills in the list.
-   It does nothing on page views. `s.t()` ignores it.

```javascript
s.eVar1 = "footer";
s.eVar2 = "logged in";
s.linkTrackVars = "eVar1";
s.tl(true, "o", "newsletter signup");
// The hit carries eVar1. eVar2 has a value but is not on the list, so it stays behind.
```

![Diagram in three columns. On the left, a rule sets eVar7, eVar9 and the events event20 and event21, sets linkTrackVars to eVar7,events and linkTrackEvents to event20, then calls s.tl. In the middle, three checks: the value is set, its name is in linkTrackVars, and for events, it is listed in linkTrackEvents. On the right, the hit Adobe receives: eVar7 and event20 are sent, eVar9 fails check 2 and event21 fails check 3. A band says an empty linkTrackVars sends every variable and None sends none.](/images/adobe-analytics-linktrackvars-link-call-filters.webp)

Every value on a link call passes the same checks. Events have one more than eVars and props.

## linkTrackEvents and the event that never arrives

`linkTrackEvents` does for events what `linkTrackVars` does for variables. It takes a comma-delimited list of event names, again without `s.`: `"event1,event2,event3,purchase"`.

[Adobe’s reference page for it](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackevents) sets three conditions for an event to reach a link hit:

1.  The event is set in `s.events`.
2.  The word `events` is in `linkTrackVars`.
3.  The event is listed in `linkTrackEvents`.

The common bug is a rule that meets two of the three. Adobe’s own example shows the effect:

```javascript
s.events = "event1,event2";
s.linkTrackVars = "events";
s.linkTrackEvents = "event1";
s.tl(this, "o", "Example Custom Link");
// Only event1 is sent. event2 is set but not in linkTrackEvents.
```

The other variant: `linkTrackEvents = "event20"` is there, but `linkTrackVars = "eVar7"` forgot `events`. The call goes out, the link name shows up in the Custom link report, the eVar is set, and the success metric stays at zero. Nothing errors.

Two more things from the same docs:

-   If `linkTrackEvents` is not defined, all events are included.
-   In the Adobe Analytics extension, both lists are filled in for you from the variables and events you set in the interface. If you set a variable or an event in the custom code editor, you have to add it to `linkTrackVars` or `linkTrackEvents` in custom code as well. That is where most of these bugs live.

A wrapper keeps the three lists in step:

```javascript
function trackLink(name, vars, events) {
  var names = Object.keys(vars);
  names.forEach(function (key) { s[key] = vars[key]; });
  if (events) {
    s.events = events;
    s.linkTrackEvents = events;
    names.push("events");
  }
  s.linkTrackVars = names.join(",");
  s.tl(true, "o", name);
}

trackLink("homepage carousel click", { eVar7: "position 3" }, "event20");
```

One function writes the variables, the events and both lists, so a new event cannot be added in one place and forgotten in the other.

## Success events: counter, numeric and currency

A success event is a metric you define, set through `s.events`. Adobe calls them success events, conversion events or custom events; they are the same thing. You enable each one under **Admin > Report Suites > Edit Settings > Conversion > Success Events**, as [Adobe’s report suite admin documentation](https://experienceleague.adobe.com/en/docs/analytics/admin/admin-tools/manage-report-suites/edit-report-suite/conversion-variables/success-event) explains. Most organizations on non-legacy contracts have 1,000.

![The Custom Success Events table in Adobe Analytics report suite settings, with columns for Event, Name, Type, Polarity, Visibility, Description and Unique Event Recording. Five rows from event1 to event5 show types Counter and Currency and visibility options.](/images/adobe-analytics-custom-success-events-settings.webp)

Screenshot: the Custom Success Events settings of a report suite. Image: Adobe, Experience League

There are three types:

| Type | What it records | How you send it |
| --- | --- | --- |
| Counter | That something happened. The default for a new event | `s.events = "event1";` counts one. `s.events = "event1=10";` counts ten |
| Numeric | A number that is not money, such as coupons used in an order. Accepts decimals | `s.events = "event2=4.5";` |
| Currency | An amount of money, such as tax or shipping. Adobe converts it to the report suite currency when the two differ | `s.events = "event3=12.99";` |

The value syntax comes from [Adobe’s events reference](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/events/events-overview). Pick the type before the event collects data. Switching between counter and numeric keeps what was captured; switching to or from currency does not keep historical data available in reporting.

Three settings in the same table change how the event behaves:

-   **Unique Event Recording**: count every time, once per visit, or once per event ID (next section).
-   **Participation**: gives full credit to every dimension item in the visit. Up to 100 custom events; beyond that, build participation metrics in the Calculated Metrics builder.
-   **Visibility**: visible everywhere, builders only, or hidden everywhere. It changes the interface, not data collection.

`s.events` is case-sensitive. `Event1` is not `event1`, and Adobe does not record it.

## Event serialization: count once per ID

A thank-you page that fires a lead event on load counts again on every refresh. Event serialization is Adobe’s answer, described in [Adobe’s event serialization page](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/events/event-serialization).

1.  Set the event’s **Unique Event Recording** to ** Use Event ID** in the report suite settings.
2.  Send an ID with the event, after a colon:

```javascript
s.events = "event1:LEAD8812";
s.events = "event1:LEAD8812,event2:LEAD8812";
```

The rules:

-   IDs are alphanumeric, up to 20 bytes. Longer values are cut to the first 20 bytes.
-   De-duplication is global across all visitors, and it does not expire. An ID used once is ignored forever on that event.
-   Each event has its own table, so the same ID on `event1` and `event2` counts once on each.
-   An event with serialization enabled but no ID is always counted.
-   Data Sources does not support it.

If you only need one count per visit and have no ID, **Record Once Per Visit** needs no code change.

## The purchase event and purchaseID

`purchase` is a standard event, not a custom one. According to [Adobe’s purchase event reference](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/events/event-purchase), one `purchase` adds one Order, adds the quantities in `s.products` to Units, and adds the prices in `s.products` to Revenue. Adobe does not multiply price by quantity, so the price field carries the total for that line.

```javascript
s.events = "purchase";
s.products = ";Running shoe;2;179.98";
s.purchaseID = "ORD10442";
s.t();
```

Do not serialize `purchase` with a colon. Use `s.purchaseID`, which [Adobe’s purchaseID reference](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/purchaseid) describes like this:

-   It stores up to 20 bytes, alphanumeric only. Longer values are truncated, and truncated values that match are treated as duplicates.
-   A purchase ID applies to all visitors and expires after 37 months.
-   Never generate it with a random function. Use the order number.

Without `purchaseID`, Adobe builds a temporary ID from the hit and keeps the last five per visitor, which catches a refresh but not much else. The other standard commerce events (`prodView`, `scOpen`, `scAdd`, `scRemove`, `scView`, `scCheckout`) work with `s.products` the same way. Product-level currency or numeric events go in the fifth field of `s.products`, separated by pipes; Adobe’s examples also list the event in `s.events`:

```javascript
s.events = "purchase,event5";
s.products = ";Running shoe;1;89.99;event5=4.99";
```

## Custom link tracking in Adobe Tags and the Web SDK

**With the Adobe Analytics extension**, a custom link is a rule whose action is ** Send Beacon** with the `s.tl()` option selected, plus the link type and name. You cannot set the optional arguments there, and the extension fills in `linkTrackVars` and `linkTrackEvents` from the variables and events set in the interface, not from custom code.

**With the Web SDK**, there is no `s.tl()` and there are no filter lists. [Adobe’s method reference](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/functions/tl-method) says the Web SDK does not tell page views and link calls apart: both are `sendEvent`. A payload is a link call when it carries a link type:

```javascript
alloy("sendEvent", {
  xdm: {
    web: {
      webInteraction: {
        name: "homepage carousel click",
        URL: "https://www.example.com/sale",
        type: "other" // other, download or exit
      }
    }
  },
  data: {
    __adobe: {
      analytics: {
        eVar7: "position 3",
        events: "event20"
      }
    }
  }
});
```

With the data object, the link fields are `data.__adobe.analytics.linkName`, `linkURL` and `linkType`, with the values `o`, `d` and `e`. Adobe also warns that if you set `events` in the data object, the events in the XDM object are overwritten.

The Web SDK does not exclude fields from link calls the way `linkTrackVars` does. To control what a click carries, Adobe points to the `onBeforeEventSend` callback, where you clear or set fields before the event leaves. When moving a custom link rule from the Analytics extension, [Adobe’s migration guide](https://experienceleague.adobe.com/en/docs/platform-learn/migrate-analytics-to-websdk/migrate-custom-link-rules) moves the variables, the link name and the link type into one **Update variable** action, then adds a ** Send event** action.

![Adobe Tags action configuration for a rule called Navigation click. The extension is Adobe Experience Platform Web SDK, the action type is Update variable, the analytics object is selected, and the Event field is set to event10, next to the Event ID and Event value fields.](/images/adobe-web-sdk-update-variable-event-id.webp)

Screenshot: an Update variable action in Adobe Tags setting event10, with the optional Event ID and Event value fields. Image: Adobe, Experience League

## Automatic link tracking and the double count

AppMeasurement can track downloads and exit links on its own, through `trackDownloadLinks` and `trackExternalLinks` and the filters that go with them. If those are on and you also call `s.tl()` for the same clicks, Adobe sends both. Adobe’s tl() page suggests checking `s.lt()` first and sending the manual call only when it returns an empty string:

```javascript
function trackDownload(obj) {
  var lt = obj.href != null ? s.lt(obj.href) : "";
  if (lt == "") {
    s.tl(obj, "d", "spring brochure pdf");
  }
}
```

Decide per link: automatic or by rule. Both is how the Download link report doubles after a redesign.

## How to check a link call

Open the network tab or the Adobe Experience Platform Debugger, click, and read the request that goes to `/b/ss/`:

-   `pe` is `lnk_o`, `lnk_d` or `lnk_e`. If there is no `pe`, the click went out as a page view.
-   `pev2` is the link name you expect.
-   `events` holds every event the rule sets, with its value or ID. An event missing here is a `linkTrackVars` or `linkTrackEvents` problem.
-   Each eVar (`v1` to `v250`) and prop (`c1` to `c75`) the rule sets is there.
-   On a purchase, `products` and `purchaseID` are filled in.

Check it once in staging and you know it worked on the day you tested. The rule breaks later: a release renames the CSS class the trigger listens to, someone moves an event into custom code, a new consent banner delays the library. The Custom link report keeps filling, so nobody notices the metric is gone. The full debugging routine is in [how to debug Adobe Analytics](/blog/how-to-debug-adobe-analytics).

Trackingplan watches every event and property your real users send to Adobe Analytics and flags missing properties, dead tags, duplicate fires, and broken triggers on real traffic, so a link call that loses its event shows up after the release that broke it. It installs from the Adobe Experience Platform tab; the steps are in the [Adobe Experience Platform install doc](/docs/installing-trackingplan/adobe-experience-platform).

## FAQ

### What does linkTrackVars do in Adobe Analytics?

It is a comma-delimited list of the variables AppMeasurement includes in an `s.tl()` link call, written without the `s.` prefix. A variable reaches the hit only if it has a value and is on the list. Empty or undefined sends every variable; `"None"` sends none. Page views made with `s.t()` ignore it.

### Why is my event missing from an s.tl() call?

Three conditions must all be true: the event is set in `s.events`, the word `events` is in `linkTrackVars`, and the event itself is in `linkTrackEvents`. Most missing events fail the second or third condition. In the Adobe Analytics extension, an event set in custom code has to be added to both lists in custom code too.

### What are the link types in s.tl()?

The link type is one character: `o` for a custom link, `d` for a download link, and `e` for an exit link. In the hit it arrives as `pe=lnk_o`, `lnk_d` or `lnk_e`, and the link name arrives as `pev2`.

### What is the difference between this and true in s.tl()?

With `this`, AppMeasurement waits up to 500 ms before the browser follows the link, so the image request has time to go out. With `true`, it does not wait. Adobe notes that AppMeasurement turns on `useBeacon` for exit links automatically, so the argument is no longer needed in modern browsers.

### What types of success events does Adobe Analytics have?

Counter, numeric and currency. Counter events record that something happened and are the default. Numeric events add a number that is not money, and currency events add an amount that Adobe converts to the report suite currency. Switching to or from currency does not keep historical data available in reporting.

### How do I stop an event from being counted twice?

Set the event’s Unique Event Recording to Use Event ID and send an ID with it, as in `event1:ABC123`. IDs are alphanumeric, up to 20 bytes, and never expire. For the purchase event, use the `purchaseID` variable instead.

Part of[Adobe Analytics guide: from setup to advanced analysis](/guides/master-adobe-analytics-digital-analysts-guide)

On this page

1.  [*01*What s.tl() sends](#what-s-tl-sends)
2.  [*02*this, true and the 500 ms wait](#this-true-and-the-500-ms-wait)
3.  [*03*linkTrackVars: which variables ride on the link call](#linktrackvars-which-variables-ride-on-the-link-call)
4.  [*04*linkTrackEvents and the event that never arrives](#linktrackevents-and-the-event-that-never-arrives)
5.  [*05*Success events: counter, numeric and currency](#success-events-counter-numeric-and-currency)
6.  [*06*Event serialization: count once per ID](#event-serialization-count-once-per-id)
7.  [*07*The purchase event and purchaseID](#the-purchase-event-and-purchaseid)
8.  [*08*Custom link tracking in Adobe Tags and the Web SDK](#custom-link-tracking-in-adobe-tags-and-the-web-sdk)
9.  [*09*Automatic link tracking and the double count](#automatic-link-tracking-and-the-double-count)
10.  [*10*How to check a link call](#how-to-check-a-link-call)
11.  [*11*FAQ](#faq)

**Stop babysitting tags**

Trackingplan audits your real user data around the clock and flags issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup)

![](/images/65d75b0ae8d69ef95785a5d6_david-pombar.webp)

**David Pombar** Swiss army knife at Trackingplan

Read more from David, a Senior Product Strategist with 18+ years in digital product development and an atypical error detection knack.

Share Copy link [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.trackingplan.com%2Fguides%2Fadobe-analytics-custom-link-tracking) [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.trackingplan.com%2Fguides%2Fadobe-analytics-custom-link-tracking&text=linkTrackVars%2C%20s.tl%28%29%20and%20success%20events%20in%20Adobe%20Analytics)

Read next

[All Guides →](/guides)

-   [
    
    12 minAdobe AnalyticsJune 16, 2025
    
    ### Adobe Analytics implementation: a step-by-step guide
    
    Implement Adobe Analytics step by step: report suite, Web SDK or AppMeasurement, Adobe Tags, data layer, eVars, props, events, link tracking and QA.
    
    by **Rafael Campoamor**](/guides/implementing-advanced-tracking-adobe-analytics)
-   [
    
    6 minAnalytics ImplementationFebruary 13, 2026
    
    ### Adobe Debugger: how to use the Experience Platform Debugger
    
    Install the Adobe Experience Platform Debugger, read Adobe Analytics hits, swap the tag library and run Edge Trace, then see what it cannot catch.
    
    by **David Pombar**](/blog/how-to-debug-adobe-analytics)
-   [
    
    8 minAdobe AnalyticsJune 16, 2025
    
    ### Adobe Analytics campaign tracking code: s.campaign guide
    
    Set up campaign tracking in Adobe Analytics: build tracking codes, capture cid in s.campaign or the Web SDK, classify the codes and check every link.
    
    by **Rafael Campoamor**](/guides/campaign-tracking-adobe-analytics-guide)

Trackingplan

## See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup) [Book a demo](/demo)
