Docs
Common settings

Measurement pixel

Once you set up the Recustomer measurement pixel, shopping behaviour data on your storefront (the shop screens your shoppers browse) is sent to Recustomer.

Shopify only

The measurement pixel is set up with Shopify's "Customer events" feature. If you use a cart system other than Shopify, this setting is not needed.

1. What is measured

The pixel measures the following behaviour.

BehaviourDescription
Page viewsViews of the home page, product pages, collection pages and so on
Cart actionsAdding and removing products from the cart, and views of the cart page
CheckoutStarting and completing checkout
Recustomer featuresDisplays of and clicks on the Try Before You Buy button and pop-up, displays of the Checkout+ banner and pop-up, and whether the shopper went to checkout with Checkout+ added

For each behaviour, the pixel sends the information that Shopify passes with the customer event. The main contents are listed below. For the full list of fields, see Shopify's standard events reference.

TypeContents
EventThe type of behaviour, date and time, and event ID
BrowserAn ID that Shopify assigns to each browser, user agent, language setting, screen and window size, and scroll position
PageURL (including the query string after "?"), referrer URL and page title
Products and cartProduct and variant ID, name, price and SKU, quantity, and cart attributes
CheckoutCheckout token, order ID, customer ID, products, amounts, discounts, delivery method, payment type, and checkout attributes
StoreThe store's myshopify.com domain

Recustomer also records the date and time it received the data and the sender's IP address.

Fields whose names contain "email", "phone" or "address" (email addresses, phone numbers, and billing and shipping addresses including the recipient's name) are removed before the data is sent.

Some personal data may be sent

Only fields that can be identified by their names are removed; the values themselves are not checked. Besides the customer ID and browser ID, information contained in values such as the following is sent as is.

  • Email addresses or subscriber IDs in the URL query string of links from newsletters and the like
  • What shoppers enter in cart or checkout attributes

2. How the data is used and how long it is kept

The data sent to Recustomer is used to measure and improve the effectiveness of Recustomer features such as Try Before You Buy and Checkout+.

The received data and the records made on receipt (including IP addresses) are deleted automatically 365 days after receipt. If you want data for your whole store or for a specific shopper deleted before then, contact your Recustomer representative.

3. How to set it up

  1. Sign in to the Shopify admin

  2. Open Settings > Customer events

  3. Click "Add custom pixel" in the top right

    The Customer events screen in Shopify. Click the Add custom pixel button in the top right

  4. Enter any name for the pixel and click "Add pixel"

    The Add custom pixel modal. Enter a pixel name and click Add pixel

  5. When the code editor opens, paste the following code as is

    const recustomerEvents = [];
    globalThis.recustomerEvents = recustomerEvents;
    globalThis.recustomerInit = init;
    analytics.subscribe("all_standard_events", (event) => recustomerEvents.push(event));
    analytics.subscribe("all_custom_events", (event) => recustomerEvents.push(event));
    const script = document.createElement("script");
    script.src = "https://script.rcmr.io/pixel/main.js";
    script.async = true;
    document.head.append(script);
    
  6. Click "Save" in the top right, then change the pixel status to "Connect". You are done once the status shows "Connected"

4. Notes

  • The code you pasted is a "loader" that pulls in the measurement script itself. The measurement logic is updated on the Recustomer side, so you only need to paste the code once.
  • If you use several Shopify stores, follow the same steps in each store's admin. The code is the same for every store; stores are identified automatically.
  • To pause measurement, go to Settings > Customer events and change the status of the Recustomer pixel to "Disconnect". You do not need to delete the code.
  • Uninstalling the Recustomer app does not delete the pixel, so it keeps sending data. If you stop using it, delete the Recustomer pixel in Settings > Customer events.
  • The measurement script is loaded asynchronously and runs inside Shopify's sandbox, so the impact on your store's loading speed is negligible.
© Recustomer, Inc.