views:

485

answers:

2

We've got a site that shows some content in iframes loaded from another domains. What I'd like to do is setup some Goals to track if this stuff is clicked, is this possible to track these clicks?

I know that this content us outside our domain but is it still in the dom?

+1  A: 

It is possible. Since Goal Tracking is Profile based, the key is to have a tracking of all domains into one Profile. See the How do I install the tracking code if my site spans multiple domains? entry in the Google Analytics Help for further instructions. After that your iframe contents will appear as usual PageViews in the reports. (For instance, if you used <iframe src="http://otherdomain.com/stuff"&gt;&lt;/iframe&gt;, you will find PageViews for ’/stuff’.)

Otherwise, I don't really know what you mean under ’stuff is clicked’. If it's an object in the iframe you want to track, you may generate a virtual PageView when visitor clicks on it:

pageTracker._trackPageview("/Stuff_clicked");
Török Gábor
A: 

Hey Tom,

If you are not able to install GATC (Google Analytics Tracking Code) on so called another domains which you are loading inside your iFrame, unfortunately, you won't be able to track any clicks or virtual page-views for those domains. Any clicks or event occurring on any domain can be tracked back to your account as far as your GATC which includes your Google Analytics ProfileID e.g. UA-XXXX-X is installed on that page.