How to add the pixel with Google Tag Manager

Last reviewed October 22, 2026

If your website uses Google Tag Manager, you can add the DataMoon pixel there instead of editing your site's code.

Before you begin

Steps

1. Create a trigger

  1. In Google Tag Manager, click Triggers in the left sidebar.
  2. Click New.
  3. Name it, for example "Window Loaded Trigger."
  4. Click Trigger Configuration and select Window Loaded.
  5. Choose All Windows.
  6. Click Save.

2. Create a tag

  1. Click Tags in the left sidebar.
  2. Click New.
  3. Name it, for example "DataMoon Pixel."
  4. Click Tag Configuration and choose Custom HTML.
  5. Paste your DataMoon pixel script into the HTML field.
  6. Under Triggering, select the Window Loaded trigger you created.
  7. Click Save.

3. Publish

  1. Click Submit in the top-right corner.
  2. Add a version name and description.
  3. Click Publish.

Important notes

  • Changes don't go live until you publish the container.
  • After publishing, visit your site and check your DataMoon dashboard for visitors.

Need help?

Email support@datamoon.com with your website address and a screenshot of your tag settings.

Related articles