OpenCart - How to set the measurement code?‍

How to set the measurement code?

The measurement code is used so that you can monitor the performance of your ads, get detailed statistics and use other features to improve your results. Below you will find a simple guide on how to set up a tracking code on your online store.

1. Installation of the extension for inserting the measurement code

You can easily add the Tanganica Pixel meter code using the custom code extension. An extension that allows you to add scripts to the site header must be installed first

  1. Log in to the OpenCart administration.
  2. In the left menu, click Extensions → Marketplace.
  3. Type "Custom HTML Head/Footer" in the search box.
  4. Select the appropriate extension, click Download and then Install.

2. Activating the extension

  1. In the left menu, go to Extensions → Extensions.
  2. Locate Custom HTML Head/Footer in the list of installed extensions.
  3. Click Edit.
  4. Set the module to Enabled.
  5. Save changes.

3. Inserting the Tanganica Pixel measurement code on the online store

  1. Open the Custom HTML Head/Footer module settings.
  2. Find the "Head" section.
  3. Enter the following measurement code in this field:

<!-- 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;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-TRS5RSN');</script><!-- End Tanganica pixel -->

  1. Save the changes made.

❗ Don't forget to test if the meter code is set correctly in the Tanganica app. ❗

What to do if the application cannot find the measurement code?

  • Make sure you put the code correctly in the “Head” section.
  • Check the code for typos or illegal characters.
  • Verify that you have saved all changes.
  • Make sure your online store website is fully functional.

If you still don't know what to do, contact our support - we'll be happy to help! 🚀

Sign up for our newsletter

and get access to the news first.
Your email has been added to the newsletter database.
Please try again.