Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mention-me.com/llms.txt

Use this file to discover all available pages before exploring further.

What is the referee tag used for?

Mention Me allows referrers to share with their friends via word of mouth by using their name. The referee tag allows prospective new customers to search for their friend’s name and claim an introductory reward. The copy on the referee link is controlled via the Mention Me platform and can be changed without any development work. Contact your Client Success Manager about this option.

How to integrate the referee tag

1

Add the wrapper div

Include the following <div> somewhere in the <body> tag of the checkout page near where you offer coupon entry (and optionally on other pages of your site too).
<!-- Begin Mention Me referee placeholder div -->
<div id="mmWrapper"></div>
<!-- End Mention Me referee placeholder div -->
This is just a placeholder which is populated via the JavaScript tag. You can optionally apply a class or style to the div if you wish to control the way the contents are styled.
2

Add the JavaScript tag

Include the following JavaScript snippet at the bottom of the <body> tag on the checkout page (and optionally on other pages of your site too). The request includes your unique partner code.
3

Customise the parameters

(Optional) Include data parameters passing the customer’s details if you have them at the point in the process where you insert the tag — this makes the process smoother for the customer.

Mandatory data parameters

situation
string
required
String indicator of where you are including this tag within your site (for example: checkout, postpurchase, landingpage). Used for reporting. Has a maximum of 50 characters. Example: checkout
locale
string
required
String representing the required locale for the campaign. Used to show the right locale (language, currency) for the user. The format should be ISO 639-1 language code, an underscore (_), then the ISO 3166-1 alpha-2 country code (e.g. fr_FR for French/France). Default is empty (which will result in a locale of en_GB being assumed). Example: en_GB
firstname
string
The customer’s firstname. Pre-fills the form if provided. Please URL encode.
surname
string
The customer’s surname. Please URL encode.
fullname
string
The customer’s full name. Please URL encode.
email
string
The customer’s email address. Please URL encode.
customer_id
string
The unique customer identifier from your system.
phone_number
string
The customer’s phone number(s). Pass as many phone numbers as you have as a comma-separated list. If you are passing any data which is not a digit (e.g. spaces, +‘s), these need to be URL encoded.
call_to_action_url
string
A URL to send users to after they are rewarded. Only functions on the embedded flow.
segment
string
String representing a customer segment (for example one of: men, women) used to pass segmentation data about your customer to us. Has a maximum of 50 characters.
implementation
string
Optionally override the way the flow is implemented (one of: link, form, embed). Default can also be set in the merchant dashboard. If in doubt, leave out.

Things to watch out for

You can use the browser Console log to check any potential error states relating to the tag integration.Further details on error messages and how to resolve them is available in the error codes and messages section.
The referee tag has a feature to prevent it showing multiple times. In websites built with React, Angular, Vue, or other dynamic frameworks, this can conflict and prevent the tag from appearing when you would expect it to.If this occurs, you will see a message in the browser developer console similar to:
A tag has already fired with identifier [linkcheckout] on this page. Suppressing tag
To prevent this, ensure the Mention Me tag is aware it can re-run without harm. The code below clears the fired tag state before loading the referee tag:
<script type="text/javascript">
  if (window.MentionMeFiredTags != undefined && window.MentionMeFiredTags != '') {
    var situation      = 'checkout';
    var implementation = 'link';
    if (window.MentionMeFiredTags[implementation + situation] == true) {
      delete window.MentionMeFiredTags[implementation + situation];
    }
  }
</script>
<script src="the-existing-referee-tag-goes-here"></script>
This concatenates the implementation (in this case link) and situation (in this case checkout) and tells the Mention Me tag that it can re-fire for linkcheckout.See SPA Implementation for more details.
Last modified on April 17, 2026