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 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.


As stated in the title of this page, in this video we are showing you how to code a custom link hit when you are NOT using a tag manager, like Adobe Launch. We still do recommend that you use Adobe Launch, our best practice recommendation for implementation. However, if you are not using Adobe Launch and 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



For more information on custom links, please see the documentation.


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy