Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Google Analytics

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » Miscellaneous » Random Stuff View previous topicPrinter friendly versionView next topic
Author Message
boyakaa

Beginner
Beginner


Joined: Sep 19, 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 3:03 pm    Post subject: Google Analytics Reply with quote

Google has free web tracking analysis software that can be used for commercial sites, the problem is that in order for you to be able to track each page you need to :

" paste the code segment after the <head>, <meta> tags and before the </head> tag on each page you are planning to track. "

my question is if PHPnuke has a meta.php page where do i add this page code for lets say, your acount page or, the forum page, or gallery page, Etc..

Thanks in advance
Boyakaa
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Google Analytics  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Wed Nov 16, 2005 3:15 pm    Post subject: Re: Google Analytics Reply with quote

I've got it on NukedGallery. I editted the header.php file as follows:
PHP: › <?php include("includes/my_header.php");
// Google Analytics code start
    
echo "<s c r i p t src=\"http://www.google-analytics.com/urchin.js\" type=\"text/jav ascr ipt\">\n"
        
."</s c r i p t>\n"
        
."<s c r i p t type=\"text/java s c r i p t\">\n"
        
."_uacct = \"UA-XXXXXXXX\";\n"
        
."urchinTracker();\n"
        
."</s c r i p t >\n";
// Google Analytics code end 
    
echo "\n\n\n</head>\n\n"?>


the extra spaces in the word "script" were needed to post the code.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
boyakaa

Beginner
Beginner


Joined: Sep 19, 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 4:27 pm    Post subject: Re: Google Analytics Reply with quote

Thank U. Really appreciate your help.
Back to top
Offline View user's profile Send private message
boyakaa

Beginner
Beginner


Joined: Sep 19, 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 5:06 pm    Post subject: Re: Google Analytics Reply with quote

Hello once again, sorry but can you be a little more specific. I tried your expample and it distoredted my page. I'm not getting the entire process. Although i understand what you mean.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Wed Nov 16, 2005 5:30 pm    Post subject: Re: Google Analytics Reply with quote

just copy and paste the code for your analytics account after the "include("includes/my_header.php");" line in your header.php file.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
boyakaa

Beginner
Beginner


Joined: Sep 19, 2005
Posts: 18

PostPosted: Wed Nov 16, 2005 9:06 pm    Post subject: Re: Google Analytics Reply with quote

Hi,

Just wanted to let you know that within my phpnuke i have a folder within the include dir thats custom _files. Within that dir i placed a custom_header.php file once i did that it shows up when looking at source view. However, i'm not sure if its tracking all the pages or is it just recording clicks at the or to the main page?

http://gotomemoriesondvd.com
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6274
Location: Washington Township, NJ, USA

PostPosted: Thu Nov 17, 2005 7:47 am    Post subject: Re: Google Analytics Reply with quote

if it's a custom_header file, it should be on all pages.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
boyakaa

Beginner
Beginner


Joined: Sep 19, 2005
Posts: 18

PostPosted: Thu Nov 17, 2005 1:40 pm    Post subject: Re: Google Analytics Reply with quote

Thanks again for your help!
Back to top
Offline View user's profile Send private message
Ishtar

Beginner
Beginner


Joined: Jun 24, 2005
Posts: 2

PostPosted: Tue Nov 28, 2006 1:32 pm    Post subject: Re: Google Analytics Reply with quote

i've added the code also in my_header.php but how does that file work?
will it be tracking all of my pages???????
my site contains more than 5000 pages (i searched my site on google with the site commando and thats how i knew Razz)

i just dont know where to insert the code so it can track all the pages
Back to top
Offline View user's profile Send private message
Ishtar

Beginner
Beginner


Joined: Jun 24, 2005
Posts: 2

PostPosted: Tue Nov 28, 2006 1:53 pm    Post subject: Re: Google Analytics Reply with quote

can i just the code in the footer of my website? will that make any difference?
Back to top
Offline View user's profile Send private message
StarScream159

Wizard
Wizard


Joined: Apr 08, 2006
Posts: 120

PostPosted: Tue Nov 28, 2006 5:14 pm    Post subject: Re: Google Analytics Reply with quote

If you edited the header.php file at the root of your nuke install (where the mainfile.php is) like Dari said then anything you add to it will appear on all the pages.
Back to top
Offline View user's profile Send private message
bestempire

Beginner
Beginner


Joined: Dec 12, 2006
Posts: 1

PostPosted: Sun Nov 11, 2007 12:06 am    Post subject: Re: Google Analytics Reply with quote

You can refer to method of adding tracking code in a separate PHP file here:
https://www.google.com/support/googlean ... _referral=
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » Miscellaneous » Random Stuff View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia