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.
Why the referrer tag matters
Mention Me offers referral and influencer solutions. This essential tag allows us to show promotional offers and track customer activity.What does the referrer tag do?
Promotes your referral programme
Personalised messages encouraging customers to refer.
Closes the loop for rewards
Tracks when referred friends buy so referrers get rewarded.
Tracks influencer campaigns
Logs follower transactions so influencers are rewarded accurately.
Supports other goals
Follow-up content like discounts or NPS surveys.
How to integrate the referrer tag
- Popup (default)
- Embedded iframe
- Link to overlay
Add the JavaScript tag
Include the following JavaScript snippet at the bottom of the The JavaScript runs after the rest of the page has loaded, populates the div above with the content.
<body> tag on the order confirmation page (and optionally on other pages too). The request includes your unique partner code and mandatory customer and order parameters.Verb aliases in the URL
The verb in the URL path (referreroffer) can be replaced with offer or conversion — all three behave identically. Pick whichever reads best in your codebase, for example /api/v2/conversion/YOUR_PARTNER_CODE?....
Mandatory data parameters
These are required to ensure that your referral programme runs correctly.The customer’s firstname. Please URL encode. Example:
FranklinThe customer’s surname. Please URL encode. Example:
McFlyThe customer’s email address. Please URL encode. Example:
franklinmcfly559@mention-me.comThe unique order identifier from your system. Has a maximum of 50 characters. Example:
8494024521The order subtotal (excluding VAT/taxes and shipping) in the currency indicated by the
order_currency parameter. If you can’t remove VAT, let us know. Example: 106.75The three character (ISO 4217) currency code that the order total is in. Example:
GBPString 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: postpurchaseString 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). When launching your first referral programme, we recommend targeting your main regions/locales first, based on volume. You can also group together and target certain regions with the same campaign if using the same language and currency (e.g. en_EU for all countries that have English as their language and Euro as their currency). If your referral programme offers third-party vouchers (e.g. Amazon gift card), check if they can support the locales you’re promoting to. Example: en_GBThe coupon code used by the customer (if any). Example:
ABC4577Extra parameters to drive referral optimisation
Add these data parameters to significantly improve performance.The discount amount — our assumption is this has already been taken off the order subtotal provided. This allows us to calculate the Cost Per Acquisition for referral. Example:
23.49The number of items in the basket (if applicable). This helps us understand the type of purchase and can be a signal of advocacy. Example:
1Whether this order is for a subscription (recurring). This helps us qualify and categorise the revenue. Example:
falseWhether this order is a gift (being bought for someone else). Gifts can be signals of advocacy. Example:
falseThe unique customer identifier from your system. Example:
MI1404024521Extra parameters for product referral
If you are using Product Referral, add these parameters to your referrer tag to enable product-level conversion tracking. See the product referral instructions for full details.Comma-separated list of product IDs included in the order.
Comma-separated list of product SKUs included in the order.
Comma-separated list of product names included in the order.
Comma-separated list of product prices included in the order.
Comma-separated list of product quantities included in the order.
Optional data parameters
Optional data parameters
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.
The customer’s title. This allows you to have more formal messaging in your flow. Has a maximum of 20 characters.
The customer’s full name. Please URL encode.
The customer’s username. Your account is set up for referrers to share using their username not full name. Please URL encode.
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.
Any piece of custom data you wish to pass to us.
The customer’s address line 1 (if known).
The customer’s address line 2 (if known).
The customer’s address city (if known).
The customer’s address county (if known).
The customer’s address postcode (if known).
The customer’s address country (if known).
A piece of text you can use to pass into sharing widgets, such as what the user bought or how much they saved.
The date and time the order was placed. The format must be in ISO 8601 format and URL encoded. If not provided or invalid, we will use the date and time at the point we received the tag.
In some cases it may be desirable to ensure that email addresses and other information is not in clear text. See encrypted parameters.
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.Integer representing the index of an offer within an experiment. Used to override the dynamic allocation of offers to customers so that, for example, email creative can be set up to show a specific variation. Default is null.
Example with all mandatory parameters populated
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?
Check the browser developer console for errors from the Mention Me tag. Most integration issues come down to a missing mandatory parameter, an un-encoded value, or the demo host being left in the live snippet. See the common tag integration errors and error codes for the full checklist.
The customer's name isn't populated in the overlay
The customer's name isn't populated in the overlay
The most common reasons are that
firstname and surname are not being rendered into the tag URL (the snippet still contains <INSERT_FIRSTNAME> / <INSERT_SURNAME>), or the values are not URL encoded. Customer names with accented characters or spaces must be URL encoded before being written into the URL.How do I exclude VAT and shipping from the order total?
How do I exclude VAT and shipping from the order total?
order_subtotal must be the order subtotal excluding VAT/taxes and shipping — this is the figure the referral reward is calculated against. If you cannot remove VAT on your side, let your Client Success Manager know and we can handle the adjustment.Why are firstname and surname mandatory?
Why are firstname and surname mandatory?
The referrer tag personalises the sharing experience using the customer’s real name (for example, “Franklin recommends…”). Without a name we cannot build that sharing message, which dramatically reduces referral performance. If your account is configured to share by username instead, use the
username parameter — but the referral programme still needs a name for display in some flows.