Problem/Motivation
When clicking a Google Ads link, the gclid (https://support.google.com/google-ads/answer/9744275?hl=de) is transfered into Posthog to let it know where the lead came from. Posthog stores it in the tracked user data.
If we have client-side events, we have that data available, but for the (generally more reliable) server-side events, in our case Drupal Commerce checkout complete conversions we don't have them, because the PHP session doesn't know about the client session?
I guess we'll end up finding a solution for this to make this work?
#3500561: Identify / Synchronize anonymous users client / server side
It seems without that data no conversions will ever be persisted. Posthog says:
Emtpy 'gclid'. Skipping ...
in the GA destination plugin testing area.
https://www.reddit.com/r/GoogleTagManager/comments/1e0wc1a/is_anyone_suc...
Comments
Comment #2
anybodyComment #3
grevil commentedComment #4
anybodyI'll check if this works now with recent fixes!
Comment #5
anybodyOk it seems the ID is only stored with person profiles enabled... I'll check this in detail soon.
Comment #6
anybody#3558453: Add a new setting to allow person profiles (even for logged out users) should maybe resolve this!
Comment #7
grevil commentedYes this is fixed through #3558453: Add a new setting to allow person profiles (even for logged out users) and also has posthog cookies support:
But on consent denied, we unfortunately can not track the gclid, since posthog doesn't allow identifying users which have consent denied.