Manage your custom pixels

You can manage your custom pixels in the Customer events area of your Shopify admin. Before you add a pixel to your Shopify store, you need to create the code for your custom pixel.

Add a custom pixel

After you create the code for your custom pixel, you can add it to your Shopify store.

Before you add a custom pixel, remove or modify any existing pixels to ensure customer events aren't counted twice. Existing pixel code should be manually removed from any place it exists, such as theme.liquid, checkout.liquid (Plus merchants only), and the Additional scripts in your checkout settings.

Steps:

  1. From your Shopify admin, go to Settings > Customer events.
  2. Give your pixel a unique name. If you enter the name of a custom pixel that already exists, then you'll be prompted to give your pixel a different name.
  3. Click Add pixel to open the event editor.
  4. Paste your custom javascript pixel code into the Code window.
  5. Click Save to save your custom pixel. If you're ready to connect your custom pixel now, then you can click Connect pixel to start tracking your events.

Connect a custom pixel

After a custom pixel has been added, you need to connect the pixel to your store so that it can start tracking customer events.

Steps:

  1. From the Customer events page in your Shopify admin, click Custom pixels.
  2. Custom pixels that aren't currently connected are displayed under the heading Disconnected pixels. Click Connect on the appropriate custom pixel line.
  3. Review the Shopify Terms of Service. If your pixel satisfies the service requirements, then click Connect.

Disconnect a custom pixel

If you want to stop tracking the events you added a custom pixel for, then you need to manually disconnect the pixel from your online store. Disconnecting the pixel doesn't delete the pixel.

Steps:

  1. From your Shopify admin, go to Settings > Customer events.
  2. Click Custom pixels.
  3. Click Disconnect on custom pixel that you want to disconnect.

Delete a custom pixel

You can delete custom pixels that you no longer need. Deleting a custom pixel can't be undone, so ensure that you're deleting the appropriate pixel.

Steps:

  1. From your Shopify admin, go to Settings > Customer events.
  2. Click Custom pixels.
  3. Click the ... button on the custom pixel line that you want to delete.
  4. Click Delete, and then in the dialog, click Delete.

Test a custom pixel

Each third-party service has its own way of testing whether a pixel is set up correctly. The following list includes some of the common Google Chrome extensions for testing pixels:

These extensions are unsupported by Shopify. To request support for a third-party extension, contact the provider directly.

Ready to start selling with Shopify?Try it free