This is a short post on how you can see the full referring url in one report in Google Analytics (GA).
The problem:
Just a quick background for people who haven’t run into this issue yet.
If you want to segment by source in GA; the referring url is cut at the domain. Which means if you got a referral from http://news.ycombinator.com/a-great-post/ you would see it in the source as http://news.ycombinator.com/. And if you have multiple urls from the same domain we cannot see which page it come from because it will be truncated at the domain.
The solution:
The solution here is to create a filter which will put all the complete referring urls in a user defined report. Just follow these steps:
1. Go to your filter settings and create a new filter
2. Select Filter type ‘Custom Filter’ and then ‘Advanced’
3. In field A- Extract A select ‘Referral’ and in the text box type ‘(.*)’. This essentially selects the entire referring url.
4. Leave field B-Extract B as it is
5. In Output to – Constructor select ‘User Defined’ and in the text box type in $A1. This will take the complete referral of field A (denoted by $A1) and put it in a user defined report.
6. Leave the rest of the settings as they are. Which means Field A required should be selected as ‘Yes’, Field B required as ‘No’, Override output field as ‘No’ and Case Sensitive as ‘No’.
After you are done it should look something like this:
Where do you see the results:
Under Visitors goto User defined and voila! You can now see a report with the referring urls




