Asynchronous tag



You may load our JavaScript library asynchronously. However, this requires an adaptation in your tagging.



  • Declare the ATInternet callback in the following manner

In this way, you declare the function onTrackerLoad in the global object ATInternet. This function is then automatically called when the file smarttag.js finishes execution.

  • Load our JavaScript library asynchronously


Tagging example

The URL of the smarttag.js file must be replaced by the file path on your server.
Declaration of the callback onTrackerLoad must always be done before loading the smarttag.js file.
Remember, the feature tag.clickListener measures an element that must exist at the moment that the feature is used

Was this post helpful?
Last update: 08/12/2017