You can integrate our AFL UTM Tracker plugin with your Consent Management Platform (CMP) through the Google Consent Mode.
The AFL UTM Tracker plugin will “opt-in” or “opt-out” of cookies based on the consent update event from Google Consent Mode.
The steps below involves using our Google Tag Manager template. It supports 2 types of consent category:
- analytics_storage for Statistics
- ad_storage for Marketing
Minimum Requirements:
- AFL UTM Tracker v2.14.7
- Google Tag Manager
- Consent Management Platform (CMP) that supports Google Consent Mode
Google Tag Manager Template Changelog
Version 1.1.0 – 2024-06-20
– Fix bug where Last Touch is not being updated.
– You will need to change the tag trigger to “DOM Ready” and remove the old trigger which was set to trigger before the CMP fires.
Version 1.0.0 – 2024-02-06
- First released.
Steps
WordPress Admin
- Login to your WordPress dashboard.
- Under the AFL UTM Tracker menu > Settings.
- Look for the Cookie Consent Integration section.
- Select ‘GTM / Manual‘ from the drop-down list.
- Save setting.
- Clear all page cache.
NOTE: Changing the Consent Category in our plugin setting does not affect the Consent Category in your our Google Tag Manager (GTM) template. The Require Consent field set in our GTM tag will be the main source.
Importing the GTM template
- Download our Google Tag Manager template.
- Login your Google Tag Manager dashboard.
- Go to your website’s container.
- Under Templates > New.
- Click the burger menu > Import.
- Select “AFL UTM Tracker – Google Consent Mode.tpl” file.
- Save.
Adding Tag
- Under Tags > New.
- Name the tag ‘AFL UTM Tracker – Google Consent Mode’.
- Tag Configuration > Choose tag type > Custom > AFL UTM Tracker – Google Consent Mode.
- Set Required Consent field.
- Select ‘analytics_storage’ if you are collecting the user’s UTM report for statistics purposes.
- Select ‘ad_storage’ if you are collecting the user’s UTM report for marketing purposes.
- Under the Triggering section:
- Set it to trigger during the “DOM Ready” event.
- Save.
Consent Management Tag
Depending on the Required Consent value above, make sure that you have the appropriate Consent Category already setup in your Consent Management Platform tag.
For example, if you have selected ‘analytics_storage’ above:
- Check if your CMP already has a Consent Category for Statistics / analytics_storage.
- Check if your CMP needs to register a list of our plugin cookies.
If your CMP needs you to register each cookies individually, here is our List of Cookies and Purposes.
If your CMP supports registering by cookie prefix:
afl_wc_utm*
Testing the Tag
- Next Preview your workspace.
- Launch your website through the debugger.
- Right click > Inspect Element or open your browser developer tool.
- Go to the Application tab > Cookies > Select your website URL.
Test Opt-in
- Click on your Cookie Consent Banner to allow consent for Statistics purposes.
- Under the Cookies list, watch as our cookies with the prefix ‘afl_wc_utm_’ being generated.
Test Opt-out
- Click on your Cookie Consent Banner to reject consent for Statistics purposes.
- Under the Cookies list, watch as our cookies are deleted. You might need to right click on the list to Refresh.
If everything works, go ahead and publish your workspace changes.
Do drop us an email with your website link for us to audit.