Class: Tag

ATInternet.Tracker. Tag

Main Tag Object.

new ATInternet.Tracker.Tag(config, context, callback)

Name Type Description
config object Configuration of the Tag
context object Context of the Tag
callback function Executed when tracker is ready

Members

Module for buffer management.
See:

builderBuildManager

Module for hit builder.
See:

callbacksCallbacksManager

Module for callback management.
See:
Module for plugins management.
See:

triggersTriggersManager

Module for triggers management.
See:

inneraisleobject

[Object added by plugin SalesTracker] Tags to track aisle values.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#aisle.set

innercartobject

[Object added by plugin SalesTracker] Tags to track cart values.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#cart.set
add function Tag helper, see details here ATInternet.Tracker.Tag#cart.add

innerclickobject

[Object added by plugin Clicks] Tags for clicks.
Properties:
Name Type Description
send function Tagging method for clicks (helper), see details here ATInternet.Tracker.Tag#click.send
set function Alternative tagging method for clicks (helper), see details here ATInternet.Tracker.Tag#click.set

innerclickListenerobject

[Object added by plugin Clicks] Tags for clicks using a listener.
Properties:
Name Type Description
send function Tagging method for clicks (helper), see details here ATInternet.Tracker.Tag#clickListener.send

innerclientSideUserIdobject

[Object added by plugin ClientSideUserId] Tags to manage a user ID on client side mode.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#clientSideUserId.set

innercustomTreeStructureobject

[Object added by plugin Page] Tags to obtain a completely customised view of all your traffic.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#customTreeStructure.set

innercustomVarsobject

[Object added by plugin Page] Tags to associate page and site variables specific to your activity.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#customVars.set

innerdynamicLabelobject

[Object added by plugin Page] Tags to track the history of a page whose content has been modified.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#dynamicLabel.set

inneridentifiedVisitorobject

[Object added by plugin IdentifiedVisitor] Tags to identify a visitor.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#identifiedVisitor.set
unset function Tag helper, see details here ATInternet.Tracker.Tag#identifiedVisitor.unset

innerinternalSearchobject

[Object added by plugin InternalSearch] Tags to manage internal searches data.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#internalSearch.set
send function Tag helper, see details here ATInternet.Tracker.Tag#internalSearch.send

innermvTestingobject

[Object added by plugin MvTesting] Tags to manage multivariate testing data.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#mvTesting.set
add function Tag helper, see details here ATInternet.Tracker.Tag#mvTesting.add

innernuggAdobject

[Object added by plugin NuggAd] Tags to manage nugg.ad data.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#nuggAd.set

innerofflineobject

[Object added by plugin Offline] Tags to manage local storage.
Properties:
Name Type Description
getLength function Tag helper, see details here ATInternet.Tracker.Tag#offline.getLength
remove function Tag helper, see details here ATInternet.Tracker.Tag#offline.remove
get function Tag helper, see details here ATInternet.Tracker.Tag#offline.get
send function Tag helper, see details here ATInternet.Tracker.Tag#offline.send

innerorderobject

[Object added by plugin SalesTracker] Tags to track order values.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#order.set

innerpageobject

[Object added by plugin Page] Tags to manage a page.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#page.set
send function Tag helper, see details here ATInternet.Tracker.Tag#page.send
reset function Tag helper, see details here ATInternet.Tracker.Tag#page.reset

innerproductobject

[Object added by plugin SalesTracker] Tags to track viewed products.
Properties:
Name Type Description
add function Tag helper, see details here ATInternet.Tracker.Tag#product.add

innerpublisherobject

[Object added by plugin OnSiteAds] Tags for publisher campaigns
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#publisher.set
add function Tag helper, see details here ATInternet.Tracker.Tag#publisher.add
send function Tag helper, see details here ATInternet.Tracker.Tag#publisher.send

innerrichMediaobject

[Object added by plugin RichMedia] Tags to manage media measurement.
Properties:
Name Type Description
add function Tag helper, see details here ATInternet.Tracker.Tag#richMedia.add
remove function Tag helper, see details here ATInternet.Tracker.Tag#richMedia.remove
removeAll function Tag helper, see details here ATInternet.Tracker.Tag#richMedia.removeAll
send function Tag helper, see details here ATInternet.Tracker.Tag#richMedia.send

innerselfPromotionobject

