This feature is only available on paid accounts and requires Manager user level or higher.
Goal is an optional campaign feature that tracks subscriber activity on your website, and can be used to trigger automations or to create targeted segments for new campaigns.
This is a paid account feature, and is included with all Pay As You Go, Monthly, and High Volume Plans. In this article, you'll learn how to enable Goal for your account and how you can use Goal tracking information to engage your subscribers.
How Goal Works
MailChimp stores a web cookie in a subscriber's browser when they click from a Goal-enabled campaign to a webpage with the Goal tracking snippet installed. The cookie assigns a unique ID to the subscriber and is present for one year or until that subscriber clears the cookies from their browser. Anytime the subscriber returns to your website, the cookie is referenced to track their activity on your site even if the subscriber doesn't click from a MailChimp campaign.
If a subscriber visits your site from another browser or device without clicking through from a Goal-enabled campaign, that subscriber's activity will not be tracked by Goal.
Subscribers can enable privacy settings in their browser to restrict tracking cookies. For the purposes of the Goal integration, we respect do-not-track privacy settings.
Set Up the Goal Integration
- Click your profile name to expand the Account Panel and choose Account.
- Click Integrations.
- Click Goal to expand the integration options.
- Click the Enable button.
- Copy the Goal tracking code we provide and place it at the bottom of the <head> section of every page on your website you want to track. If your website uses a template, place the code snippet in the <head> of the template to add Goal tracking to all pages on your site.
Add Goal Tracking to a Campaign
To add Goal tracking to a campaign, follow these steps.
- Navigate to the Setup step of the Campaign Builder.
- In the
Tracking section, check the box for
- Continue through the Campaign Builder, and send the campaign to your list.
Goal Automation Triggers
To create an automation based on Goal activity, follow these steps.
Navigate to the Automation page.
Click Add Automation.
On the Explore Automations page, click Integration.
Find Goal Website Activity, and click Add Automation.
In the Add Automation pop-up modal, input the name of your automation and select a list from the drop-down menu.
On the Emails page, click Edit Trigger next to the email you want to work with.
Set the delay and add the visited URLs that will trigger your automation. Events and URLs must be 255 characters or less.
Click Update Trigger.
- Continue through the Automation Builder to finish creating your automation.
Advanced Trigger Options
<a href="#" onclick="$mcGoal.processEvent('SignupTestEvent');">Test Event</a>
In this example, the wildcard triggers an automation for anyone who visits "us1.mydomain.com," "usa.mydomain.com," or another similar URL with one character difference. It does not trigger for URLs where the wildcard character is left blank (us.mydomain.com).
Use the |*| character wildcard if you want to target subscribers who visit specific sections of your site. In this example, the |*| allows blank-character matching to account for whether subscribers visit the http:// or https:// version of your website.
Segment with Goal activity to target subscribers who have completed specific actions on your site. After a subscriber clicks any Goal tracked link from a campaign or automated email, you'll be able to segment by that activity to send other targeted campaigns and automated emails.
To target subscribers who have navigated to certain URLs on a site, include the full URL or a portion of a URL to segment by.
Wildcard delimiters cannot be used in Goal segmenting. To target subscribers that clicked wildcard links in your campaign, use the contains segmenting option and include the portion of the URL you'd like to target with your segment.
Goal Last Visited
This option lets you use Goal activity to target subscribers based on when they last visited a website with embedded Goal tracking code.