Setting Up a MailChimp Tag on sGTM Container
Add the Mailchimp tag template to the server container. Within templates, add it by ‘searching in gallery’.
Create a new tag and choose this template as the tag configuration.
For Type, choose ‘Track event’.
Under Email hashed with MD5, select your variable with the hashed email address.
Don’t know how to hash an email address? Follow these steps
For audience ID, paste the Audience ID of your Mailchimp account
Audience ID is your mailchimp list's unique ID. Follow these steps to find your audience ID
For the API key, paste your mailchimp API key
To find your API Key, follow these steps
Under Event Information, enter the Event Name variable in the ‘Event Name’ input field.
Click on Triggers.
Select the same trigger you use for Meta Ads, which checks if an event_id is present in the event.
Name the tag ‘MailChimp’ and save the tag.
Don’t use Meta Ads and haven’t created this trigger yet? Follow the steps below to create the trigger.
Create a new ‘User-Defined Variable’.
Select ‘Event Data’ as the variable type.
In the input field, enter “event_id”.
Name this variable ‘event_id’ and save the variable.
Create a new trigger.
For trigger configuration, choose the gray option ‘Custom’.
Select ‘Some Events’.
In the left dropdown menu, select ‘Client Name’. In the middle dropdown menu, select ‘equals’. In the right input field, enter “GA4”.
Add an extra condition by clicking the blue plus sign.
In the left dropdown menu, select your ‘event_id’ variable. In the middle dropdown menu, select ‘does not contain’. In the right input field, enter “undefined”.
Name the trigger “event_id Trigger” and save the trigger.
Create a new tag and choose this template as the tag configuration.
For Type, choose ‘Track event’.
Under Email hashed with MD5, select your variable with the hashed email address.
Don’t know how to hash an email address? Follow these steps
For audience ID, paste the Audience ID of your Mailchimp account
Audience ID is your mailchimp list's unique ID. Follow these steps to find your audience ID
For the API key, paste your mailchimp API key
To find your API Key, follow these steps
Under Event Information, enter the Event Name variable in the ‘Event Name’ input field.
Click on Triggers.
Select the same trigger you use for Meta Ads, which checks if an event_id is present in the event.
Name the tag ‘MailChimp’ and save the tag.
Don’t use Meta Ads and haven’t created this trigger yet? Follow the steps below to create the trigger.
Create a new ‘User-Defined Variable’.
Select ‘Event Data’ as the variable type.
In the input field, enter “event_id”.
Name this variable ‘event_id’ and save the variable.
Create a new trigger.
For trigger configuration, choose the gray option ‘Custom’.
Select ‘Some Events’.
In the left dropdown menu, select ‘Client Name’. In the middle dropdown menu, select ‘equals’. In the right input field, enter “GA4”.
Add an extra condition by clicking the blue plus sign.
In the left dropdown menu, select your ‘event_id’ variable. In the middle dropdown menu, select ‘does not contain’. In the right input field, enter “undefined”.
Name the trigger “event_id Trigger” and save the trigger.
Updated on: 21/08/2024
Thank you!