Access your interface

Enter your email address to access your personal interface.

Shopify Custom Web Pixel

Updated 5 October 2026

The Eulerian integration for Shopify consists of manually inserting JavaScript code as a custom pixel. It automatically collects page views, add-to-basket events and purchases, then sends this data to the Eulerian platform.

Note

It is not an app published on the Shopify App Store.

Prerequisites

Importing the Eulerian template

Get the full code from snippet/generic.js in the repository.

Configuring the tag

  1. Enter your Eulerian tracking subdomain in the script’s CONFIG constant.
  2. In the Shopify admin, go to Settings > Customer events, then Custom pixels > Add pixel.
  3. Paste the full JavaScript code there.

Configuring the triggers

Triggers are not configured one by one: the script relies on Shopify’s Web Pixels API and subscribes to the events itself.

When it loads, it imports the Eulerian tracking script (ea.js), then subscribes to the standard events page_viewed, product_viewed, product_added_to_cart and checkout_completed.

For each event it receives, it builds a parameter array and calls window.EA_collector, which sends the data to Eulerian:

  • for a page view, it sends the customer identifier and the event type;
  • for an add to basket, it sends the product’s identifier, name, price and category;
  • for a purchase, the handleCheckoutCompleted function builds an EA_datalayer array with the customer identifier (uid), the event type, the order reference, the amount, the currency and the items bought.

The dataLayer is therefore created by the script: you do not have to set it up yourself.