4.4K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
Guide Me

How to know which TLD was loaded in browser

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



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.



1 Expert replyverified_user

How to know which TLD was loaded in browser

Top Contributor
# 2
Top Contributor

Hi :-)

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

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here