| | |||||
| ||||||||
| Website Development Development concepts, scripts, sponsors and affiliate programs. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Dec 2004
Posts: 118
![]() | put Google Analytics in headers/footers? Anyone know if you're supposed to put the Google Analytics code in headers/footers that are IFrames? If you look at my front-page here, all of the links are in inline-frames (which themselves are their own HTML pages), and I'm not sure if they need their own Analytics code or not.
__________________ My site: Alphaila.com
Last edited by Dario D.; 06-19-2009 at 02:04 PM.
|
| | |
| | #4 (permalink) |
| New Member Join Date: May 2009 Location: http://Carde.net
Posts: 5
![]() | definitely put it in the footer - that is a best practice
__________________ Rise above the herd of mediocre domainers â„¢ -$$$- www.BeyondDomaining.com -$$$- Step by Step Illustrated Domain Development Guidebook |
| | |
| | THREAD STARTER #5 (permalink) |
| NamePros Member Join Date: Dec 2004
Posts: 118
![]() | Okay, thanks. But also, are you sure that'll properly report page hits? Is there a chance that putting the code in the footer will result in GA reporting a million footer visits, and nothing else?
__________________ My site: Alphaila.com |
| | |
| | THREAD STARTER #6 (permalink) |
| NamePros Member Join Date: Dec 2004
Posts: 118
![]() | Update: Okay, sure enough, GA now shows that people are visiting the footer IFrame like crazy (linkbar.html), but not any of the relevant site pages. ![]() Anyone know if there's a way to force the pageviews to reflect the master page, not the IFrame?
__________________ My site: Alphaila.com |
| | |
| | #7 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | did u try putting the code just in the footer of the original page (where u have the iframe code)? google has always been one smart cookie when it comes to anything, and id be VERY surprised if they didnt read/register content that was inside an iframe - try removing it from the actual iframe page and putting it only on the main page.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | THREAD STARTER #8 (permalink) |
| NamePros Member Join Date: Dec 2004
Posts: 118
![]() | Yeah. When the code is in [main-page-name].html, everything works fine. But when I only have it in [footer].html (loaded on "main page" as an IFrame) GA says that all pageviews are for [footer].html, and I no longer see what's happening on "main page".
__________________ My site: Alphaila.com
Last edited by Dario D.; 06-24-2009 at 07:31 PM.
|
| | |
| | #11 (permalink) |
| Senior Member Join Date: Jul 2005
Posts: 2,111
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Google Suggest you to put in footer. Agree with Halycon.Spinste's post, you need to load your content first before google script
__________________ (\__/) Free Daily Premium Mobile Apps (='.'=) Lyric Video | Retro Flip Clock (")_(") L-L-L with 19K visitor in Dec LeatherScarf.com on Sedo !!! Sony Xperia Nyphon.com |
| | |
| | #12 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | people who say that you should put your code in the footer are not understanding your problem. let me see if i have it right: you have a design (homepage, example, is index.html) that consists of multiple parts displayed using iframes (such as main.html, header.html, and footer.html). your question is whether you should put the google analytics code in index.html or footer.html, NOT if you should put it in "the footer of the website" the code should be included at the bottom (right before the </body>) of your index.html page. (this way, your <iframe> tags are found ABOVE your analytics code). the individual pages (main.html, header.html, footer.html, etc) should NOT need the analytics code ????: NamePros.com http://www.namepros.com/website-development/590897-put-google-analytics-in-headers-footers.html am i correct in interpreting your problem/question?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 200+ Premium Aged Domains Priced To Sell! hVillage(.)com vLoggers(.)net RunDMC(.)net | Sterling | Domains For Sale - Fixed Price | 15 | 09-17-2008 01:15 AM |
| Generic Financial/Business related - CertifiedBankCheck.com, HomesGuide.net and more! | thevirtual | Domains For Sale - Make Offer | 20 | 04-17-2008 03:15 PM |
| 50 dictionary .info domain names ,reagent.info bant.info fixers.info and more | yzq1979 | Domains For Sale - Make Offer | 1 | 08-25-2007 09:16 AM |
| On Auction At Sedo!! Closes Jan.3 | yoyosean | .MOBI Marketplace | 0 | 12-29-2006 08:43 AM |