Counting pageviews or video views

I have a static site built with Hugo online.

It is at the moment served by Apache.

I would like to add pageviews and video views on some pages.

I’m hesitating between:

  • Adding a Go script
  • Adding a PHP script
  • Using Google Analytics

Has anyone done something similar or do anyone have suggestions on how to add this feature?

Data wouldn’t have to be updated real-time. An update once a day would do.

1 Like

@magikstm Use Google analytics. Adding it to Hugo is about as easy as it gets since it’s a built-in shortcode.

GA is also the industry standard. Don’t waste your time building out an NIH solution: