Welcome to the largest and most talked about domain name forum in the World!

We are NamePros, the award-winning free community for domain name owners, buyers and website developers. Once registered, you can:
  • Post your domains for sale or for free appraisals.
  • Private message and conduct business with other domain owners.
  • View member-only forums such as 'Legal Issues' and 'Expired Domains' (NOT visible to search engines)
  • Free access our archives of posts
Join now for free


Go Back   NamePros.com > Discussion > Web Design & Development > Website Development
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  

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



Reply
 
LinkBack Thread Tools
Old 06-18-2009, 07:26 PM   #1 (permalink)
NamePros Member
 
Join Date: Dec 2004
Posts: 106
147.00 NP$ (Donate)

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: Deefrag.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)
NamePros Regular
 
Join Date: Nov 2005
Location: Manchester
Posts: 950
353.05 NP$ (Donate)

-MGS- is a jewel in the rough-MGS- is a jewel in the rough-MGS- is a jewel in the rough
Send a message via MSN to -MGS-



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)
NamePros Regular
 
Halycon.Prime's Avatar
 
Join Date: Dec 2008
Location: The good ole US of A!
Posts: 239
0.40 NP$ (Donate)

Halycon.Prime has a spectacular aura aboutHalycon.Prime has a spectacular aura about



By putting in the footers, you ensure:

1. Your page content loads first.

2. The stats are counted only after a full page load.
__________________
---------------------------------------------------------------------------------------
Elite PHP Freelancers - You don't pay until we're done and we're not done until you are satisfied!
Halycon.Prime 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
0.00 NP$ (Donate)

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   #5 (permalink)
NamePros Member
 
Join Date: Dec 2004
Posts: 106
147.00 NP$ (Donate)

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: Deefrag.com
Dario D. is offline   Reply With Quote
Old 06-24-2009, 03:35 PM   #6 (permalink)
NamePros Member
 
Join Date: Dec 2004
Posts: 106
147.00 NP$ (Donate)

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: Deefrag.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,182
1,504.30 NP$ (Donate)

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 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   #8 (permalink)
NamePros Member
 
Join Date: Dec 2004
Posts: 106
147.00 NP$ (Donate)

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: Deefrag.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,177
14.49 NP$ (Donate)

happyhappy is a name known to allhappyhappy is a name known to allhappyhappy is a name known to allhappyhappy is a name known to allhappyhappy is a name known to allhappyhappy is a name known to all



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
0.00 NP$ (Donate)

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: 1,717
2,869.66 NP$ (Donate)

lighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud oflighting_blue has much to be proud of

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
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,182
1,504.30 NP$ (Donate)

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 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


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


All times are GMT -7. The time now is 12:29 PM.

Contact Us - NamePros.com - Privacy Statement - Top
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2