Before integrating the tag, you must make sure to have attached 3 different files to your website :
- The smarttag.js file to your website (to be downloaded or deployed from Tag Composer) and that it includes the On-Site Ads plugin (check Tag Composer configuration).
- The scroll.js plugin, which you can download by click on the above download button.
- The jquery.js plugin, which you can download on the jQuery website.
Scroll Tracker can be set up with one line of code. In the same way you set a new page before dispatch. Just initiate the tag with the function tag.Scroll.init() and the default values will be used to send your hits.
var tag = new ATInternet.Tracker.Tag();
If you wish to customise the page levels where the hits are sent you can use the following attributes listed in this table:
|Name||Default value (pixels)||Description|
|first||1500||First time you want to send scroll|
|interval||700||Interval when you want to send new hits|
If you want to have the page name in your analysis you have to put it in a publisher variable, for example you can add a line before the line 39 in the scroll.js file which can be :
variant : '[page_name]',