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

Allow tracking UTM parameters properly #445

Open
wants to merge 3 commits into
base: 1.0
Choose a base branch
from

Conversation

sneko
Copy link

@sneko sneko commented May 16, 2022

Hi,

There are multiple reasons the frontend can loose UTM parameters on a SPA frontend (redirection at init, user accepting tracking X minutes after...). So I decided to create a new library to gather those basic methods in response to #351 and #405 (comment) (and other issues for other frameworks/plugins).

Everything can be read at https://github.com/sneko/utm-synapse

This PR makes this repo now having a dependency (sorry)... but I felt it better to use a new package for this since it could be reused by others in their project (none-Vue but also none-gtag projects).

To use it the just enable the features inside the config:

    appName: 'hello',
    trackInitialUtmParams: true,
    hideInitialUtmParams: true,

Since PRs stack up (I can understand it's hard to maintain the library on your spare time) I copied all your deployment logic so my modified package is released and available through yarn add @sneko/[email protected](see https://github.com/sneko/vue-gtag/tree/v1.17.2)

Hope it can help!

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

Successfully merging this pull request may close these issues.

1 participant