Tracker initialization



Before starting, you need to download our JavaScript library, or push it to our CDN, from the Tag Composer interface.

This interface will allow you to:

  • Configure the marking perimeter (site, domain used for writing cookies, etc.).
  • Select the desired features through configurable plugins.

Once the library is set up, you need to call on it in the <head> tag of your page.

<!-- Local file -->
<script src="smarttag.js"></script>
<!-- CDN file -->
<!-- File must be published on the TDN for this site within Tag Composer -->
<script src="//"></script>


The Tracker initialization is done through JavaScript methods to be inserted.

    <meta charset="UTF-8">
    <title>My Page</title>
    <script src="smarttag.js"></script>
    <script type="text/javascript">			
      var tag = new ATInternet.Tracker.Tag();"page.display", {
        "page": "My Page",
        "page_chapter1": "My chapter 1"

The ATInternet.Tracker.Tag() constructor can take two objects as parameters, one intended to override the Tracker configuration and a second intended to add context values.


Advanced initialization

The initialization of the Piano Analytics tagging is the same as for the AS2 tagging.

For more information, you can turn to the dedicated articles:

Last update: 06/05/2022