souramoo / commentoplusplus

Commento with out of the box patches and updates to add useful features and fixes. Also with one-click deploy to Heroku so you can get up and running fast.
MIT License
391 stars 63 forks source link

Analytics pageview count never increments even as comment count increases #20

Closed badcatrobot closed 3 years ago

badcatrobot commented 3 years ago

The pageview counter shows no activity, even when there are user comments (correctly) incrementing. Tried with different sources but no change.

souramoo commented 3 years ago

Ah yes, I disabled this logging because every single page hit would add another entry to the table and it would fill up the small free heroku database quite quickly, I will add a checkbox to enable/disable pageview logging

souramoo commented 3 years ago

Okay, I've added an environment variable in the latest commit (071b967) to allow this to be turned on! You just need to set e.g.

$ export COMMENTO_ENABLE_LOGGING=true

before commento starts to enable logging.

Would recommend using a separate fully-featured analytics package for better analysis/insights/data management but you can use the one built in to commento now too :)