AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.8K members online now
3.8K 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

Multiple Domains and Multiple Accounts

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi, I have a question about multiple domains.

I work for a company who offers its services to different clients, each client chooses if they want to have its own domain or use the company website.

We offer the possibility to the clients of adding their own analytics code, for that reason we couldn't have our own tracking code.

 

Is it possible to do that?

For example, if the url of the company is company.com, the client choose between having his site in

www.company.com/clientSite or www.clientSite.com in both cases I would like to insert the UA of the company and the UA of the client. regardless if it is in our domain or his.

 

Thanks!

 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Laura S
September 2016

Multiple Domains and Multiple Accounts

Top Contributor
# 4
Top Contributor

Hi,

 

You can use the same UA ID on different domains and you can create a separate view under your property for each domain using include only hostname filters. You can read about the filters here:

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

 

It is also possible to set up a view and apply a filter that includes the domain name in the reports:

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

 

If you want to track users moving between the two sites in a single session you need to implement cross domain tracking:

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

https://developers.google.com/analytics/devguides/collection/analyticsjs/linker

 

Let me know if you have more questions.

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Multiple Domains and Multiple Accounts

Top Contributor
# 2
Top Contributor

Hi,

 

You can send data to multiple properties from a single page, please check the document below about working with multiple trackers:

https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

 

Let me know if you have questions.

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Multiple Domains and Multiple Accounts

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks for the answer! and can I used the same UA in different domains? I mean use this

<script>
/*analytics.js function*/

ga('create', 'UA-XXXXXXXX-X', 'auto');
ga('send', 'pageview');

</script>

 

in both www.example1.com and www.example2.com or I need differents UA?

 

thank you again!

 

Marked as Best Answer.
Solution
Accepted by topic author Laura S
September 2016

Multiple Domains and Multiple Accounts

Top Contributor
# 4
Top Contributor

Hi,

 

You can use the same UA ID on different domains and you can create a separate view under your property for each domain using include only hostname filters. You can read about the filters here:

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

 

It is also possible to set up a view and apply a filter that includes the domain name in the reports:

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

 

If you want to track users moving between the two sites in a single session you need to implement cross domain tracking:

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

https://developers.google.com/analytics/devguides/collection/analyticsjs/linker

 

Let me know if you have more questions.

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital