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
Add the wrapper div
Include the following 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.
<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).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.- Link (default)
- Embedded form
- Embedded iframe
Renders a “Been referred by a friend?” link that opens an overlay when clicked.
Mandatory data parameters
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: checkoutString 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_GBOptional data parameters
Optional data parameters
The customer’s firstname. Pre-fills the form if provided. Please URL encode.
The customer’s surname. Please URL encode.
The customer’s full name. Please URL encode.
The customer’s email address. Please URL encode.
The unique customer identifier from your system.
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.
A URL to send users to after they are rewarded. Only functions on the embedded flow.
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.
Optional implementation parameters
Optional implementation parameters
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
The tag doesn't seem to be working. What should I do?
The tag doesn't seem to be working. What should I do?
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.
Why does the 'Been referred by a friend?' link not appear on the page?
Why does the 'Been referred by a friend?' link not appear on the page?
This could happen for two reasons:
- The locale is missing — check if a locale is required for this tag integration
- The
mmWrapperdiv is missing from the page — check that the div is included somewhere in the<body>tag of the checkout
How can I change the wording for the 'Been referred by a friend' link?
How can I change the wording for the 'Been referred by a friend' link?
The copy on the referee link is controlled via the Mention Me platform and can easily be changed. Ask your Client Success Manager about this option.
I have a dynamic website — how do I get the referee journey to appear?
I have a dynamic website — how do I get the referee journey to appear?
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: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: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.