[Object added by plugin OnSiteAds] Tags for self-promotion campaigns
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#selfPromotion.set
add function Tag helper, see details here ATInternet.Tracker.Tag#selfPromotion.add
send function Tag helper, see details here ATInternet.Tracker.Tag#selfPromotion.send

innertagsobject

[Object added by plugin Page] Tags to define the theme(s) of the content your users visit.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#tags.set

innertvTrackingobject

[Object added by plugin TvTracking] Tags to track audio and video spots.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#tvTracking.set

innerversionstring

Version of the tracker.

innerweboramaobject

[Object added by plugin Weborama] Tags to collect marketing data from Weborama Partner.
Properties:
Name Type Description
set function Tag helper, see details here ATInternet.Tracker.Tag#weborama.set
callback function Tag helper, see details here ATInternet.Tracker.Tag#weborama.callback

Methods

aisle.set(tagObject)

[Helper added by plugin SalesTracker] Set aisle properties.
Name Type Description
tagObject object 6 properties : level1, level2, level3, level4, level5, level6
Example
tag.aisle.set({
     level1: "10[high_tech]",
     level2: "20[Computers_network]",
     level3: "30[Computers]",
     level4: "40[Laptops]",
     level5: "50[Asus]",
     level6: "60[17]"
});

cart.add(tagObject)

[Helper added by plugin SalesTracker] Add product to cart.
Name Type Description
tagObject object 1 property : product
Example
tag.cart.add({
     product: {
         category1: "1[Computers_and_Networking]",
         category2: "25[Computers]",
         category3: "56[Laptops]",
         ...
         category6: "300[Chromebook]",
         productId: "564[laptop_ACER_A56]",
         quantity: 1,
         unitPriceTaxIncluded: 549,
         unitPriceTaxFree: 456.2,
         discountTaxIncluded: 10,
         discountTaxFree: 8.04,
         promotionalCode: "Offre_New_Customer"
     }
});

cart.set(tagObject)

[Helper added by plugin SalesTracker] Set cart properties.
Name Type Description
tagObject object 2 properties : cartId, isBasketPage
Example
tag.cart.set({
     cartId: 8235,
     isBasketPage: true
});

click.send(tagObject)

[Helper added by plugin Clicks] Tagging method for clicks (helper). This method should be called when the click happens.
Name Type Description
tagObject object tag object, must contain at least properties 'name' and 'type'. Should contain the property 'elem' to let the sdk manages the click redirection or submit if necessary
Examples
<a href="http://example.com/" onclick="return tracker.click.send({elem:this,name:'clickName',level2:'clickLvl2',type:'exit'});">link</a>
<a href="http://example.com/" onclick="return myFunction(this);">link</a>
<script type="text/javascript">
function myFunction(element){
    // your code
    return tracker.click.send({
        elem:element,
        name:'clickName',
        chapter1:'chap1',
        chapter2:'chap2',
        chapter3:'chap3',
        level2:'clickLvl2',
        type:'exit',
        event:eventObj,
        callback:callback
    });
}
</script>

click.set(tagObject)

[Helper added by plugin Clicks] Alternative tagging method for clicks (helper). Do not send the hit itself (it must be used with tracker.dispatch).
Name Type Description
tagObject object tag object, must contain at least properties 'name' and 'type' (and 'elem' if link/form with redirection/submit)
Example
tracker.click.set({
    name:'clickName',
    chapter1:'chap1',
    chapter2:'chap2',
    chapter3:'chap3',
    level2:'clickLvl2',
    type:'exit'
});
//...
tracker.dispatch();

clickListener.send(tagObject)

[Helper added by plugin Clicks] Tagging method for clicks (helper). This method should be called when loading the page
Name Type Description
tagObject object tag object
Example
tracker.clickListener.send({
     elem:document.getElementById('myLink/myForm'),
     name:'clickName',
     chapter1:'chap1',
     chapter2:'chap2',
     chapter3:'chap3',
     level2:'clickLvl2',
     type:'exit'
     callback:callback
 });
[Helper added by plugin ClientSideUserId] Add a user ID to all hits "&idclient=" and store it in the cookie "atuserid".
Name Type Description
id string | number User ID
Example
tag.clientSideUserId.set();

configPlugin(plg, cfg, callback){object}

