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, referrer URL and page title
Products and cartProduct and variant ID, name, price and SKU, and quantity
CheckoutCheckout token, order ID, customer ID, products, amounts, discounts, delivery method and payment type
StoreThe store's myshopify.com domain

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

The following information is removed before the data is sent.

  • Fields whose names contain "email", "phone" or "address" (email addresses, phone numbers, and billing and shipping addresses including the recipient's name)
  • Cart and checkout attributes, and line item properties (fields that shoppers, themes or other apps can fill in freely)
  • The username, password and everything after "#" in the URL and referrer URL
  • In the query string after "?" in the URL and referrer URL, every parameter other than the five that show where the visit came from (utm_source, utm_medium, utm_campaign, utm_term and utm_content). Even these five are removed if their value contains an email address

On pages whose URL path contains a token that lets someone view or act as the shopper, such as password reset, order status, checkout and gift card pages, the part of the path from the token onwards is replaced with "redacted" before the data is sent.

Some personal data may be sent

Only the information listed above is removed or replaced; 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.

  • URL paths, and the values of the query parameters that show where the visit came from
  • Values included in the events for displays of and clicks on Try Before You Buy and Checkout+

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.

When you uninstall the Recustomer app, Shopify notifies Recustomer 48 hours later. Recustomer then deletes the data received from your store and stops accepting data from it (the records made on receipt are deleted 365 days after receipt). If you want data for a specific shopper deleted, or your store's data deleted while you keep using the app, 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 browsers keep sending data. Recustomer stops accepting it 48 hours after the uninstall (see 2. How the data is used and how long it is kept). 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.