Skip to content

Email Marketing

Discover how to integrate email marketing platforms with AnyTrack for conversion tracking. Track email campaign conversions, set up event mapping, and analyze attribution across your email marketing efforts.

The email marketing channel remains one of the most profitable channels among marketers. Whether email marketing is part of your omnichannel marketing strategy or it’s the core of your business, tracking beyond your open and click-through rate is key to your business growth.

AnyTrack conversion tracking follows these steps regardless of your marketing channel:

  1. A visitor lands on your website
  2. AnyTrack automatically tracks engagements such as FormSubmit and OutboundClick events and passes an auto-generated click_id value into your forms
  3. When the visitor purchases, AnyTrack tracks the conversion by stitching session data and conversion data with the click_id

Option 1: Email Tracking for Lead Generation Campaigns

Section titled “Option 1: Email Tracking for Lead Generation Campaigns”

Track email campaign performance back to the initial ad campaign that acquired the lead when running lead generation campaigns on Facebook Ads.

Before tracking email campaign performance, you must:

  1. Track the campaigns that acquired the Leads.
  2. Track the form submission events.
  3. Pass the AnyTrack Click ID to your opt-in forms and to your email platform.
  • Update your forms to collect the AnyTrack Click ID in a hidden field (the Mailchimp example below names it CLICK_ID). The hidden field automatically populates with the Click ID value
  • Add the CLICK_ID field to your email platform
  • Update your email campaign links to include the custom field and its value

Example from Mailchimp:

https://myfunnel.foo?utm_source=mailchimp&utm_medium=email&atclid=*|CLICK_ID|*
Section titled “Why Add the atclid Parameter to Email Campaign Links?”

When a visitor lands on your website with the ?atclid parameter, AnyTrack recognizes it and stitches the session to the initial campaign that acquired the lead.

Leads often click email links on different devices. Adding the atclid parameter enables cross-device tracking with minimal errors.

AnyTrack documentation screenshot

Most email marketing platforms use similar tracking methods. This example uses Mailchimp to illustrate the email marketing tracking flow.

  1. In Mailchimp go to Audience > Signup forms > Settings
  2. Choose Audience fields and |MERGE| tags:
    2.jpg
  3. Click Add a field > Text and configure it:
AnyTrack documentation screenshot

You can choose a different field name if preferred.

  1. Create a form by going to Embedded forms. After customizing, copy the HTML code:

    copy.jpg

Add this HTML code to the input section:

<input type="hidden" name="CLICK_ID" value="--CLICK-ID--">

Here is the complete HTML code:

<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup {
background: #fff;
clear: left;
font: 14px Helvetica, Arial, sans-serif;
}
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://gmail.us5.list-manage.com/subscribe/post?u=f55344cd125f5750fa6c74774&amp;id=fd12406f4f" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<h2>Subscribe</h2>
<div class="indicates-required">
<span class="asterisk">*</span> indicates required
</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
<!-- The new field that includes the AnyTrack CLICK-ID placeholder -->
<input type="hidden" name="CLICK_ID" value="--CLICK-ID--">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input type="text" name="b_f55344cd125f5750fa6c74774_fd12406f4f" tabindex="-1" value="">
</div>
<div class="clear">
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
</div>
</div>
</form>
</div>
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
<script type='text/javascript'>
(function($) {
window.fnames = new Array();
window.ftypes = new Array();
fnames[0] = 'EMAIL';
ftypes[0] = 'email';
fnames[1] = 'FNAME';
ftypes[1] = 'text';
fnames[2] = 'LNAME';
ftypes[2] = 'text';
fnames[3] = 'ADDRESS';
ftypes[3] = 'address';
fnames[4] = 'PHONE';
ftypes[4] = 'phone';
fnames[5] = 'BIRTHDAY';
ftypes[5] = 'birthday';
fnames[6] = 'CLICK_ID';
ftypes[6] = 'text';
}(jQuery));
var $mcj = jQuery.noConflict(true);
</script>
<!--End mc_embed_signup-->
</link>

Next, add the Click ID placeholder to the links you send in your email campaigns. In Mailchimp, the placeholder for our field is *|CLICK_ID|*.

The placeholder syntax changes from one email platform to another.

For example, the link www.example.com becomes:

https://www.example.com?atclid=*|CLICK_ID|*

When a user submits the form or clicks a link in your newsletter, it appears in AnyTrack with the user journey.

Section titled “UTM Parameters for Email Campaigns (Recommended)”
utm_source=mailchimp&utm_medium=email&utm_campaign={campaignToken}&utm_content={subject}&atclid=*|CLICK_ID|*

When promoting affiliate offers directly from email campaigns, update the campaign URL with the appropriate subid parameter.

For example, when promoting a Maxweb offer:

  1. Find the subid parameter in your affiliate network’s documentation or AnyTrack integration guide
AnyTrack documentation screenshot
  1. Update the email campaign destination URL with the subid parameter
  2. Add the email platform token that will be substituted (e.g., *|CLICK_ID|* for Mailchimp)
https://maxweburl.foo/8389/774/3/?subid=*|CLICK_ID|*
  1. Email client clicks do not report directly to AnyTrack
  2. When the visitor reaches the affiliate offer, the affiliate network records the clickid
  3. Subsequent conversions attribute to the initial campaign that brought the subscriber