Skip to content

TrackIt Holders Overview

hikirsch edited this page Sep 14, 2010 · 1 revision

Holders within TrackIt make handling dynamic values easily. Holders are declared globally and can be accessed as a value from any variable within a trackEvent.

Holders are strings that are surrounded by square brackets [ ]. A holder’s name is inside. There are a number of builtin holders that exist that can be accessed with ease.

A practical use for this would be if you wanted to track the name of a link that you clicked on, you could do that within a single track. Here’s an example:

<trackEvents>
   <trackEvent key=“Article Headline Click” type=“click”>
        <events>event1</events>
        <eVar1>[text]</eVar1>
   </trackEvent>

Learn how you can also create your own custom holders.