Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Google analytics..
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

akintosyali
Starting Member

23 Posts

Posted - 12 January 2009 :  13:52:06  Show Profile
I have not seen a sucessfull implementation of google analytics to snitz. Can anyone show me an example?<

SiSL
Average Member

Turkey
671 Posts

Posted - 12 January 2009 :  14:14:25  Show Profile  Visit SiSL's Homepage
www.chip.com.tr ;)

Just add your Google Analytics code to inc_footer.asp
<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 January 2009 :  14:18:03  Show Profile  Visit HuwR's Homepage
you have your google code in your header not your footer which is probably why it doesn't work<
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 12 January 2009 :  15:55:36  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
quote:
Originally posted by HuwR

you have your google code in your header not your footer which is probably why it doesn't work



That you need to explain me why it will not work Huw

The inc_header.asp is called as many times as the inc_footer.asp, I'm I right?<

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 12 January 2009 :  16:35:58  Show Profile
That is because the post said so:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60193&SearchTerms=google,analytics<
Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 12 January 2009 :  16:42:39  Show Profile
sisl,
your forum looks super nice! How did you do that??
Thanks,
Akin<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 12 January 2009 :  17:13:42  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I have mine in the header and it works. It takes a day or two to start showing data in your analytics account as far as I can remember.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 12 January 2009 :  17:17:07  Show Profile
I put the google code to the footer and still no change?<
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 12 January 2009 :  17:28:12  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
quote:
Originally posted by akintosyali

That is because the post said so:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60193&SearchTerms=google,analytics



Did you read that post, Huw message and mine?

seriously, I'm not getting what was your post for.<

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 13 January 2009 :  10:29:35  Show Profile
yes, I tried putting this code with my own google account id to the header and it did not work.

So I put the code on the footer and that didn't work either.

My site is:
http://www.ingilizce.com/forum/default.asp<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  10:32:09  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Can you post a link to a text version of your inc_header.asp ? i.e. inc_header.txt<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 13 January 2009 :  12:54:48  Show Profile

Edited by - Podge on 13 January 2009 13:57:57
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  14:08:16  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
The code in inc_header.asp looks ok to me.

Whats this code for in your inc_footer.asp ?

<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">
try {
var pageTracker = _gat._getTracker("UA-5279273-1");
pageTracker._trackPageview();
} catch(err) {}</script>


and


<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">
try {
var pageTracker = _gat._getTracker("UA-5279273-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 13 January 2009 14:08:47
Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 13 January 2009 :  16:45:14  Show Profile
I was testing to see if putting the actual google analytics code in footer would work or not :(<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 January 2009 :  17:01:17  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
You've included the new tracking code along with the legacy code. I'm pretty sure that you're supposed to use one or the other.

Remove the code from inc_header.asp and post a link to a text version of your inc footer.asp i.e. link to inc_footer.txt

You're code isn't in the right place in inc_footer.asp

What you have is


</body>
</html>
<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">
try {
var pageTracker = _gat._getTracker("UA-5279273-1");
pageTracker._trackPageview();
} catch(err) {}</script>


and you should have

</body>
<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">
try {
var pageTracker = _gat._getTracker("UA-5279273-1");
pageTracker._trackPageview();
} catch(err) {}</script></html>
<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

akintosyali
Starting Member

23 Posts

Posted - 13 January 2009 :  22:33:28  Show Profile
here is my footer. Where should I stick the code and how? Thanks, Akin

<%
'#################################################################################
'## Snitz Forums 2000 v3.4.06
'#################################################################################
'## Copyright (C) 2000-06 Michael Anderson, Pierre Gorissen,
'## Huw Reddick and Richard Kinser
'##
'## This program is free software; you can redistribute it and/or
'## modify it under the terms of the GNU General Public License
'## as published by the Free Software Foundation; either version 2
'## of the License, or (at your option) any later version.
'##
'## All copyright notices regarding Snitz Forums 2000
'## must remain intact in the scripts and in the outputted HTML
'## The "powered by" text/logo with a link back to
'## http://forum.snitz.com in the footer of the pages MUST
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program; if not, write to the Free Software
'## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
'##
'## Support can be obtained from our support forums at:
'## http://forum.snitz.com
'##
'## Correspondence and Marketing Questions can be sent to:
'## manderson@snitz.com
'##
'#################################################################################


Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"<table width=""95%"" align=""center"" border=""0"" bgcolor=""" & strForumCellColor & """ cellpadding=""0"" cellspacing=""1"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td>" & vbNewLine & _
" <table border=""0"" width=""100%"" align=""center"" cellpadding=""4"" cellspacing=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ align=""left"" valign=""top"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>" & strForumTitle & "</font></td>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ align=""right"" valign=""top"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>© " & strCopyright & "</font></td>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ width=""10"" nowrap><a href=""#top""" & dWStatus("Go To Top Of Page...") & " tabindex=""-1"">" & getCurrentIcon(strIconGoUp,"Go To Top Of Page","align=""right""") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"<table border=""0"" width=""95%"" align=""center"" cellpadding=""4"" cellspacing=""0"">" & vbNewLine & _
" <tr valign=""top"">" & vbNewLine
if strShowTimer = "1" then
Response.Write " <td align=""left""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & chkString(replace(strTimerPhrase, "[TIMER]", abs(round(StopTimer(1), 2)), 1, -1, 1),"display") & "</font></td>" & vbNewLine
end if
Response.Write " <td align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>"


'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<a href=""http://forum.snitz.com"" target=""_blank"" tabindex=""-1""><acronym title=""Powered By: " & strVersion & """>"
if strShowImagePoweredBy = "1" then
Response.Write getCurrentIcon("logo_powered_by.gif||","Powered By: " & strVersion,"")
else
Response.Write "Snitz Forums 2000"
end if
Response.Write "</acronym></a></font></td>" & vbNewline
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT


Response.Write " </tr>" & vbNewLine & _


"</table>" & vbNewLine
if strSiteIntegEnabled = "1" then
if strSiteRight = "1" then
Response.Write " </td>" & vbNewLine & _
" <td valign=""top"">" & vbNewLine
%><!--#include file="inc_site_right.asp"--><%
end if
Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine
if strSiteFooter = "1" then
Response.write " <tr>" & vbNewLine & _
" <td"
if strSiteLeft = "1" or strSiteRight = "1" then
if strSiteLeft = "1" and strSiteRight = "1" then
Response.write " colspan=""3"""
else
Response.write " colspan=""2"""
end if
end if
Response.write ">"
%><!--#include file="inc_site_footer.asp"--><%
Response.write " </td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
Response.write "</table>" & vbNewLine
end if
response.write "</body>" & vbNewLine & _

"</html>" & vbNewLine

my_Conn.Close
set my_Conn = nothing
%>


Edit: Added scrollcode tags.<

Edited by - Podge on 14 January 2009 05:36:45
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07