All Questions
7 questions
0
votes
0
answers
43
views
Route on Nuxt 2 fires 2 page views for every visit on nested route when using vue-gtag with Google Analytics 4
I am using Nuxt 2 with a custom router with the nuxtjs/router module
I am using vue-gtag library to get Google Analytics 4 running as per the issue mentioned here
This custom route fires 2 page ...
3
votes
1
answer
3k
views
What is the difference between @nuxtjs/google-gtag @nuxtjs/gtm @nuxtjs/google-analytics and vue-gtag, what to use for GA4?
Newbie to this whole analytics thing and am finding this very confusing
I wanted to use Google Analytics 4 in my nuxt ssr webapp and am feeling overwhelmed with the number of options
Quick issue on ...
3
votes
2
answers
5k
views
How to get Google Analytics GA4 to recognise my nuxt website with vue-gtag?
I have a Nuxt.js web client which I'd like to track with Google Analytics.
I'm using the vue-gtag like so:
/plugins/vue-gtag.js
import Vue from 'vue'
import VueGtag from 'vue-gtag'
export default ({ ...
5
votes
1
answer
6k
views
Gtag in Nuxt.js
I'm really facing trouble configuring gtag in my nuxt js app.
I follow this guide:
https://www.carlcassar.com/articles/add-google-analytics-to-a-nuxt-js-app/
This is my plugin :
import Vue from '...
4
votes
3
answers
7k
views
How to access plugin from nuxt.js store?
I have this gtag (analytics plugin) that I can access on my components but never on my store.
I would appreciate any opinions. Thanks
plugins/vue-gtag.js
import Vue from "vue"
import VueGtag ...
5
votes
1
answer
9k
views
Nuxt: Inside a plugin, how to add dynamic script tag to head?
I'm trying to build a Google Analytics plugin to Nuxt that will fetch tracking IDs from the CMS. I am really close I think.
I have a plugin file loading on client side only. The plugin is loaded from ...
9
votes
1
answer
10k
views
How to use gtag.js with nuxt.js?
I'm trying to use the gtag.js library with nuxt.js. To do this, I installed the plugin https://github.com/nuxt-community/google-gtag, but it does not work for me
//nuxt.config
if(APP_ENV.gtag !==...