Custom Link Tracking without a Tag Manager

For many actions on the page, tracking should not be treated like a page view. In this video, you will learn how to code a link tracking beacon to Analytics, if you are not using a tag manager (like Adobe Experience Platform Launch). See the code, as well as learning an important tip.

Sending an Beacon

There are two functions that send data into Adobe Analytics:

  1. s.t() - A “track” beacon, which is a page view hit, incrementing page views for the given page name, as well as setting other variables
  2. - a “track link” beacon, which is often referred to as a “custom link” hit/beacon, which does not increment page views, and ignores the pageName variable. This is commonly used for tracking smaller actions on the page that don’t load a new page/screen, or other actions that don’t result in a new page load.

In this video, we show you how to code a custom link hit when you are NOT using a tag manager like Adobe Experience Platform Launch. We recommend that you use Experience Platform Launch, our best-practice recommendation for implementation. However, if you need to code in an, here’s how to do it.

Sample Code

Here is the sample code used on the custom link in the video:

<a href="#" onclick="
    s.eVar2='facebook share';
    s.prop2='facebook share';,'o','Social Share');
    Click here to share on FaceBook

On this page