Skip to main content

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

1

Add the JavaScript tag

Include the following JavaScript snippet at the bottom of the <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.
The JavaScript runs after the rest of the page has loaded, populates the div above with the content.
2

Customise the parameters

Customise any passed parameters to pass the real data. Don’t forget to URL encode your data.
All parameter values must be URL-encoded — for example, @%40, spaces → %20.

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.
string
required
The customer’s firstname. Please URL encode. Example: Franklin
string
required
The customer’s surname. Please URL encode. Example: McFly
string
required
The customer’s email address. Please URL encode. Example: franklinmcfly559@mention-me.com
string
required
The unique order identifier from your system. Has a maximum of 50 characters. Example: 8494024521
string
required
The 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.75
string
required
The three character (ISO 4217) currency code that the order total is in. Example: GBP
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: postpurchase
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). 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_GB
string
required
The coupon code used by the customer (if any). Example: ABC4577

Extra Parameters to Drive Referral Optimisation

Add these data parameters to significantly improve performance.
string
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.49
string
The number of items in the basket (if applicable). This helps us understand the type of purchase and can be a signal of advocacy. Example: 1
string
Whether this order is for a subscription (recurring). This helps us qualify and categorise the revenue. Example: false
string
Whether this order is a gift (being bought for someone else). Gifts can be signals of advocacy. Example: false
string
The unique customer identifier from your system. Example: MI1404024521

Extra 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.
string
Comma-separated list of product IDs included in the order.
string
Comma-separated list of product SKUs included in the order.
string
Comma-separated list of product names included in the order.
string
Comma-separated list of product prices included in the order.
string
Comma-separated list of product quantities included in the order.
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.
string
The customer’s title. This allows you to have more formal messaging in your flow. Has a maximum of 20 characters.
string
The customer’s full name. Please URL encode.
string
The customer’s username. Your account is set up for referrers to share using their username not full name. Please URL encode.
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.
string
Any piece of custom data you wish to pass to us.
string
The customer’s address line 1 (if known).
string
The customer’s address line 2 (if known).
string
The customer’s address city (if known).
string
The customer’s address county (if known).
string
The customer’s address postcode (if known).
string
The customer’s address country (if known).
string
A piece of text you can use to pass into sharing widgets, such as what the user bought or how much they saved.
string
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.
string
In some cases it may be desirable to ensure that email addresses and other information is not in clear text. See encrypted parameters.
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.
string
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

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 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.
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.
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.
Last modified on July 15, 2026