1. Home
  2. Docs
  3. Developer Docs
  4. Web integration
  5. Capture dynamic content with the wrapper

Capture dynamic content with the wrapper

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:

				
					
				</code>
			</pre>
<p>The function “testCall” can then be called via any JavaScript event. For the above code example this would mean:</p>
<pre data-line="">
				<code readonly="readonly">
					<xmp>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:

VariableTypeBedeutungBeschreibung
et_pagenameStringSeitennameEindeutiger Name der Seite
et_areasStringBereichsnameBezeichnung 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:

				
					
				</code>
			</pre>
<p><b>Example of a complete call:</b></p>
<pre data-line="">
				<code readonly="readonly">
					<xmp>
et_seg2="intern";..