Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm hosting a URL with NameCheap, and it is a URL frame for a blogspot.com account. I'm using Google Analytics to track the blogspot.com account, but I'd like to be able to track the NameCheap frame URL as well. How do I do this?

share|improve this question
    
Do you want to use the same analytics profile, or a different one? –  paulmorriss Sep 23 '11 at 11:24
    
I'm stuck on the same problem. I haven't found a way to convince NameCheap to let me include Google Analytics (or other scripts) in the iframe wrapper page. Let's say my_namecheap_url.com is an iframe wrapper around my_blogspot_url.com. I have a Google Analytics tracker on my_blogspot_url.com, but Google Analytics believes that ALL referrals to my_blogspot_url.com come from my_namecheap_url.com. Ugh. –  solvingPuzzles Feb 2 '13 at 7:21
add comment

1 Answer 1

If you want to track to two Google Analytics accounts it is possible:

var _gaq = _gaq || [];
_gaq.push(
    ['_setAccount', 'UA-AAAAAAAA-0'],
    ['_trackPageview'],
    ['b._setAccount', 'UA-BBBBBBBB-0'],
    ['b._trackPageview']);
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.