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 Responses to Add Google Analytics tracking code to your Prestashop template

  1. Alex Apr 15, 2014 at 9:47 PM #

    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. Nicu Zecheru Apr 17, 2014 at 11:40 AM #

    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. Jack Jun 18, 2014 at 9:40 PM #

    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. Nicu Zecheru Jun 19, 2014 at 2:58 PM #

    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. Amelia Johns May 20, 2015 at 10:34 AM #

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

Leave a Reply