paste the url into your Notion page's /embed block.
https://notion-ga.astrocket.vercel.app/collect?tid=YOUR_TRACKING_ID&host=YOUR_NOTION_DOMAIN&page=YOUR_NOTION_PAGEExample)
YOUR_TRACKING_ID=UA-171288301-1 YOUR_NOTION_DOMAIN=notion.so YOUR_NOTION_PAGE=/whatever-i-want-to-label-my-page https://notion-ga.astrocket.vercel.app/collect?tid=UA-171288301-1&host=notion.so&page=/whatever-i-want-to-label-my-page- if you have your own domain. use your domain for YOUR_NOTION_DOMAIN. (it has to be identical with Google Analytics domain. - YOUR_NOTION_PAGE can be anything. It will be referred to a page in the Google Analytics dashboard. 5. Paste the Embedding URL from Step 5. into your Notion page's Embed block.
18 minutes ago
Stanislas BASQUIN
Really Hard to implement, I haven't figured out how to make it work, on both GA4 and UA. The views are working though inside Apption but G-Analytics doesn't count them
David Hahn
I don't think it's working... :-(
Arufon
Guys make sure you use the Universal Analytics in the hidden option when creating google analytics. (https://support.google.com/analytics/answer/10269537)
mbash
UPDATED :: I have just made a quick solution to allows for GA-4 to for this Apption: use this link, like so -> https://svelte-notion-ga-v5.migbash.vercel.app/?gaV4_id="" inside the /embed. Although
Fateen Tahseen Alam
It doesn't seem to work
Elena
Hey Sylvain! Thanks so much for developing this tool. However, it doesn't seem to work with my Notion. I've been trying all day and the views keep staying on 0. Any chance you could help? Thanks
Amanda
Does this work with the new Google Analytics 4 properties?