Set the specific configuration of a plugin. If the configuration already exists, set only the undefined properties.
Name Type Description
plg string Name of the plugin concerned
cfg object Value of the plugin configuration
callback function Function which be called if the plugin configuration change

customTreeStructure.set(tagObject)

[Helper added by plugin Page] Set custom tree structure.
Name Type Description
tagObject object 3 properties : category1, category2, category3
Example
tag.customTreeStructure.set({
     mycategory1: 1,
     mycategory2: 2,
     mycategory3: 3
 });

customVars.set(tagObject)

[Helper added by plugin Page] Set page and site variables.
Name Type Description
tagObject object 2 properties : site, page
Example
tag.customVars.set({
     site: {
         1: 'site1',
         5: 'site5',
         20: 'site20'
     },
     page: {
         1: 'page1',
         5: 'page5',
         20: 'page20'
     }
 });

debug(trigger, level, message, details)

Use to emit debug triggers.
Name Type Description
trigger string Trigger that you want to emit
level string DEBUG, ERROR, WARNING
message string
details * Data you want to transmit to listeners
Example
tag.debug('RichMedia:richMedia:remove', 'DEBUG', 'method ended', {playerId: plyr, media: mediaObject});

delContext(key1, key2)

Delete context value or parameter value in context(s).
Name Type Description
key1 string Context name
key2 string Context parameter name (first level)
Example
tag.delContext('myContext'); //=> Delete 'myContext' content
tag.delContext('myContext', 'param'); //=> Delete 'param' content in 'myContext'
tag.delContext(undefined, 'param');  //=> Delete 'param' content in all contexts

delParam()

Use to delete a stored parameter.
See:

dynamicLabel.set(tagObject)

[Helper added by plugin Page] Set dynamic label.
Name Type Description
tagObject object 5 properties : pageId, chapter1, chapter2, chapter3, update
Example
tag.dynamicLabel.set({
     pageId: '123456',
     chapter1: 'mychapter1',
     chapter2: 'mychapter2',
     chapter3: 'mychapter3',
     update: '200910031045'
 });

emit(trigger, data)

Use to trigger event.
Name Type Description
trigger string Trigger to emit
data object Data to transmit to listeners
See:
Example
tag.emit('RichMedia:richMedia:remove', {
      lvl: 'DEBUG',
      msg: 'method ended',
      details: {playerId: plyr, media: mediaObject}
  });

getConfig(key){*}

Get configuration.
Name Type Description
key string Configuration property name
Returns:
property value if exist, undefined if not

getContext(key){*}

Get a context variable.
Name Type Description
key string Context variable name

getParam(filterList, withOptions){string|object}

Get variables from the buffer using the filter given, with possibility of returning options or not.
Name Type Description
filterList Array List of key/value(s) in an array. (ex : [[key1,value1],[key2,[value2A,value2B]]]) Filter on variable's options
withOptions boolean If true only returns value else returns object with value and options
See:
Example
// This filter will get variables with hitType 'page' OR 'all', AND with permanent true
var filter = [
 ['hitType',['page','all']],
 ['permanent',true]
]

var dataObj = tag.getParam(filter, true); // true to get options
dataObj = {
 'variableExample' : {
     value:'value',
     options: {
         hitType:['page'],
         permanent:true
     }
  }
}

var dataObj = tag.getParam(filter); // no option in results
dataObj = {
 'variableExample':'value'
}

getParams(param){string|object}

Use to get the collection of hit parameters stored (or a value if a parameter name is given).
Name Type Description
param string Parameter name (optional)
See:

identifiedVisitor.set(tagObject)

[Helper added by plugin IdentifiedVisitor] Set an identified visitor
Name Type Description
tagObject object 2 properties : id, category
Example

 tag.identifiedVisitor.set({
     id:'id123', // or a numeric value, id:123456
     category:'123'
 });
 
[Helper added by plugin IdentifiedVisitor] Unset an identified visitor (delete all cookies and parameters from buffer)

internalSearch.send(tagObject)

[Helper added by plugin InternalSearch] Send internal searches data.
Name Type Description
tagObject object 3 properties : keyword, resultPageNumber, resultPosition
Example
tag.internalSearch.send({
     keyword: 'test',
     resultPageNumber: '123',
     resultPosition: '2'
 });

internalSearch.set(tagObject)

