• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 16.06.19, 13:48
  • Opened by: Sergio Nuzzo
  • Closed by: Marek
  • Closed on: 01.08.19, 12:45
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14854 - Problem with official Google Analytics module

Hi.
With Alysum theme, when the Google Analytics module is active, I can track users from mobile (AMP version) but not from Desktop… This is the error message: No HTTP response detected

Can you help me please?

Comments

Marek 17 Jun 2019, 17:49

Yes, we know about that issue and it’s in our TODO list to find a solution for the next update

Sergio Nuzzo 18 Jun 2019, 10:52

Ok. Can you please telle me where I can add manually the code at the moment? I’ve tried to add it in one tpl file but the result is an error.

Marek 18 Jun 2019, 11:54

You can add your code to the file /themes/alysum/templates/_partials/javascript.tpl

Sergio Nuzzo 18 Jun 2019, 12:26

I’ve tried to add google code at the end of the file as you wrote me but when I do it the website give me a 500 error.

The code is the default Analytics code…

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-5723067-15"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-5723067-15');
</script>
Marek 18 Jun 2019, 12:28

I just added it for you, please check it out

Sergio Nuzzo 18 Jun 2019, 13:00

Now I can see the pixel.
The Tag Assistant give me a warning now… The message is “Multiple installations of Global site tag (gtag.js) detected” but it wors so it’s ok for now.

Marek 18 Jun 2019, 13:25

try to remove google tag manager code