Introduction
Shopify Custom pixels help you collect customer events on even more pages of your online store, such as the checkout and post-purchase pages. If there isn’t an app pixel available that meets your requirements, then you can use custom pixels on your store to track customer events without having to modify your theme code. Custom pixels are loaded in a Lax sandbox, designed for improved security and control over the data that you send to third parties.Manage Custom Pixels
You can manage your custom pixels in the Customer events section of your Shopify admin.Add a Custom Pixel
Before adding a custom pixel, make sure to remove or modify any existing pixels to prevent duplicate counting of customer events. Existing pixel/tag code should be manually removed from any place if it exists, such as:theme.liquidcheckout.liquid(Plus merchants only)- Additional scripts in your checkout settings
Name Your Pixel
In the Add custom pixel popup, enter the pixel name
L5-Tracker and click Add pixel.Each pixel name must be unique. If a custom pixel with that name already exists, you’ll be prompted to use a different name.
Add the Pixel Code
Once the custom pixel is created, you’ll see a code editor window. Paste the following L5 Tracker code, or copy it from your Tag Management settings under Shopify Web Pixel.
Configure Your Client ID and Domain
In the code above, replace the two placeholder values:
| Placeholder | Replace With | Example |
|---|---|---|
CLIENT_ID | Your Client ID provided by the Mission Control support team | abc123 |
DOMAIN | Your website domain (without http:// or https://, prefixed with .) | .example.com |
If your website domain is
https://example.com/, set the domain to .example.com.Connect a Custom Pixel
After a custom pixel has been added, you need to connect it so it can start tracking customer events.
The pixel status will update from Disconnected to Connected and will begin tracking customer events.
Tracked Events
The L5-Tracker pixel subscribes to the following Shopify customer events:| Event | Description | Data Captured |
|---|---|---|
page_viewed | User views any page | Page title, additional cookies (_fbp, _fpc) |
product_added_to_cart | User adds product to cart | SKU, product name, category, price, quantity, currency |
product_removed_from_cart | User removes product from cart | SKU, product name, category, price, quantity, currency |
checkout_completed | User completes checkout | Order ID, total, tax, shipping, billing address, currency, customer ID |
.png?fit=max&auto=format&n=Frm2GFbmok4D-yJA&q=85&s=93c3ebd47542af65d1cd06d8563a7f6e)