[Helper added by plugin InternalSearch]Set internal searches properties.
Name Type Description
tagObject object 3 properties : keyword, resultPageNumber, resultPosition
Example
tag.internalSearch.set({
     keyword: 'test',
     resultPageNumber: '123',
     resultPosition: '2'
 });

mvTesting.add(tagObject)

[Helper added by plugin MvTesting] Add a new version for a variable.
Name Type Description
tagObject object 2 properties : variable, version
Example
tag.mvTesting.add({
     variable: '1[Header]',
     version: '2[Grey]'
 });
 

mvTesting.set(tagObject)

[Helper added by plugin MvTesting] Set multivariate testing default properties.
Name Type Description
tagObject object 3 properties : test, waveId, creation
Example
tag.mvTesting.set({
     test: '1[My_first_Test]',
     waveId: 1,
     creation: '2[Version2_page_subscription]'
 });
 

nuggAd.set()

[Helper added by plugin NuggAd] Set nugg.ad properties.
Example
tag.nuggAd.set();

offline.get(){Array}

[Helper added by plugin Offline] Get hits array from local storage.
Example
var hitArr = tag.offline.get();

offline.getLength(){number}

[Helper added by plugin Offline] Get estimated storage data length.
Example
var len = tag.offline.getLength();

offline.remove()

[Helper added by plugin Offline] Remove hits from local storage.
Example
tag.offline.remove();

offline.send()

[Helper added by plugin Offline] Send hits from local storage.
Example
tag.offline.send();

onTrigger(trigger, callback){number}

Use to add a trigger listener.
Name Type Description
trigger string Trigger you want to subscribe
callback function Method that you want to be triggered
See:
Returns:
ID
Example
// It returns the ID of the callback so you can delete it if needed.
var idCallback = tag.onTrigger('myTrigger', callback(trig, data, idCallbackBis){});

order.set(tagObject)

[Helper added by plugin SalesTracker] Set order properties.
Name Type Description
tagObject object 10 properties : orderId, turnover, status, newCustomer, amount, delivery, paymentMethod, discount, confirmationRequired, orderCustomVariables
Example
tag.order.set({
     orderId: 8235,
     turnover: 2049,
     status: 1,
     newCustomer: true,
     amount: {
         amountTaxIncluded: 2049,
         amountTaxFree: 1649.36,
         taxAmount: 339.64
     },
     delivery: {
         shippingFeesTaxIncluded: 19.9,
         shippingFeesTaxFree: 16,
         deliveryMethod: "1[Colissimo]"
     },
     paymentMethod: 1,
     discount: {
         discountTaxIncluded: 9.9,
         discountTaxFree: 7.96,
         promotionalCode: "CDPR15485Q"
     },
     confirmationRequired: false,
     orderCustomVariables: [5, 30 ,14, "[contact tel]", 1],
});

page.reset()

[Helper added by plugin Page] Reset page context.
Example
tag.page.reset();

page.send(tagObject)

[Helper added by plugin Page] Tagging method for page (helper).
Name Type Description
tagObject object 5 properties : name, chapter1, chapter2, chapter3, customObject
Example
tag.page.send({
     name: 'pageName',
     chapter1: 'mychapter1',
     chapter2: 'mychapter2',
     chapter3: 'mychapter3',
     customObject: {
         one: 1,
         two: 2
     },
     customVars: {
         page: {
             1: 'page1',
             5: 'page5',
             20: 'page20'
         },
         site: {
             1: 'site1',
             5: 'site5',
             20: 'site20'
         }
     },
     dynamicLabel: {
         pageId: '123456',
         chapter1: 'mychapter1',
         chapter2: 'mychapter2',
         chapter3: 'mychapter3',
         update: '200910031045'
     },
     tags: {
         keywords: ['tag','Key']
     },
     customTreeStructure: {
         category1: mycategory1,
         category2: mycategory2,
         category3: mycategory3
     }
 });

page.set(tagObject)

[Helper added by plugin Page] Set page properties.
Name Type Description
tagObject object 5 properties : name, chapter1, chapter2, chapter3, customObject
Example
tag.page.set({
     name: 'pageName',
     chapter1: 'mychapter1',
     chapter2: 'mychapter2',
     chapter3: 'mychapter3',
     customObject: {
         one: 1,
         two: 2
     }
 });

product.add(tagObject)

