localgovdrupal / docs

Documentation for all projects around LocalGovDrupal.
https://trusting-noyce-aebebc.netlify.app/
GNU General Public License v2.0
6 stars 15 forks source link

Analytics on Docs pages #148

Closed MichaelDCR closed 1 year ago

MichaelDCR commented 1 year ago

Can we add Google Analytics to the docs?

I found supposed method for Vuepress: https://v2.vuepress.vuejs.org/reference/plugin/google-analytics.html https://github.com/vuejs/vuepress/issues/2713 That doesn't provide any cookie consent, but I think we can be relaxed around that frankly.

The GA4 measurement ID is: G-ETT82J89DV

stephen-cox commented 1 year ago

@MichaelDCR There's PR #155 adding gtag.js to the header along with the ID given above. The test URL for this is: https://deploy-preview-155--inspiring-euclid-d918c8.netlify.app/

Does this load GA correctly? If so the PR can be merged