Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Support Google Analytics snippet #3

Open
lens0021 opened this issue Jun 29, 2021 · 0 comments
Open

Support Google Analytics snippet #3

lens0021 opened this issue Jun 29, 2021 · 0 comments
Milestone

Comments

@lens0021
Copy link
Member

Currently, only gtag.js is supported.

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

-- https://developers.google.com/analytics/devguides/collection/analyticsjs

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

  gtag('config', 'GA_MEASUREMENT_ID');
</script>

--https://developers.google.com/analytics/devguides/collection/gtagjs

@lens0021 lens0021 added this to the v1.0 milestone Jun 29, 2021
@lens0021 lens0021 moved this to To do in femiwiki.com Jan 14, 2023
@lens0021 lens0021 removed this from femiwiki.com Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant