Having a persisting traffic source[ Edited ]
June - last edited June
For the initial interactions on the site, we track the referral urls or UTM params if provided (this tracking is done on the client side). However, as a part of the flow, we ask users to verify email address and once they come back to our site, the source is the email vendor now.
I have tried to get the original source using document.referrer on the browser initially, send it as a part of href query string in the verification email and once user comes back, use the original source to update the GA source. However, I cannot seem to find a way to update the source in GA.
Is there a way to update the GA source/medium/etc on my end ?
If not, what would be the best solution to achieve this? We currently use the automated UTM params as recommended
Having a persisting traffic source
Well this is a complicated topic and I'm afraid I don't know enough about your process to recommend a complete, best practice solution.
That said, the complicated and probably best way would be to harvest the client id and pass through to the mail vendor and back, perhaps even with cross domain tracking depending on what the user does there.
The easy, cut to the chase way, (but perhaps not enough) is to just add the mail vendor to the referral exclusion list. This will, in effect, change the mail vendor referrals to direct and direct does not change the original source of traffic.
Just go to Admin>>Property>> Tracking Info>> Referral Exclusion List