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
1
Navigate to Customer Events
From your Shopify admin, go to Settings > Customer events.
2
Add Custom Pixel
Click the Add custom pixel button to open the event editor.
3
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.
4
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.
5
Configure Your Client ID and Domain
In the code above, replace the two placeholder values:
If your website domain is
https://example.com/, set the domain to .example.com.6
Save the Pixel
Click the Save button to save your custom pixel.
Connect a Custom Pixel
After a custom pixel has been added, you need to connect it so it can start tracking customer events.1
Navigate to Custom Pixels
From the Customer events page in your Shopify admin, click Custom pixels.
2
Connect the Pixel
Custom pixels that aren’t currently connected are displayed under Disconnected pixels. Click the
... menu on the L5-Tracker pixel line and select Connect..png?fit=max&auto=format&n=Frm2GFbmok4D-yJA&q=85&s=93c3ebd47542af65d1cd06d8563a7f6e)