NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Website Development
Reload this Page put Google Analytics in headers/footers?

Website Development Development concepts, scripts, sponsors and affiliate programs.

Advanced Search


Reply
 
LinkBack Thread Tools
Old 06-18-2009, 07:26 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 118
Dario D. is an unknown quantity at this point
 



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.
Dario D. is offline   Reply With Quote
Old 06-19-2009, 01:44 PM   #2 (permalink)
Senior Member
Join Date: Nov 2005
Location: Manchester
Posts: 1,000
-MGS- is a jewel in the rough-MGS- is a jewel in the rough-MGS- is a jewel in the rough
 




I put it in the footer. Only place it once on your page, it will help.

Always the best place.
-MGS- is offline   Reply With Quote
Old 06-19-2009, 03:51 PM   #3 (permalink)
Account Closed
Join Date: Dec 2008
Location: Boston, Ma
Posts: 650
CrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to allCrackFeed.Com is a name known to all
 



Marrow Donor Program Animal Rescue Autism Autism
By putting in the footers, you ensure:

1. Your page content loads first.

2. The stats are counted only after a full page load.
CrackFeed.Com is offline   Reply With Quote
Old 06-20-2009, 07:25 AM   #4 (permalink)
New Member
 
BeyondDomaining.com's Avatar
Join Date: May 2009
Location: http://Carde.net
Posts: 5
BeyondDomaining.com is an unknown quantity at this point
 



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
BeyondDomaining.com is offline   Reply With Quote
Old 06-21-2009, 01:27 AM THREAD STARTER               #5 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 118
Dario D. is an unknown quantity at this point
 



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
Dario D. is offline   Reply With Quote
Old 06-24-2009, 03:35 PM THREAD STARTER               #6 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 118
Dario D. is an unknown quantity at this point
 



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
Dario D. is offline   Reply With Quote
Old 06-24-2009, 04:31 PM   #7 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



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.
nasaboy007 is offline   Reply With Quote
Old 06-24-2009, 06:26 PM THREAD STARTER               #8 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 118
Dario D. is an unknown quantity at this point
 



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.
Dario D. is offline   Reply With Quote
Old 06-24-2009, 07:47 PM   #9 (permalink)
Senior Member
Join Date: Apr 2004
Location: In a box
Posts: 1,205
happyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud ofhappyhappy has much to be proud of
 




I wouldn't put anything google related in an iframe
happyhappy is offline   Reply With Quote
Old 06-24-2009, 10:09 PM   #10 (permalink)
New Member
Join Date: Jun 2009
Posts: 3
sarmientorodel is an unknown quantity at this point
 



I also go for footer.

My idea is that my site will still run properly even without that being loaded first.
__________________
Zackmo Helpdesk, Joomla plugin
sarmientorodel is offline   Reply With Quote
Old 06-24-2009, 10:31 PM   #11 (permalink)
Senior Member
 
lighting_blue's Avatar
Join Date: Jul 2005
Posts: 2,111
lighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond reputelighting_blue has a reputation beyond repute
 

Winner
Winner 2009 Rock Paper Scissors Championship
Cancer Help The Homeless - Holiday 2009
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
lighting_blue is offline   Reply With Quote
Old 06-24-2009, 10:40 PM   #12 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



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?
nasaboy007 is offline   Reply With Quote
Reply


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

Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:31 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger