Skip to content

Supplement etracker tagging

Content
How to configure etracker tags Use wrapper tag Measure on-site search Capture dynamic content using variables Cookie variable Data layer variable URL variable DOM variable Use variables

The etracker tag manager can be used to conveniently and flexibly enrich data collection with etracker analytics. The following etracker tags are available for this purpose:

Configure etrack tag
  • etracker Event: The CSS selector can be used to measure the click on a specific element on a page or when it enters the visible area.
  • etracker onsite campaign: If the success of website functions is to be measured, the click can be recorded in the same way as events using CSS selectors. Conversions, i.e. leads, orders etc. generated after the click, can be evaluated automatically.
  • etracker dimension: When an interaction is recorded, a suitable user segment dimension can be created in order to define different user groups.
  • etracker Conversion: If a page view or event (micro or macro) is a target of the website, the conversion action can be selected from the recorded pages or using a CSS selector.
  • etracker onsite search: If a page view or event (micro or macro) is a target of the website, the conversion action can be selected from the recorded pages or via CSS selector.
  • Wrapper: The wrapper tag makes it possible to measure virtual page views even if the URL does not change or only the associated URL parameters.

How to configure etracker tags

The definition of a tag includes:

  • Optional definition of variables: Variables can be used to dynamically assign meta information to the event. Otherwise, these are either permanently assigned or read from the element.
  • Tag selection: Determines what is to be measured, i.e. the type of information.
  • Trigger selection: The trigger defines which event triggers the measurement, such as a specific interaction with the website.

Click on Add tag to activate recording and processing. Use the debug mode for checking.

Use wrapper tag

The wrapper tag is one of three options for measuring virtual page views with etracker analytics (see Measuring single page applications).

Proceed as follows:

  1. Call up the tag manager menu item in etracker analytics.
  2. Click on + Add tag and select the type Wrapper from the etracker tags.
  3. Create a new trigger that triggers the virtual page view. This could be, for example, a click on a specific element or scrolling to a specific section of the page.
  4. Define a name for the page name. This can also be done using selected or newly defined variables.
  5. Optionally, you can also assign the page to a specific area or page group, for example the navigation or breadcrumb area.
  6. Enter a name at the top under Tag title and optionally a description.
  7. The tag is published directly with Add tag. You can also save the tag as a draft and test it in debug mode before publishing it.

Measure on-site search

The search function can be recorded via the etracker tag manager, by means of automatic recording or etracker code parameters.

The onsite search tag offers the option of recording not only the search terms but also whether there were any matching hits and how many hits.

And this is how it works using the example of https://help.etracker.com/

The documentation search is triggered via the URL parameter s , a URL with search looks like this: https://help.etracker.com/?s=suchbegriff

  1. To read the search term from the URL, a variable is created that contains a GET parameter value, in our case s:
  2. For search queries without results, a trigger is created that fires when a certain element that only appears on the empty results page is visible:
  3. The trigger initiates the new tag internal search, which fills the parameters medium and campaign. In addition, the search term is filled via the variable created in step 1:

Similarly, an onsite search campaign with results can be created. A detailed measurement and analysis of the internal search can thus be set up within a few minutes without any intervention in the HTML of the website.

Capture dynamic content using variables

A tag can be used to record or transmit not only fixed values, but also dynamic information from the website. Content from cookies, the data layer, DOM elements or URL parameters can serve as sources. In the following, we explain how the individual tag types are filled and then used.

To configure variables, click on tag manager in the menu and select the sub-item My variables.

etracker tag manager - my variables

Cookie variable

Use the cookie variable to use cookie values for filling tag parameters. In addition to a name for the variable, all you need to do is enter the cookie name.

Set up cookie variable in etracker tag manager

Data layer variable

Datalayer variables can be used to read out datalayers from a wide range of providers. To do this, enter the name of the data layer and the name of the corresponding variable and assign a name for the variable.

Set up data layer variable in etracker tag manager

URL variable

Two options are available for the URL variable: GET parameter and Query. If GET parameter is selected, the value of a specific GET parameter can be used. To do this, simply enter the name of the desired GET parameter. If Query is selected, all content contained after the question mark is taken from the URL.

Set up URL variable in etracker tag manager

DOM variable

For DOM variables, the element from which the value is to be obtained must first be specified. This is done via the usual selection between CSS selector, element ID and element class.

Set up DOM variable in etracker tag manager

You can then define whether the variable should be filled with the text of this element or whether the value of an attribute from this element should be used. If attribute value is selected, the attribute name must be specified. This also makes it possible to read so-called “data-attributes”.

Use variables

To use a variable in a tag, the variable must be selected in the appropriate parameter of the corresponding tag. In addition to fixed designations, integrated variables are available for selection that refer to the value from the element to which the trigger relates. You can also use your own variables, which can be filled from the four sources mentioned above and are dependent on the selected trigger.

How to use the variables set up