There are two functions that send data into Adobe Analytics:
- 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
- s.tl() – 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 s.tl(), here’s how to do it.
Here is the sample code used on the custom link in the video:
<a href="#" onclick="
">Click here to share on FaceBook
For more information on custom links, please see the documentation.