-
Notifications
You must be signed in to change notification settings - Fork 73
UTM Tracking #517
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
UTM Tracking #517
Conversation
e05cc47 to
a7fffab
Compare
|
Only thing missing here is test cases. If you like the premise, I can write test cases in. |
a7fffab to
e4f259a
Compare
e4f259a to
b1088dd
Compare
|
Wrote test cases. Not sure why that one is failing, it passes locally. |
|
this feature will be handled with PR #618 |
|
🎉 This PR is included in version 3.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
Caution Review failedThe pull request is closed. WalkthroughThe changes introduce support for UTM (Urchin Tracking Module) parameter tracking in the pageview event flow. The main API function for pageview events is updated to accept a second argument for UTM data, and this data is set as a "campaign" parameter before dispatching the pageview event. In the tracking logic, UTM parameters are extracted from the route's query string, normalized by removing the "utm_" prefix, and stored in local storage for persistence. If no UTM parameters are present in the current query, previously stored UTM data is retrieved. The pageview API is then called with both the original template and the UTM data. Additionally, related tests are updated to reflect the new function signatures and expected argument patterns, including the presence of the UTM parameter in calls and the expanded set of keys on the global tracking object. No changes are made to the logic or control flow outside of these updates. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This is a simple utm tracking solution that requires no dependencies.