PrestaShop - 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 module for inserting the measurement code

You can easily add the Tanganica Pixel measurement code using the Custom HTML Head Tags module. The module that allows you to add scripts to the site header must be installed first

  1. Log in to the PrestaShop administration..
  2. In the left menu, click on Modules → Catalog of modules.
  3. Type "Custom HTML Head Tags" in the search box.
  4. Select the module, click Install and then Configure.

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

  1. Open Custom HTML Head Tags plugin settings.
  2. Find the field to insert your own HTML code in the site header.
  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.