Skip to main content
This guide covers deploying the Referee tag through Google Tag Manager (GTM) instead of hard-coding it into your checkout template.
GTM manages the <script> tag only. The mmWrapper placeholder div still needs to be added directly to your checkout page template near the coupon entry field.
1

Add the wrapper div to your page template

2

Push a data layer event on checkout page load

If you have any known customer details at this point (firstname, email, etc.), include them as additional keys the same way.
3

Create Data Layer Variables in GTM

Create a Data Layer Variable for mmLocale (and any optional customer fields you’re passing).
4

Create the Custom HTML tag

Test against tag-demo.mention-me.com first, then switch to tag.mention-me.com.
5

Set the trigger

Create a Custom Event trigger firing on mentionMeReferee, scoped to the checkout page.
6

Preview and publish

Confirm in GTM Preview mode that the “Been referred by a friend?” link or form renders on checkout, then publish.
Full parameter reference (including the implementation options: link, form, embed) is on the Referee tag page.

Troubleshooting

If your checkout is a SPA and the referee tag needs to re-fire on route changes without a full page reload, see SPA Implementation - the same re-fire logic applies whether the tag is deployed directly or via GTM.
Last modified on July 17, 2026