1.3.0
changelog:
v.1.3.0
- startDate & endDate should be specified on gatsby-config since Google changed its API validation often about range of valid startDate & endDate. Last time I check its minimum startDate was
2015-01-01
. Also consider to use dynamic date range like365daysAgo
.
v1.2.0
- change default startDate to
2005-01-01
(previously1970-01-01
) since Google changed its API validation.
v1.1.0
- support more metric counter. Previously it's only support
screenPageViews
to count any view on pagePath including revisit from a user. If you don't specify it, it's still usescreenPageViews
as default view. Now you can specify specific metric liketotalUsers
to count distinct users, revisit from a user would not count. OrscrolledUsers
to count distinct users who scrolled 90% of the page, so user who just visit without scrolling to the end of your page would not count. For more metric you can visit "https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics".
v1.0.0
- first release to count
screenPageViews
metric per pagePath for Google Analytics 4.