Published: December 7, 2019

Notion does not have in built analytics on how and when your pages are viewed. However, we have a solution: you can use an image URL to track pageview events via Google Analytics.

https://raw.githubusercontent.com/mskims/notion-ga/master/preview.gif

How to do this

  1. Build URL with parameters according to the Parameter reference guide

    Untitled

  2. Add embed image to notion pages you want to track. (with the URL you built at the previous step)

e.g.

<https://notion-ga.ohwhos.now.sh/collect?tid=[GOOGLE_ANLAYTICS_UA]&host=hostnotion.co&page=/thispage>

https://notion-ga.ohwhos.now.sh/collect?tid=UA-97180334-1&host=mskim.me&page=/careers/product-designer

Thanks to Minseok Kim for the idea and implementation for how to do this.

mskims/notion-ga