Skip to main content

Google Tag Manager

Learn how to set up the Tanganica Pixel using Google Tag Manager. This article explains how to create a tag, add the tracking code, publish changes, and test the installation.

I
Written by Info Tanganica
Updated over a week ago

The tracking code (Tanganica Pixel) lets you monitor ad performance, get detailed statistics, and unlock extra features. Here’s how to set it up in Google Tag Manager (GTM):

1. Check your GTM container

  • Log in to Google Tag Manager.

  • If you already have a container for your store, use it.

  • If not, create one (Account → New container → enter store URL → select Web → save).

  • GTM will give you 2 code snippets → place the first in <head>, the second right after <body> on your website.

2. Add the Tanganica Pixel tag

  • In GTM, go to Tags → New.

  • Name it Tanganica Pixel.

  • Choose Tag configuration → Custom HTML.

  • Paste the Tanganica tracking code.

<!-- Tanganica pixel -->

<script>(function(w,d,s,l,i){w[l]=w[l]||[];

w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});

var f=d.getElementsByTagName(s)[0],j=d.createElement(s),

dl=l!='dataLayer'?'&l='+l:'';j.async=true;

f.parentNode.insertBefore(j,f);

})(window,document,'script','dataLayer','GTM-TRS5RSN');</script>

<!-- End Tanganica pixel -->

  • Set the Trigger → All Pages.

  • Save.

3. Publish changes

  • Click Submit → name the version (e.g., Tanganica Pixel added) → Publish.

❗ After publishing, test in Tanganica to confirm the Pixel is working.

Troubleshooting if Pixel is not detected:

  • Make sure changes are published in GTM.

  • Verify the GTM container is installed on your site.

  • Confirm the trigger is set to All Pages.

  • Check that your online store pages are loading correctly.

👉 Still stuck? Contact our support — we’ll be happy to help 🚀

📖 You can also find the full step-by-step guide in our Help Center: tanganica.com/en/help-center

Did this answer your question?