Autotrack on hold
As of 2/6/18, the Autotrack feature is on hold until further notice and is not available for new projects. If you have projects already using Autotrack, this change will not affect you for the time being. In the meantime, we advise our customers to proceed with programmatic code for more granular reporting and deeper segmentation capabilities.
Please contact your account representative or support for more information.
Autotrack allows the use of custom CSS selectors to have full control over defining elements in your event. Some common uses cases might be if you want to:
Select all "buy" buttons on the page, which you might accomplish using the
.classselector (for example,
Select all links that point back to your own domain, which you could accomplish with
Select all links from a specific container, e.g., a navigation bar, which you could accomplish using nested selectors (for example,
#navigation-bar > a).
Selector expressions currently supported by Autotrack
.class| For example,
.introselects all elements with class="intro"
#id| For example,
#firstnameselects the element with id="firstname"
element| For example,
element,element| For example,
<div>elements and all
elementelement| For example,
element>element| For example,
<p>elements where the parent is a
[attribute]| For example,
[target]selects all elements with a target attribute
[attribute=value] | For example,
[target=_blank] selects all elements with
[attribute~=value]| For example,
[title~=flower]selects all elements with a title attribute containing the word "flower"
[attribute|=value]| For example,
[lang|=en]selects all elements with a lang attribute value starting with "en"
[attribute^=value]| For example,
<a>element whose href attribute value begins with "https"
[attribute$=value]| For example,
<a>element whose href attribute value ends with ".pdf"
[attribute*=value]| For example,
<a>element whose href attribute value contains the substring "mixpanel"
:checked| For example,
input:checkedselects every checked
:enabled| For example,
input:enabledselects every enabled
:not(selector)| For example,
:not(p)selects every element that is not a
:nth-of-type(n)| For example,
<p>element that is the second
<p>element of its parent