MOD: Google Analytics - Posted (2809 Views)
Junior Member
wildfiction
Posts: 167
167
I've modded my inc_header.asp file at around line 254 I've inserted the following to allow Google Analytics to accumulate on my forum(s)

'######### Google Analytics Code Start
'######### Replace the xxx's in the _uacct line with your account number
Code:
Response.Write	"<script src=""http://www.google-analytics.com/urchin.js"" type=""text/javascript"">" & vbNewLine & _
"</script>" & vbNewLine & _
"<script type=""text/javascript"">" & vbNewLine & _
"_uacct = ""UA-xxxxxx-x"";" & vbNewLine & _
"urchinTracker();" & vbNewLine & _
"</script>" & vbNewLine & vbNewLine
'######### Google Analytics Code End


The line at 252 looks like this:
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT

and the code above was inserted after this line.
Not sure if anybody has any comments about whether or not this is the right place to put this code...?
I have only tried it on the www.usaskiforum.com so far.
All comments appreciated...<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
New Member
johnny bravo
Posts: 78
78
Works fine for me, Thank you<
Posted
Starting Member
s
Posts: 8
8
nice<
Posted
Junior Member
wildfiction
Posts: 167
167
What sort of analytics are you guys getting for your fora/forum?
One of the interesting factors that I've found is that about 70% of my visitors each day are returning visitors.
Tons of other interesting stuff as well but some of it will be regional...
I've received a few emails from people asking for invites to Google Analytics - please not that this is NOT like gmail and there are no invites and until they provide more capacity there is no way you can join up - really sorry about that...<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Is it closed ??? I signed up the first day, and I must say I'm impressed!<
Posted
Junior Member
wildfiction
Posts: 167
167
yes - currently closed to new accounts because of "overwhelming demand" - i was also very lucky to get in when i did.<
Posted
Senior Member
bobby131313
Posts: 1163
1163
I've had it on mine since the first week. It is very impressive.
I put mine in the same place, except I used an include file since I have 6-700 other pages on the site besides the forum. Makes it easy to change if needed.
One thing I like is the goal tracking. I set up the funnel leading to the final registration page. It's very interesting to follow the signups and see where they entered the site and follow thier progress through the site to the registration. Or the abandonment point if they don't follow through to the end. Good stuff.
They closed it very early. I believe the 7th or 8th day it was available.<
Posted
Starting Member
akintosyali
Posts: 23
23
I tried the code above and it didn't work.. Any suggestions??<
Posted
Support Moderator
Podge
Posts: 3776
3776
Where is your forum ? Did you put in your unique user account number ?<
Posted
Starting Member
akintosyali
Posts: 23
23
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<
Posted
Starting Member
SixGirl
Posts: 21
21
I ended up using this in the inc_footer today and it worked just dandy - see below from where I started to the end of the page:

Code:

'## END   - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT


Response.Write " </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"<script type=""text/javascript"">" & vbNewLine & _
"var _gaq = _gaq || [];" & vbNewLine & _
"_gaq.push(['_setAccount', 'UA-YOUROWNNUMBER-7']);" & vbNewLine & _
" _gaq.push(['_trackPageview']);" & vbNewLine & _
"(function() {" & vbNewLine & _
"var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;" & vbNewLine & _
"ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';" & vbNewLine & _
"var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);" & vbNewLine & _
" })();" & vbNewLine & _
"</script>" & vbNewLine & _
"</body>" & vbNewLine & _
"</html>" & vbNewLine

my_Conn.Close
set my_Conn = nothing
%>
 
You Must enter a message