BKWLD / cloak

Opinionated Nuxt + Craft boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add automatic GTM pageview event firing

weotch opened this issue · comments

Maybe this is done through a page mixin that is included in the package

Not needed now that I can trust GTM package for this

# This wasn't always the case, but these events appeat to fire after
# the page title is updated. And, when testing this, I found that the
# mounted() hook on page components was actually firing too early. In
# other words, with mounted, I was seeing the previous page's title when
# looking at GA realtime analytics.
pageTracking: true
pageViewEventName: 'Page View'