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 for one book. It was pretty simple.

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

    in_header: files/html/in_header.html

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


Thanks. That looks pretty straightforward, but microanalytics does accept the url "" 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

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.