-
Notifications
You must be signed in to change notification settings - Fork 67
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
Remove query parameters #333
Comments
Closing because if I understood correctly from another issue I just need to add: |
Reopening, this because the
I think the issue might be I'm using V1 with vue2 |
@cosbgn did you ever find a solution? I'm using now V2 with Vue3 but still have this issue. Ended up disabling pageTracking and writing a custom implementation on afterEach: const pathStayedTheSame = (to: any, from: any) => {
if (from && Object.keys(to.query).length) {
if (to.fullPath.split('?')[0] == from.fullPath.split('?')[0]) return true;
}
return false;
};
///... Other code, then in router.afterEach
if (pathStayedTheSame(to, from)) {
return;
} Implemented thanks to the idea from vuejs/vue-router#2072 (comment) |
Most social networks and ad providers add query parameters to links, things like (
fclid, gclid, etc
).On analytics.js there was a way to ignore query parameters, this has been removed on GA4 and now needs to be done on site level (Something like:
document.location.hostname + document.location.pathname
).Is there a way to do this automatically when page tracking is on?
The text was updated successfully, but these errors were encountered: