Skip to main content
You want to add the Cometly pixel (the script that tracks where your website visitors come from) through Google Tag Manager (GTM), but you have no container to put it in. Or you have a container, and its code is not on your site yet, so nothing you add to it loads. A tag in Google Tag Manager only runs on pages that carry the container’s own code. So before you add the pixel, you need to set up a Google Tag Manager web container and install it on your site. This page covers both parts. After you create your container, continue with Google Tag Manager pixel installation to add the Cometly pixel.

Create a new Google Tag Manager web container

Google Tag Manager is a tag management system (TMS) that lets you quickly update measurement codes and related code fragments, collectively known as tags, on your website.
  1. Open Google Tag Manager: Create a Google Tag Manager web container
  2. Create a new web container for your website. The video below shows each click.

Install Google Tag Manager in your ecommerce store

Skip this step if Google Tag Manager is already set up on your ecommerce store.
Watch the video below to see how to install the Google Tag Manager code in your ecommerce store. The example installs Google Tag Manager in a Shopify store, in the theme.liquid file.

Confirm the container is ready for the Cometly pixel

The container is ready once its code is on your site and you can publish tags from it. To confirm it from Cometly, follow Google Tag Manager pixel installation to add the pixel as a tag, publish the container, then click Verify under Verify your pixel in Cometly. Your domain shows Pixel detected.

Frequently asked questions

Do I need Google Tag Manager to install the Cometly pixel?

No. You can paste the pixel directly into the <head> section of your website, and that is the installation we recommend for the most accurate tracking. Google Tag Manager is an option when you prefer to add the pixel without editing your site’s code.

Is the Cometly pixel less accurate when installed through Google Tag Manager?

It can be. The pixel works through Google Tag Manager, but you may lose attribution data because of pixel loading delays, privacy blockers and data loss. See Google Tag Manager pixel installation for the details.

Can I add the Cometly pixel in Google Tag Manager if it is already on my site?

No, install it in one place only. If the pixel is hard coded on your site and also added through Google Tag Manager, it loads twice and causes tracking issues.

Next steps

Still have questions or need a hand? We’re happy to help. Reach our team at support@cometly.com.