Posted on 5 Comments

Add Google Analytics tracking code to your Prestashop template

In addition to Google Analytics module available in Prestashop you can add Google Analytics tracking code to your Prestashop template – the code should be inserted into the themes\theme_name\footer.tpl file.

Insert the code before the closing </body> tag

5 thoughts on “Add Google Analytics tracking code to your Prestashop template

  1. Salut,

    Ai idee unde sa pun codul de adwords?
    Cel de analytics l-am introdus bine.

    Folosesc default theme si doresc sa-l bag, bineinteles, in pagina de thank you. Adica dupa ce se lanseaza o comanda.

    Mersi!

  2. Trebuie introdus in order-confirmation.tpl:
    – pentru tema default: themes/prestashop/order-confirmation.tpl
    – pentru tema custom: themes/nume_folder_tema/order-confirmation.tpl

    Variabilele scriptului trebuie puse intre tag-urile {literal}{/literal}

  3. Thanks, this was quite easy to do. However, the new Google code for demographics requests some more steps to do in order to track that info. Is this the same place where I need to add the additional code?

    Thanks,
    Jack.

  4. Yes. The example I used was for the Universal Analytics (not the Clasic Google Analytics). Basically you just need to add one line of code: ga(‘require’, ‘displayfeatures’);

    Below is the example from Google (http://goo.gl/iGCnJE)

  5. we can use default module of PrestaShop to add tracking code for Presta store for 1.6 and 1.5

Leave a Reply

Your email address will not be published. Required fields are marked *