Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking full path or query strings not working #532

Open
notflip opened this issue Mar 3, 2023 · 0 comments
Open

Tracking full path or query strings not working #532

notflip opened this issue Mar 3, 2023 · 0 comments

Comments

@notflip
Copy link

notflip commented Mar 3, 2023

Please fill in at least the mandatory (*) questions below, or I will immediately close this issue without reading. Thanks

Environment *

Run this command in the project folder and fill in their results:

npm ls vue-gtag: vue-gtag@2.0.1

├─┬ nuxt@3.1.0
│ ├─┬ @nuxt/vite-builder@3.1.0
│ │ ├─┬ @vitejs/plugin-vue-jsx@3.0.0
│ │ │ └── vue@3.2.47 deduped
│ │ ├─┬ @vitejs/plugin-vue@4.0.0
│ │ │ └── vue@3.2.47 deduped
│ │ └── vue@3.2.47 deduped
│ ├─┬ @vueuse/head@1.1.9
│ │ ├─┬ @unhead/vue@1.1.15
│ │ │ └── vue@3.2.47 deduped
│ │ └── vue@3.2.47 deduped
│ ├─┬ vue-router@4.1.6
│ │ └── vue@3.2.47 deduped
│ └─┬ vue@3.2.47
│   └─┬ @vue/server-renderer@3.2.47
│     └── vue@3.2.47 deduped
└─┬ vue-gtag@2.0.1
  └── vue@3.2.47 deduped

Then, specify:

  1. Operating system: Mac
  2. Browser and version: Brave Browser

Description *

I can't seem to track the fullPath or the full url with the query string included.

I'm using the following config in Nuxt 3

import VueGtag from 'vue-gtag'

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.use(VueGtag, {
        pageTrackerPrependBase: true,
        pageTrackerScreenviewEnabled: true,
        pageTrackerTemplate(to) {
            return {
                page_title: to.name,
                page_path: to.fullPath,
            }
        },
        config: {
            id: 'G-XXXXXXX',
        },
    }, nuxtApp.$router)
})

Expected behavior

Seeing things like

Actual behavior

There's not a single screen where I can find the full path

Screenshot 2023-03-03 at 09 57 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy