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:
- remove the analytics tracking on the signup form (i.e. the page that causes the new session to start)
- add facebook.com to the referral exclusion list
Unfortuantely both have disadvantages, so I'm wondering if there is any best practice or better solution.
More details follow.
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.
- When a user clicks, she opens theneeds.com with source, medium and campaign properly set.
- The user now clicks on Join and select Facebook [1], she's redirected to facebook.com for authorization.
- After successful authorization [2], she's redirected back to theneeds.com, with referral facebook.com (or m.facebook.com, on a mobile device).
- This triggers a new session in Universal Analytics, loosing information about the campaign.
- The user is now on the signup form and, after submission, is redirected to the page that marks the analytics goal.
- Unfortunately, the goal is registered as facebook.com/referral, and not as facebook/social/_mycampaign.
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.
- Remove the analytics tracking on the signup form - whose disadvantage is that I'm loosing page tracking
- Add facebook.com to the referral exclusion list - that result in loosing the actual referral traffic from Facebook (e.g. as a result of user shares).
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!