Integration & Setup

  1. Home
  2. Integration & Setup
  3. Tracking Code & SDKs
  4. Tracking Code Integration
  5. Tracking dynamic content: Wrapper

Tracking dynamic content: Wrapper

With the wrapper, page impressions can also be tracked without expressly opening a website.

Integrating the wrapper

The wrapper is delivered with the default JavaScript code of etracker and can be integrated as follows:

<script type="text/javascript">
function testCall(pagename)
et_eC_Wrapper({et_et: accountkey1, et_pagename: pagename});

The ‘testCall’ function can then be called using any JavaScript event, for example:


The wrapper function can also be called directly without the TestCall function, as follows:

onmousedown="et_eC_Wrapper({et_et: accountkey1, et_pagename: Index-Site});"

So that the call of the wrapper function by the blocked etracker code does not bring about a JavaScript error e.g. by excluding counting, please use the following function:

If(typeof(_etracker) === "object") {

Wrapper parameters

‘Account key 1’, the first parameter of the function must contain the Account Key 1 of the etracker Analytics account. The second parameter contains an optional JavaScript object with the following optional variables:

et_pagenameStringPage nameUnique name of the page.
et_areasStringArea nameDesignation of the page area.
et_ilevelIntegerVisitor interestNumerical value of the visitor interest in the page. The higher the value, the greater the interest
et_tvalFloatTotal order valueOrder status for sales targets:
0 = Lead
1 = Sale
2 = Full reversal
et_tonrStringOrder numberDistinct order number (without commas or semicolons)
et_tsaleIntegerOrder statusOrder status for sales targets:
0 = Lead
1 = Sale
2 = Full reversal
et_custIntegerVisitor statusCustomer status for sales targets
0 = Existing customer
1 = New customer
et_basketStringShopping basketParameter provided by the shop system for assigning basket items (ArtNr,ArtName,ArtGroup,Number,Price)

All object variables are optional. If they are not set explicitly, the values entered in the parameter block of the tracking code will be applied. The following call generates the same data as the original call via the tracking code:

<script type="text/javascript">et_eC_Wrapper('Account-Key 1');</script>

Example of a complete call:

<script type="text/javascript">
et_et: accountkey,
cc_attributes:{"Attribute name1":"Attribute value1",
"Attributname2": ["Attribute value2a", true]},