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

Google analytics tracking

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi Team

 

Just want to check ...


We have documentation page starting with docs.ABC.com. Can we implement google analytics here.

We are using google analytics using GTM. Kindly assist

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author madhu v
February 2017

Google analytics tracking

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆

Thank Arnold

 

This helps

View solution in original post

Google analytics tracking

Top Contributor
# 2
Top Contributor

Hi,

 

You can add the same setup to the subdomain you have on the main site.

In your Universal Analytics tag set the following field:

cookieDomain : auto

 

You can set up separate views for the main domain and for the docs domain.

 

Hope this helps, 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

Google analytics tracking

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆

Hi 

Thanks for the response - we have implemented google analytics via GTM. So kindly assist if this can be possible via GTM

Google analytics tracking

Top Contributor
# 4
Top Contributor

Hi,

 

Yes, it is possible, as I mentioned above, you need to set cookieDomain to auto.

Please check in the article below how is it done:

https://www.simoahava.com/analytics/cross-domain-tracking-across-subdomains/

 

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
Marked as Best Answer.
Solution
Accepted by topic author madhu v
February 2017

Google analytics tracking

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆

Thank Arnold

 

This helps

Google analytics tracking

Follower ✭ ☆ ☆
# 6
Follower ✭ ☆ ☆

Hi 

This is working but I would like to add the same - for 6000 pages... so do we need to add the same for every page

Google analytics tracking

Top Contributor
# 7
Top Contributor

Hi,

 

You need to put the GTM container code to every page you want to track. If your pages share a common header file it can be done easily by adding the code to that file and it will be included in all pages.


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