[Helper added by plugin SalesTracker] Add viewed product.
Name Type Description
tagObject object 4 properties : productId, category1, category2, category3
Example
tag.product.add({
     productId: "564[laptop_ACER_A56]",
     category1: "1[Computers_and_Networking]",
     category2: "25[Computers]",
     category3: "56[Laptops]"
});

publisher.add(tagObject)

[Helper added by plugin OnSiteAds] Tagging method for publisher campaigns, allow to cumulate campaigns to be sent with the tag.dispatch() method
Name Type Description
tagObject object tagObject must contain a property 'click' or 'impression', you can force a specific prefix with a property 'prefix'
Example
tag.publisher.add({
     impression:{
         campaignId : 'id[label]',
         creation : 'id[label]',
         variant : 'id[label]',
         format : '[120x40]',
         generalPlacement : '[label]',
         detailedPlacement : 'id[label]',
         advertiserId : 'id[label]',
         url : '[urlEncoded]'
     }
});
tag.publisher.add({
     impression:{
         campaignId : 'id2[label2]',
         creation : 'id2[label2]',
         variant : 'id2[label2]',
         format : '[60x40]',
         generalPlacement : '[label2]',
         detailedPlacement : 'id2[label2]',
         advertiserId : 'id2[label2]',
         url : '[urlEncoded2]'
     }
});
tag.dispatch();
This will send a self-promotion campaign like : &atc=PUB-id[campaignId]-id[creation]-id[variant]-id-[generalPlacement]-[detailedPlacement]-id[advertiserId]-urlencoded

publisher.send(tagObject)

[Helper added by plugin OnSiteAds] Alternative tagging method for publisher campaigns. This method manages redirections on click if necessary
Name Type Description
tagObject object The campaign , you can add a "customObject" property, and an "elem" property to manage redirection
Example
<a href="..." onclick="return tag.publisher.send({elem:this,click:{campaignId:'id[label]',creation:'id[label]',variant:'id[label]',format:'[120x40]',generalPlacement:'[label]',detailedPlacement:'id[label]',advertiserId:'id[label]',url:'[urlEncoded]'}});">Pub</a>

publisher.set(tagObject)

[Helper added by plugin OnSiteAds] Tagging method for publisher campaigns, to be used with the tag.dispatch() method
Name Type Description
tagObject object tagObject must contain a property 'click' or 'impression', you can force a specific prefix with a property 'prefix'
Example
tag.publisher.set({
     impression:{
         campaignId : 'id[label]',
         creation : 'id[label]',
         variant : 'id[label]',
         format : '[120x40]',
         generalPlacement : '[label]',
         detailedPlacement : 'id[label]',
         advertiserId : 'id[label]',
         url : '[urlEncoded]'
     }
});
tag.dispatch();
This will send a self-promotion campaign like : &atc=PUB-id[campaignId]-id[creation]-id[variant]-id-[generalPlacement]-[detailedPlacement]-id[advertiserId]-urlencoded

richMedia.add(tagObject)

[Helper added by plugin RichMedia] Add media object.
Name Type Description
tagObject object 10 properties : mediaType, playerId, mediaLevel2, mediaLabel, previousMedia, refreshDuration, duration, isEmbedded, broadcastMode, webdomain
Example
tag.richMedia.add({
     mediaType: "video",
     playerId: 333,
     mediaLevel2: "mediaLevel2",
     mediaLabel: "mediaLabel",
     previousMedia: "previousMedia",
     refreshDuration: 5,
     duration: 20,
     isEmbedded: true,
     broadcastMode: "clip",
     webdomain: "http://www.atinternet.com"
 });

richMedia.remove(plyr)

[Helper added by plugin RichMedia] Remove a player with all associated media.
Name Type Description
plyr number Player ID
Example
tag.richMedia.remove(333);

richMedia.removeAll()

[Helper added by plugin RichMedia] Remove all players and media.
Example
tag.richMedia.removeAll();

richMedia.send(tagObject)

[Helper added by plugin RichMedia] Send a media action ("play", "pause", "stop", "info").
Name Type Description
tagObject object 4 properties : action, playerId, mediaLabel, isBuffering
Example
tag.richMedia.send({
     action: "info",
     playerId: 333,
     mediaLabel: "mediaLabel",
     isBuffering: true
 });

selfPromotion.add(tagObject)

