nepalcodes / nepalingo

A website to learn the indigenous language of Nepal.
1 stars 1 forks source link

Setup Google Analytics #75

Closed binamkayastha closed 2 weeks ago

binamkayastha commented 2 weeks ago

Follow the guide here: https://github.com/nepalcodes/nepalingo/wiki/How-can-we-setup-Analytics%3F

Work with @binamkayastha and @christikaes to setup the analytics account

From google tag manager setup in NepalCodes for NepaLingo

Below is the Google tag for this account. Copy and paste it in the code of every page of your website, immediately after the element. Don’t add more than one Google tag to each page.

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

  gtag('config', 'G-HQ8SNYKC3D');
</script>

​ Use Google Tag Manager For additional features including multiple tag management and enterprise workflows, install and manage with Google Tag Manager. Learn more about Google Tag Manager