
The AutoTrack function automatically finds and triggers OutboundClick and FormSubmit events on your website. In most cases this is the desirable behaviour but you may want to disable the AutoTrack in some sections of your website while leaving it active on the rest of the page.
You can add the class class="at-do-not-track"
on specific elements, or on a container, which will disable tracking for all elements within this class.
Practical Example
In the following example we add an at-do-not-track
class on the member area of the website. This will make sure everything within the member area such as login form and other components will remain untracked while the rest of the website continues to be tracked as usual.
<head>
<!-- AnyTrack TAG snippet -->
</head>
<body>
<header>
<a href="/offers">Offers</a>
<a href="/store">Store</a>
</header>
<main>
<h1>Best VPN in Germany</h1>
<!-- Offer links will continue to work -->
<a href="/go/germany-vpn" rel="nofollow">Buy Now</a>
</main>
<section id="members" class="at-do-not-track">
<!-- Everything within this section will NOT be tracked -->
<h2>Login</h2>
<form action="/login" method="post">
<input name="email" placeholder="Email">
<input name="pass" type="password" placeholder="Password">
<button>Submit</button>
</form>
</section>
<footer>
<!-- Do not track specific links as well -->
<a href="/go/terms" rel="nofollow" class="at-do-not-track">Terms</a>
</footer>
</body>
Comments
0 comments
Please sign in to leave a comment.