Forum Moderators: DixonJones

Message Too Old, No Replies

Google Analytics and loading an IFRAME

Can loading an IFRAME influence statistics.

         

jetteroheller

9:55 pm on Nov 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Let's have

www.example.com/somepage.htm
On this page is Google Analytics with Tracking Code 1

There is a mouse over effect loading

widgets.example.com/news.htm

into an IFRAME. This file has no tracking code.

Can this influence the statistics of www.example.com?
Does the Analyticks javascript register loading an IFRAME from an other domaint?

tonynoriega

9:18 pm on Dec 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Per Google... they have all the answers:

Pages with frames - A web page containing frames will generate multiple pageviews: one for the framing page (containing either a FRAMESET or IFRAME tag within its HTML code), and one for each page shown in a frame. As a result, pageviews may be somewhat inflated. Even if a page on your site only appears as a frame for another page, we still recommend tagging it with the entire tracking code. If a visitor reaches the page through a search engine or a direct link from another site and the page doesn't contain the tracking code, the referral, keyword and/or campaign information from the source will be lost.

How do I interpret the reports for a website that has frames?

A web page containing frames will generate multiple pageviews: one for the framing page (containing either a frameset or iframe tag within its HTML code), and one for each page shown in a frame.

In your navigation reports, each of these pageviews will appear in a sequence:

Framing page > framed page 1 > frame page 2

As a result, your Visitors > Visitor Behavior > Depth of Visit report, as well as your pageview totals, may be somewhat inflated.

Even if a page on your site only appears as a frame for another page, we still recommend tagging it with the tracking code. If a visitor reaches the page through a search engine or a direct link from another site and the page doesn't contain the tracking code, the referral, keyword and/or campaign information from the source will be lost.

carguy84

5:07 am on Dec 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think what Tony wrote only applies to log process analytics. Javascript based analytics, like Google Analytics won't register that iframe as a pageview unless you put the tracking code on the framed in page.

We have it both ways, with the tracking code in the iframe and without it, and it only tracks the iframe with the code in it.

Chip-

tonynoriega

3:17 pm on Dec 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That information is from the Google Analytics information guide, so it does apply to the js based analytics that GA uses.