Google Analytics

Google Analytics

51.2K
Implement Google Analytics into your notion page.
Try in your page ! (demo)

paste the url into your Notion page's /embed block.

1. Go to your Google Analytics dashboard and Click "Set up for free." 2. Create account -> select Web -> Fill property set up (use your URL from step 1) -> click create If you have your own domain for your page, use yours instead of 'notion.so' 3. After creating, you will face your 'Tracking ID' like below. 4. Build your Embedding URL using Tracking ID, domain, page info to below. Embedding URL template (don't paste this directly. make sure you put your OWN information)
https://notion-ga.astrocket.vercel.app/collect?tid=YOUR_TRACKING_ID&host=YOUR_NOTION_DOMAIN&page=YOUR_NOTION_PAGE
Example)
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. Hooray! 🎉🎉 Got your first GA stats.
39 comments

Marloes

Does this also work with a normal website? I want to show the Google Analytics Data in my Notion dashboard, but I can't seem to make it work. I have an UA-ID. The part "notion.so" is changed into "flowplanners.nl" (my website), but I'm not quite sure what to put here: "YOUR_NOTION_PAGE=/whatever-i-want-to-label-my-page". Right now I have &host=flowplanners.nl&page=Google-Analytics-a191163855w264255792p238510409, but don't know whether or not it's correct.

over 3 years ago

Arufon

Guys make sure you use the Universal Analytics in the hidden option when creating google analytics. (https://support.google.com/analytics/answer/10269537)

over 3 years ago

ada

doesnt work

over 3 years ago

Suraj

Also doesn't work for me

over 3 years ago

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 I have noticed that it only seems to work only with Safari...

over 3 years ago

Jane

Doesn't work for me

over 3 years ago

Tae

GA4도 지원되는가요?

almost 4 years ago

looking for something else?

🖼 Widgets Made
464,580
🔥 Widgets Views Count
67,992,999

11 minutes ago

Apption for Notion - Find & learn Notion friendly embeddable mini apps | Product Hunt Embed