• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 28.12.19, 20:25
  • Opened by: Matteo Cotugno
  • Closed by: Fred
  • Closed on: 09.01.20, 11:09
  • Reason: Closed
  • Comment: Glad to help!

Ticket #16535 - Analytics

Hi,
Google Analytics is blocked by Theme settings module to tracking my site. How can I fix it?

Thanks

Comments

Fred 28 Dec 2019, 21:04

How did you understand that Theme Settings is blocking it?
Try to disable Footer Builder just for a test.

Matteo Cotugno 30 Dec 2019, 13:37

No the analytics works but only for the mobile. For the desktop client, analytics don’t work. I already added the user in the module but don’t work. Is needed to put manually the user in the code as like some user that I did read in the support

Fred 31 Dec 2019, 08:14

Do you use Google Analytics module? maybe you have this issue – https://github.com/PrestaShop/ps_googleanalytics/issues/29

Try to put the code what google gives you directly into the theme, fo example into the file /themes/alysum/templates/_partials/javascript.tpl

Matteo Cotugno 06 Jan 2020, 19:12

I cannot to add the code. Can you help me please?

Fred 07 Jan 2020, 11:29

give me your code and I’ll add it to the file

Fred 08 Jan 2020, 18:24

I don’t have access to your server.
Just add following code to the end of file /themes/alysum/templates/_partials/javascript.tpl

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93634615-2"></script>
<script>{literal}
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-93634615-2');{/literal}
</script>
Matteo Cotugno 08 Jan 2020, 20:02

ok thank you

Fred 09 Jan 2020, 11:09

you are welcome