With the wrapper, page impressions can be measured even without the explicit call of a website (such as dynamic content in single page applications).
Installation of the wrapper
The wrapper is delivered with the standard JavaScript code of Signalize and can for e.g. be implemented like this:
The function “testCall” can then be called via any JavaScript event. For the above code example this would mean:
onclick="testCall(pagename)"
The wrapper function can also be called directly – without the TestCall function – as follows:
onmousedown="et_eC_Wrapper({et_et: accountkey1, et_pagename: Index-Seite});"
To avoid that the call of the wrapper function by the blocked code, e.g. by exclusion from the count, does not lead to a JavaScript error, it is important to use the following function:
if(typeof(_etracker) === "object") { et_eC_Wrapper(…);}
Parameters of the wrapper
The first parameter of the function must contain the account key 1 of the account. The second parameter contains an optional JavaScript object with the following optional variables:
Variable | Type | Bedeutung | Beschreibung |
---|---|---|---|
et_pagename | String | Seitenname | Eindeutiger Name der Seite |
et_areas | String | Bereichsname | Bezeichnung des Seitenbereichs |
All object variables are optional. If they are not explicitly set, the values specified in the parameter block of the Signalize Code are used.
The following call generates the same data as the original call via the Signalize Code:
Example of a complete call:
et_seg2="intern";..