Skip to main content
A landing page lets customers engage with your referral program without requiring a purchase.
Mention Me referral landing page example

Creating a landing page

1

Create a new page

Log in to your Shopify admin, navigate to Pages, and create a new page (e.g., Referral Landing Page). You may set it as Hidden initially.
2

Add the referral code

Open the code editor and paste the following in HTML mode:Shopify page editor in HTML mode
<div id="mmWrapper"></div>
<script>
var partnerCode = "INSERT_PARTNERCODE";

var urlComponents = [
  "https://tag.mention-me.com/api/v2/referreroffer/",
  partnerCode
];

var queryComponents = [
  ["situation", "landingpage"],
  ["locale", Shopify.locale + "_" + Shopify.country]
];

queryComponents = queryComponents.map(qc => qc[0] + "=" + encodeURIComponent(qc[1]));

var url = urlComponents.join("") + "?" + queryComponents.join("&");

var script = document.createElement("script");
script.src = url;

document.getElementsByTagName("head")[0].appendChild(script);
</script>
Replace INSERT_PARTNERCODE with your actual partner code. For locale configuration, see Shopify: Locales.
Last modified on July 3, 2026