Analytics
1.7K members online now
1.7K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

How to assign one referral to direct?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, I would like to make a filter who assign all session referrals *.domain.com to a direct navigatation.

 

Example: "mobile.domain.com / referral"

should be: "(direct) / (none)"

 

How I can do it?

1 Expert replyverified_user

How to assign one referral to direct?

Rising Star
# 2
Rising Star

Matteo,

 

Just go to Admin>>Property>> Tracking Info >> Referral Exclusions and add it there.  Anything you place on this list gets marked as direct.

 

https://support.google.com/analytics/answer/2795830?hl=en

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How to assign one referral to direct?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Theo, probably you didn't understood or I didn't well explained the meaning.

 

If you add one referral to the excluded referrals, it mean who those users if they come back as direct, since the last referral didn't changed, you will see those users again under the referral who you excluded. Excluded referrals dons't affect users who had a past session with those referrals.

Marked as Best Answer.
Solution
Accepted by topic author Matteo F
July

Re: How to assign one referral to direct?

Rising Star
# 4
Rising Star

Hi Matteo,

 

That is true; users with the referral already set as the source would in fact still show as from that source, while new users would be direct; however, this would dissipate over time.  If that is a deal breaker for you, you'll need to try to do some advanced filter gymnastics change the source AND medium (yuck).

 

You could also modify your channel groupings to so that the referrer is counted as direct in the channel settings. 

 

 ss channel definition.png

 

 Hope that helps...

 

Theo

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How to assign one referral to direct?

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hello Theo,

yes, I guess filter can help me, but unfortunatly I'm not skilled...

 

I tryed to understand regular expressions but isn't easy https://support.google.com/analytics/answer/1034324?hl=en&utm_id=ad&visit_id=1-636359861591395555-36...

 

How I can match for instance *.paypal.com where * should be anything?

So, 

How to assign one referral to direct?

Rising Star
# 6
Rising Star

Hi Matteo,

 

If this is for Paypal then definitely set paypal.com as a referral exclusion.   That said, if you want to match anything before paypal you can do it as written ^.*.paypal.com or just use paypal.com  or paypal\.com  and it will match anything before it (or after).

 

You can play with regex patterns here:

 

http://www.regexpal.com/

 

-Theo

 

 

 

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How to assign one referral to direct?

Rising Star
# 7
Rising Star

P.S.  Filters are destructive so ALWAYS test your filters in a testing view before applying them to your analysis views!

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How to assign one referral to direct?

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hello Theo, thank you so much for everything.

This is what I did:

 

First of all to avoid to dirty my analytics data, I create a new view with the name PAYPAL TESTING.

 

Second I added a filter on ONLY LIVE view to filter the tests I did. for this I added to the url the tag utm_campaign=_test_paypal and I filtered it on the view ONLY LIVE http://snpy.in/cNusW2

 

At this point I added also two more tags, to simulate source paypal.com and medium referral. I used Campaign Link Builder (https://ga-dev-tools.appspot.com/campaign-url-builder/)

 

This is the link I generated is: www.mydomain.com?utm_source=paypal.com&utm_medium=direct&utm_campaign=_test_paypal

 

At this point, I added some filter tests to convert “mobile.paypal.com / referral” to “source / medium”. I used those two filters: this http://snpy.in/xwV7ip and this http://snpy.in/VAinPv

 

At this point you can go with two or more broswer on:

 

www.mydomain.com

and

www.mydomain.com?utm_source=paypal.com&utm_medium=direct&utm_campaign=_test_paypal

 

You will see all the sessions under the same category on Real time / Traffic sources http://snpy.in/2i7W57

How to assign one referral to direct?

Rising Star
# 9
Rising Star

Hey Matteo,

 

Sounds good.  Your filter order, of course, is important.  Change the medium first and then the source as filters cascade.  (I'm sure you figured that out, but added it here for others.)

 

Either way, best practice would be to use the referral exclusion list first.  I would have to be convinced that the filters would be necessary (I'm not saying they are not in your case) as you can account for the paypal traffic in Multi-channel or through segmentation and it would dissipate over time as cookies are cleared or users come back through other touch points.   That said, your filters should achieve what you want over time.

 

Cheers,

 

Theo

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn