Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Google Tracking 
 
I am trying to add my website to Google Tracking for their bots come visiting.  They have provided me with a script and suggest that I copy the following code block into every webpage I want to track immediately before the </body> tag.

Code: [Download] [Hide] [Select]
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1235305-4");
pageTracker._trackPageview();
</script>


So, where do I do this at? I put it at the bottom of the index.php but it is not being seen.  Is there another way that I just haven't found yet?

Dave
 



 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Google Tracking 
 
try to add it to overall_header.tpl.
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
overall_footer would be better... find the </body>tag near the bootom of the file and just at it before...

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
Just to be sure that I add the script to the correct file.  

overall_footer.tpl (?)
 



 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
if you are using mg_theme then overall_footer.tpl would be the better file to add it too... as it ask you to add it above the </body> tag..

if you are using another theme then the overall_footer.tpl of that theme

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
Yes I am using mg_themes.  

Thank you, I will add the script to overall_footer.tpl

Also, is the a google compatible sitemap?  If not, how do I create one?
 



 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
I am not sure about this but I expect you will need to start a new topic so others can see it easily... remember to state clearly your problem in the description of the topic..

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
ok thanks
 



 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
mmm put it in the headers/footers of the ACP
 



 
pelaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
pela wrote: [View Post]
mmm put it in the headers/footers of the ACP


i agree with pela , there u can chose where to show it (header , footer ...in every post ...) and its easy  
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
Limun wrote: [View Post]
pela wrote: [View Post]
mmm put it in the headers/footers of the ACP


i agree with pela , there u can chose where to show it (header , footer ...in every post ...) and its easy  


that is the place where I put my code    
 



 
pelaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
I assume that you are talking about placing the code in  templates  / mg_themes / overall_header.tpl and templates  / mg_themes / overall_footer.tpl through the ACP?
 




____________
Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
christmanrd wrote: [View Post]
I assume that you are talking about placing the code in  templates  / mg_themes / overall_header.tpl and templates  / mg_themes / overall_footer.tpl through the ACP?



i don't know if the ACP change the files .tpl but what i am trying to say is that you can add the code by the configuration from the ACP. Check the lapel "configuration" that said "headers and footers"
 



 
pelaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Tracking 
 
Pela:

Thank you for further explaining that to me.  I understand it now.    

Dave
 




____________
Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events