Why the duplicated referrals?
It's quite simple really, Analytics picks up on the location that a visitor was on immediately before they land on your site, and it uses the domain name of these sites as the source for referral traffic. The problem arises if you send your customers off to another source - perhaps to a payment gateway - and then return them after completing an action.
Why is this a problem?
The return visit is wrongly counted as a second visit, with the referrer being your payment gateway. Not only does this cause problems with inflated visit numbers, but also if you are using Ecommerce tracking, it can distort the source of your income, as a large bulk will be shown with your payment gateway as the referral source for the purchase.
Google Analytics automatically removes your own domain (the domain associated with your Analytics profile) as a referral source, so you don't need to worry about traffic within your site.
There's a super simple way to resolve this problem, which is recommended for any sites using Universal Analytics and off-site systems which end up referring the visitor back to your site. This includes sites in a cross-domain tracking or third party shopping cart/payment gateway setup.
How to exclude referral sources
The exclusion is done on a domain basis, so it's important to think carefully before you implement this, as you will be excluding ALL referring traffic from that domain as a referral source.
Only traffic from the domain entered in the referral exclusions list and any subdomains are excluded, traffic from domains which have substring matches are not excluded. For example, if you were to exclude mysite.com in the list of referral exclusions, mysite.com and anothersite.mysite.com would be excluded. Traffic from thisis-mysite.com would not be excluded.
- Log into your Analytics account
- Click on 'Admin' at the top of the page, once logged in and viewing the property you wish to edit
- In the column headed 'account', ensure that the account you wish to modify is selected
- In the column headed 'property', ensure that the correct property is selected
- Click on 'Tracking info' in the middle column
- Click on 'Referral Exclusion List'
- Click on 'Add Referral Exclusion' to add a domain
- Enter the domain name
- Click on 'Create' to save the referral exclusion
If you need to remove an existing referral exclusion, follow steps 1-6 above, and then click 'remove' in the row where the domain name is shown, then click 'delete domain' to save.
How does this affect my traffic?
When a visitor lands on your site, it triggers a new session automatically - but when you exclude a referral source in the manner stated above, any traffic landing on your site from the domains which you have excluded will no longer trigger a new session.
As an example:
- Visitor lands on sitea.com and is redirected to siteb.com to make payment, then returned to sitea.com - net result is two sessions, one from the first visit to sitea.com and one from the referral back from siteb.com.
- siteb.com is excluded using the method above - the same process as above, but only one session is recorded, because the return visit from siteb.com to sitea.com is excluded as a referring domain.