-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 properties get set on later visits but likely shouldn't #7710
Comments
FYI @kpthatsme |
Yeah suspect easiest solution would be for posthog-js to always set utm tags to 'organic' if they don't exist (see https://github.com/PostHog/posthog-js/blob/ad9d5f197657498656c2dbb5ae4495b3eb0a9d26/src/utils.js#L637). Would increase data a bit though. Worth rolling out behind a posthog-js setting and testing on our own website |
@tiina303 we can close this one right? |
Nope unfortunately not. I believe we now always send |
hey @tiina303 Is PostHog/posthog-js#496 suppose to help? |
@dan-dr could you use the in-app support ticketing - that way I could get all the context needed to better understand your issue. |
A current workaround is to set the UTM properties to It could look something like this:
|
Tell me, has a solution been found to this problem? When will it be fixed? |
please see the previous comment #7710 (comment) |
fixed in: PostHog/posthog.com#7692 |
I don't think we can close this issue - we haven't fixed it in the product, only applied the workaround to ourselves. |
will you fix this issue in posthog-js in late future @charlescook-ph @tiina303 |
Would also be interested to hear if it's being fixed! @MarconLP @charlescook-ph |
It's currently not fixed, but you can apply this simple workaround to solve the issue right now. |
Description
utm properties are often used to determine how a user discovered the app in the first place, e.g. I want to know if the user came organically or through some ad etc. Currently if the user initially discovered the app organically we don't set utm parameters, but then later when they return through an ad/referrer link etc we will, that makes us potentially attribute the ad success more than we should.
Expected behavior
The person properties can be used to determine how they discovered the app in the first place (If user discovered the app organically utm parameters aren't later set to future visit referrals).
Alternative
For every user check the first event explicitly to know where they came form.
Additional context
I suspect that if we set browser etc other initial params we should set the utm ones to be
None
if they weren't sent and then we'd know the user discovered us organically and thee utm params won't be overridden.Relevant code:
posthog/plugin-server/src/utils/db/utils.ts
Line 206 in 35142f6
See user feedback here: https://posthog.slack.com/archives/C01F31E9PRD/p1639476221083500?thread_ts=1638549825.061900&cid=C01F31E9PRD
The text was updated successfully, but these errors were encountered: