Usage statistics on bookdown page

I'd like to get page views and other usage data for a book I've recently published on bookdown (An Introduction to Political and Social Data Analysis Using R). Any ideas?

I used microanalytics.io for one book. It was pretty simple.

First, I put this in the _output.yml in the bookdown::gitbook: section...

  includes:
    in_header: files/html/in_header.html

Then I put the one-line microanalytics.io script in that in_header.html file. That's all it took.

2 Likes

Thanks. That looks pretty straightforward, but microanalytics does accept the url "https://bookdown.org/tomholbrook12/bookdown-demo/" as a valid domain name.

Ah, too bad. I published mine on GitHub, where it had it's own subdomain. I wasn't aware of that limitation for microanalytics.io.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.