etracker
Analytics Editions / Pricing Live-Demo
etracker
Optimiser Editions / Pricing Live-Demo
Pricing For Agencies Support

Tracking dynamic content: Wrapper

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

  • 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});}</script>
    The ‘testCall’ function can then be called using any JavaScript event, for example:
    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-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") { et_eC_Wrapper(…);}
    ‘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:
    VariableTypeImportanceDescription
    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_urlString
    Browse linkOverwrites the original URL.
    et_targetStringWebsite targetDesignation of the website target which should be achieved on the page.
    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_eC_Wrapper({et_et: accountkey,et_url:'http://….',et_pagename:'Landingpage',et_ilevel:2,cc_attributes:{"Attribute name1":"Attribute value1","Attributname2": ["Attribute value2a", true]},});</script>

Need help?
Our friendly, knowledgeable support engineers are here for you.