I have a website (theneeds.com) that allows signup via Facebook. We're running several campaigns, e.g. on Facebook itself, and we'd like to properly track signups from the different campaigns.
The problem is with Universal Analytics: when a user signs up with Facebook, she triggers a new session thus loosing the campaign reference.
Two possible solutions are:
Unfortuantely both have disadvantages, so I'm wondering if there is any best practice or better solution.
From "Universal Analytics usage guidelines"
By default, all referrals trigger a new session in Universal Analytics https://support.google.com/analytics/answer/2795983
Here's an example of a campaign sent to Facebook:
http://www.theneeds.com/?utm_source=facebook&utm_medium=social&utm_campaign=_mycampaign
And here's what happens.
Notes:
[1] I've used Facebook as an example to simplify the discussion. Clearly the same happens with Twitter, Google, and any other oAuth provider.
[2] In order to test, one needs to make sure that the user has NOT already authorized the website on Facebook so that she actually sees pages on facebook.com (which is the usual case for new users) - if the user is already authorized, she's immediately redirected back to the website and there's no change in the referral, so the campaign is properly tracked.
I've tested the 2 solutions mentioned above.
Decorating links is also a non-viable solution as the user might have a look at the website before deciding to signup, so I should propagate decoration on all links.
A better solution would be to temporarily disable the referral on the signup form, but I'm unsure if this is possible in Universal Analytics.
Any suggestion? Thank you in advance!
I'm having the same issue. I'm still researching solutions, but one option I'm considering is this one: https://groups.google.com/forum/#!msg/google-analytics-analyticsjs/NtwQFQAZ2Oo/kh-T0c1eHCYJ Essentially, that author recommends that before you send the user to FB, you set a session variable to remind yourself "hey, next time you see this guy, be sure to overwrite his referrer". Then on every pageview, you check for that session variable. When set, you do:
ga('set', 'referrer', 'http://subdomain.site.com/facebooksigninreturn');
According to the author, that's supposed to prevent a new session from being created.