Analytics
2.7K members online now
2.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Help with setting up analytics for one site with 2 urls

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Guys!

 

I have a website with specific urls for 2 languages. The urls differ, they are not example.com/en and example.com/fr. The first is exampleen.com, the second examplefr.com, but they're both for the same site. Basically, I have a 2 language site, the urls differ and the languages, but it's the same site. 

 

How can I set up analytics to track traffic for each url separately?

 

Thank you!

1 Expert replyverified_user

Re: Help with setting up analytics for one site with 2 urls

Top Contributor
# 2
Top Contributor
You can use a single tracking code (Google Analytics "web property"), and create 2 views, each with a filter where the Hostname is either 'exampleen.com' or 'examplefr.com'. Note: always keep an unfiltered view (that would be 3 in total) -- you can have 50.
Mike Sullivan, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Re: Help with setting up analytics for one site with 2 urls

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks a lot Mike!