How to know which TLD was loaded in browser[ Edited ]
April 2017 - last edited April 2017
I am using Google Analytics but I cannot find a way to know which domain was loaded by the visitor.
I have a hosting where I have my site, but that site is accesible from different TLD domains (.es, .ar, .pe, .com and .cl). Is it possible to know which TLD domain was loaded? At the moment, I can only see the path of content inside the site, but I have not found a way to see what TLD domain the visitor comes from.
Any help with be appreciated, thanks.
How to know which TLD was loaded in browser
Create a new View (following best practices, the original view should remain filter free) and apply the following filter, it will prepend the hostname to the Request URI in the reports, so as to seperate out which domain a pageview occurred on
- Filter Type: Custom filter > Advanced
- Field A: Hostname Extract A: (.*)
- Field B: Request URI Extract: (.*)
- Output To: Request URI Constructor: $A1$B1
Click Save to create the filter.
Bare in mind new Views do not populate with historic data, it will track data going forward from when its created
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here