Operating principle



After initialising the Tracker, tagging is done via the “setter” tag (tag.<functionality>.set()) described in the different pages of this documentation.

Example for page tagging

Once the desired tagging has been achieved, the sending of information is done via the dispatch() method.

This example, when taken with the preceding example, will send a “pageName” page hit.



This method is designed to be used during loading of the page or measured element. This method triggers the sending of tags accumulated via “setter”, and also optimises the number of hits to send based on the number of “setter” detected.


In the case of measuring an element triggering a redirection, we strongly advise you to use tagging via the send() method, following the recommendations found in the tagging guides for the feature you wish to measure.


Dispatch redirect

This method is the same as the dispatch() method, but adds automatic redirect management.

It takes an object as a parameter whose properties are as follows:

Property Description
elem Tagged DOM element
event (optional) JavaScript event (prevent event propagation)
callback (optional) Function to execute

It is strongly advised to limit this type of tagging to cases where there are no other alternatives, as this type of tagging will systematically slow down the redirect in question (based on the Automatic click management timeout configuration).
If measurement involves a single functionality, please verify that this functionality possesses a send() method and follow the corresponding tagging documentation. This option is preferable, as this method is not solely based on the automatic click management timeout, but rather on the download of the measurement pixel, which will, in the majority of cases, take much less time than the configured timeout duration (500ms by default).

Example using the clicked element

Example using manually provided redirect data

Example on a form

Example using JQuery



It is possible to send hits in a sporadic and direct manner via the method tag.<functionality>.send(). This method is useful, notably when sending hits on specific actions or events (ex: click on a link).

Was this post helpful?
Last update: 30/01/2018