Follow the below steps to add the Mention Me referee tag to an UpCart integration.
- Within your Shopify store, search for the App and access the App homepage
- Within the App, go to the ’Cart Editor'
- Scroll down the cart editor to ‘Settings’ on the left side of the page, then once in Settings, use the dropdown options in ‘Custom HTML’ to select ‘Above Checkout Button’. This is where the Mention Me script needs to be placed
- Add the following script to the content area:Remember to add the Partnercode and locale code to the script where needed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mention Me Integration</title>
</head>
<body>
<!-- Your UpCart content here -->
<!-- Begin Mention Me referee placeholder div -->
<div id="mmWrapper"></div>
<!-- End Mention Me referee placeholder div -->
<!-- Begin Mention Me referee integration -->
<script type="text/javascript" src="https://tag.mention-me.com/api/v2/refereefind/{PARTNERCODE}?situation=sidecart&locale={LocaleCode}"></script>
<!-- End Mention Me referee integration -->
<script>
document.addEventListener("DOMContentLoaded", function() {
// Ensure the mmWrapper div is in front of other content
var mmWrapper = document.getElementById('mmWrapper');
if (mmWrapper) {
mmWrapper.style.position = 'relative'; // Ensure it is positioned
mmWrapper.style.zIndex = '9999'; // High z-index value
}
});
</script>
</body>
</html> - Once the script has been added, scroll to the top of the page and save