# Feature request: Notebook stats/analytics

**URL:** <https://talk.observablehq.com/t/feature-request-notebook-stats-analytics/3343>\
**Category:** Feedback\
**Created:** [May 23, 2020, 10:54am UTC](https://talk.observablehq.com/t/feature-request-notebook-stats-analytics/3343 "2020-05-23T10:54:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a10k](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/a10k/32/2609_2.png) [@a10k](https://talk.observablehq.com/u/a10k)\
**Post date:** [May 23, 2020, 10:54am UTC](https://talk.observablehq.com/t/feature-request-notebook-stats-analytics/3343/1 "2020-05-23T10:54:31Z")

</div>

**Will it be possible to know how many people visited our notebooks and how much time is spent on them (aggregated/anonymous data)?**

Something like what Medium does for our publications, i.e. if we are writing a publication on observable instead of Medium, its helpful to know if people are actually reading it, and if so are they bouncing off midway etc., Is adding a custom analytics code in one of the cell a recommended approach?

The likes and forks are great way to understand community reaction, but, I personally use the ‘like’ button to bookmark notebooks of interest so I can revisit them easily, so if I just want to appreciate a notebook, like with the medium clap (something that non-members can use too) that would be awesome too! Or maybe I can add notebooks of other users to a private collection called bookmark.

Thank you!

---

<div class="post-metadata">

**Author:** ![radames](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/radames/32/1699_2.png) [@radames](https://talk.observablehq.com/u/radames)\
**Post date:** [May 25, 2020, 9:37pm UTC](https://talk.observablehq.com/t/feature-request-notebook-stats-analytics/3343/2 "2020-05-25T21:37:30Z")

</div>

While there isn’t an official analytics, here is a link for a past discussion on how to add google analytics, or you could include any analytics service on your notebooks.

> [@Embedding Google Analytics - good or evil - poll](https://talk.observablehq.com/t/embedding-google-analytics-good-or-evil-poll/1400):
>
> I was wondering what the admins and the community think about it when one would start adding google tracking code in their notebook like so: html`\<!-- Global site tag (gtag.js) - Google Analytics --\> \<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-XX"\>\</script\> \<script\> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXX-XX'); \</script\>` I’m not sure if that would even work cor…

> **[Hello, Google Analytics](https://observablehq.com/d/e334557daf9985b1)**
>
> analytics.js gtag.js
