satorumurmur / bibi

Bibi | EPUB Reader on your website.
https://bibi.epub.link
MIT License
843 stars 123 forks source link

Can't connect Google Analytics #83

Closed pizzakid25 closed 4 years ago

pizzakid25 commented 4 years ago

I can't figure out how to enable the Analytics extension. I tried to follow the instructions, but just can't figure out where to put the Tracking ID.

satorumurmur commented 4 years ago

Usage:

"extensions": [
    { "src": "../extensions/analytics.js", "tracking-id": "XXXXXXXXXX" }
""],

Sorry for the lack of the documentation.

The analytics.js extension is a kind of a sample. So if you want to track users reading-activities, you have to customize the extension.

If you simply want to use Google Analytics for access logs, you can just add the GA tag to bibi/index.html as same as a typical website, instead of using the extension.