SmartTag migration guide

 

Call to the JavaScript file

Before Previously, the JavaScript file (xtcore.js) had to be loaded after the tag.

SmartTag You now have to load the smarttag.js beforehand.

 

Preliminary declaration

SmartTag With SmartTag, it is necessary to instantiate the Tracker you will work wih. In order to do so, you need to add this ligne before your tagging:

var tag = new ATInternet.Tracker.Tag();
Tracker initialisation >  

Hits sending

Before When using xtcore.js, information was sent to our servers when the file was loaded.

SmartTag Now thanks to the smarttag.js, you choose when you want to send us the information. With the helpers .set and .add, hits will be sent at the next dispatch thanks to:

tag.dispatch();

With the helpers .send, hits are sent when the helper is called.
Operating principle >

 

Define page information

Before

xtn2 = "15";
xtpage = "Chapter1::Chapter2::Chapter3::Pagename";

SmartTag

tag.page.set({
    name:'Pagename',
    chapter1:'Chapter1',
    chapter2:'Chapter2',
    chapter3:'Chapter3',
    level2: 15
});
Pages >  

Click tag

Before

xt_click(this,'C','15','ClickChapter1::ClickChapter2::ClickChapter3::Clickname','N');

SmartTag

tag.click.send({elem:this, name:'Clickname', chapter1:'ClickChapter1', chapter2:'ClickChapter2', chapter3:'ClickChapter3', level2:15, type:'navigation'});
Clicks >
Was this post helpful?
Yes
No
Last update: 14/01/2016