ADefWebserver / Blazor-Blogs

Simple blogging application written in Microsoft Server Side Blazor
MIT License
189 stars 45 forks source link

Allow Google Tracking ID to be set #44

Closed ADefWebserver closed 4 years ago

ADefWebserver commented 4 years ago

https://support.google.com/analytics/answer/1008080?hl=en

Find your Tracking ID and global site tag Sign in to your Analytics account. Click Admin. Select an account from the menu in the ACCOUNT column. Select a property from the menu in the PROPERTY column. Under PROPERTY, click Tracking Info > Tracking Code.

Your Tracking ID is displayed at the top of the page.

Your global site tag is displayed farther down the page in a text box under Website Tracking > Global Site Tag (gtag.js)

ADefWebserver commented 4 years ago

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

<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- End Google Analytics -->