Google Analytics

Google Analytics

48.8K
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

Fateen Tahseen Alam

It doesn't seem to work

over 3 years ago

Zoe

Does this process work with google analytics 4?

over 3 years ago

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

over 3 years ago

Amanda

Does this work with the new Google Analytics 4 properties?

over 3 years ago

Danny Smith

Hey! Is it possible to delete the embedded blocks from notion? (I can't seem to select them at all and therefore can't remove them)

almost 4 years ago

Rolo

same here, I called Google they said they can't help me.

almost 4 years ago

sohini

hey, i'm getting incorrect numbers on the user count (analytics shows user numbers higher than the number of people we have shared it with)

almost 4 years ago

looking for something else?

🖼 Widgets Made
454,372
🔥 Widgets Views Count
65,382,707

26 minutes ago

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