Analytics
2.4K members online now
2.4K 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 for a site that is being forwarded with masking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello all!

We have a website (fivelagunas.com) that is being forwarded with masking to a different website (fivelagunas.littledogagency.com). I am wondering which site I should place the analytics code on.

 

Can you help me out?

Let me know!

 

Thanks so much!

1 Expert replyverified_user

Re: Google analytics for a site that is being forwarded with masking

Top Contributor
# 2
Top Contributor

Hi Lauren :-)

A site using frames should include the tracking code in the <head> section of the frameset (parent) page, as well as directly before the </head> tag of each child frame that you want to track. If you place your tracking code within a<noframe> tag thinking that this is equivalent to the body, the code will not run and no data will be recorded.

 

For more information about framed site please see this page in the help docs

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

 

Thanks
Bronwyn

 

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