Skip to main content

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.

To integrate Mention Me on your SAP Commerce Cloud website, we recommend using our JavaScript tag-based integration configured via Google Tag Manager. Alternatively, embed the Mention Me JavaScript tags directly into your SAP Commerce Cloud storefront by following the standard integration instructions. These resources provide guidance on integrating Google Tag Manager with SAP Commerce Cloud: To use Google Tag Manager with Mention Me, include customer and order-related variables in the tag container’s data layer. This guide assumes you have implemented the purchase action from Universal Analytics or GA4 Ecommerce.

Referrer integration

Configure the referrer JavaScript tag entirely via Google Tag Manager using variables, a trigger, and a tag.

Variables

The following variables are needed in the data layer:
ParameterDescriptionExample
Customer firstnameCustomer’s first name (URL-encoded)Monica
Customer surnameCustomer’s surname (URL-encoded)Collins
Customer emailCustomer’s email address (URL-encoded)monicacollins195@mention-me.com
Order subtotalValue excluding tax/shipping in specified currency95.75
Order currency codeCurrency in ISO 4217 formatGBP
Order IDUnique order ID (max 50 chars)9947550576
Customer localelanguage_country format (ISO 639-1 + ISO 3166-1 alpha-2)en_GB

Trigger

Create a purchase trigger using the “Page View” trigger type on the order confirmation page. GTM purchase trigger configuration for order confirmation page

Tag

Create a Custom HTML tag:
<!-- Begin Mention Me referrer integration -->
<script type="text/javascript" src="https://tag.mention-me.com/api/v2/referreroffer/PARTNER_CODE?firstname={{ Customer first name }}&surname={{ Customer surname }}&email={{ Customer email address }}&order_number={{ Order ID }}&order_subtotal={{ Order subtotal }}&order_currency={{ Order currency code }}&situation=postpurchase&locale={{ Customer locale }}"></script>
<!-- End Mention Me referrer integration -->
Replace PARTNER_CODE with your Mention Me partner code (e.g. mmxxx00000). Ensure the variable names match those defined in your GTM container’s data layer.
GTM Custom HTML tag with Mention Me referrer script

Referee integration

The referee integration enables Name Share: customers enter their friend’s name to claim an introductory reward. Embed the referee tag on the checkout page.

Variables

ParameterDescriptionExample
Customer localelanguage_COUNTRY format (ISO 639-1 + ISO 3166-1)en_GB

Trigger

Create a page view trigger on the checkout page. GTM page view trigger for checkout page

Tag

Create a Custom HTML tag:
<!-- Begin Mention Me referee integration -->
<script type="text/javascript" src="https://tag.mention-me.com/api/v2/refereefind/PARTNER_CODE?situation=checkout&locale={{ Customer locale }}"></script>
<!-- End Mention Me referee integration -->
Replace PARTNER_CODE with your Mention Me partner code. Update {{ Customer locale }} to match your data layer variable.
GTM Custom HTML tag with Mention Me referee script

HTML changes

Add the following placeholder to the checkout page (typically above the coupon code field):
<!-- Begin Mention Me referee placeholder div -->
<div id="mmWrapper"></div>
<!-- End Mention Me referee placeholder div -->
If you cannot add this placeholder directly, the Mention Me Onboarding team can help target an existing element on the page.

SAP Commerce Cloud Accelerators

If using the SAP Coupon Module, review the documentation for Coupons in Accelerator. Update the JSP tag at: yacceleratorstorefront/web/webroot/WEB-INF/tags/responsive/cart/cartVoucher.tag Alternatively, add the integration into: yacceleratorstorefront/web/webroot/WEB-INF/views/responsive/pages/cart/cartTotalsDisplay.jsp

SAP Spartacus

Customise the Cart Coupon component HTML and place the Mention Me div wrapper above <div class="cx-cart-coupon-container">.
Last modified on March 31, 2026