Developer forum

Forum » Rapido » Google Analytics Rapido not working

Google Analytics Rapido not working

Hendrik
Reply

PROBLEM SOLVED!

----->

 

Hello,

I've installed DW Rapido and trying to install Google Analytics. I enabled 'custom javascript' and placed the following code in 'custom.js'.

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

  gtag('config', 'UA-000000'), { 'anonymize_ip': true });
</script>

 

The problem is that the code is not visible. Can you help me?


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Hendrik

Great that you found the solution. Is it possible for you to write here what you did? Maybe someone else could get some help from it.

 

Best regards
Karsten Thuen

 
Hendrik
Reply

I made the mistake to install Google Analytics as a JS file. I found out that's possible in DW to install the Google TAG manager code. In Google TAG manager you can install the Google Analytics code.

 

You must be logged in to post in the forum