[Helper added by plugin OnSiteAds] Tagging method for self-promotion campaigns, allow to cumulate campaigns to be sent with the tag.dispatch() method
Name Type Description
tagObject object tagObject must contain a property 'click' or 'impression', you can force a specific prefix with a property 'prefix'
Example
tag.selfPromotion.add({
    impression : {
        adId : 'integer',
        format : 'id[format]',
        productId : 'productId'
    }
});
tag.selfPromotion.add({
    impression : {
        adId : 'integer2',
        format : 'id2[format2]',
        productId : 'productId2'
    }
});
tag.dispatch();
This will send a self-promotion campaign like : &ati=INT-integer-id[format]||productId,INT-integer2-id2[format2]||productId2

selfPromotion.send(tagObject)

[Helper added by plugin OnSiteAds] Alternative tagging method for self-promotion campaigns. This method manages redirections on click if necessary
Name Type Description
tagObject object The campaign , you can add a "customObject" property, and an "elem" property to manage redirection
Example
<a href="..." onclick="return tag.selfPromotion.send({elem:this,click:{adId:'id',format:'[120x40]',productId:'id'}});">Pub</a>

selfPromotion.set(tagObject)

[Helper added by plugin OnSiteAds] Tagging method for self-promotion campaigns, to be used with the tag.dispatch() method
Name Type Description
tagObject object tagObject must contain a property 'click' or 'impression', you can force a specific prefix with a property 'prefix'
Example
tag.selfPromotion.set({
    impression : {
        adId : 'integer',
        format : 'id[format]',
        productId : 'productId'
    }
});
tag.dispatch();
This will send a self-promotion campaign like : &ati=INT-integer-id[format]||productId
tag.selfPromotion.set({
    click : {
        adId : 'integer',
        format : 'id[format]',
        productId : 'productId'
    }
});
tag.dispatch();
This will send a self-promotion campaign like : &atc=INT-integer-id[format]||productId
tag.selfPromotion.set({
    click : {
        adId : 'integer',
        format : 'id[format]',
        productId : 'productId'
    },
    prefix : 'VALUE',
    customObject:{one:1,two:2}
});
tag.dispatch();
This will send a self-promotion campaign like : &atc=VALUE-integer-id[format]||productId

sendHit(customParams, filters)

Send the hit and call the callback if present The hit will integrate parameters stored
Name Type Description
customParams object Object which contains some hit parameters that you would like to send specifically (they are given priority over the current buffer)
filters Array List of buffer filters
See:

sendUrl(hit)

Send single hit from complete url. An event will be sent thanks to TriggersManager :
- "Tracker:Hit:Sent:Ok" with the hit as data if succeed,
- "Tracker:Hit:Sent:Error" with error as data otherwise.
Name Type Description
hit string Url to send
See:

setConfig(key, value, ifNotExist){*}

Set configuration.
Name Type Description
key string Configuration property name
value * Configuration property value
ifNotExist boolean If true, the property will only be set if the configuration property doesn't exist

setContext(key, value)

Set a context variable.
Name Type Description
key string context variable name
value *

setParam(name, value, options)

Set value for a hit variable (overrides if present).
Name Type Description
name string Name of the hit variable
value string | number | function | Array value of the hit variable
options object Configuration of the variable, if no hitType defined, it will be "page" by default
See:
Example
tag.setParam('test1', 'val1', {hitType: ['test', 'click'], permanent: true, encode: true});
 

tags.set(tagObject)

[Helper added by plugin Page] Set keywords.
Name Type Description
tagObject object 1 property : keywords
Example
tag.tags.set({
     keywords: ['tag','Key']
 });
[Helper added by plugin TvTracking] Set TvTracking parameters.
Example
tag.tvTracking.set();

weborama.callback()

[Helper added by plugin Weborama] Callback (called by Partner).
Example
code class="javascript">tag.weborama.callback();

weborama.set(name)

[Helper added by plugin Weborama] Set Weborama parameters.
Name Type Description
name string Name of the Tag reference variable
Example
tag.weborama.set();

innerdispatch()

[Helper added by plugin Utils] Dispatch all tags.

innerdispatchRedirect(tagObject){boolean}

[Helper added by plugin Utils] Dispatch all tags (with automatic redirect management).
Name Type Description
tagObject object Tag object, used here to tell how we have to do the redirection (url/target)