Print Page | Close Window

Google Analytics causing post problems

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25563
Printed Date: 02 April 2026 at 4:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Google Analytics causing post problems
Posted By: bcampea
Subject: Google Analytics causing post problems
Date Posted: 08 April 2008 at 12:39am
We added Google Analytics to our website using GAHelper (ISAPI filter added through IIS) and ever since doing this, when anyone posts it adds the text below to EVERY post.  We have used this filter on many other sites without any problems, but for some reason it does this in the forum.  I'm not sure exactly which version we are running, but it is probably 9.xxx.  Any ideas?



< ="http://www.google-analytics.com/urchin.js" ="text/">_uacct = "UA-XXXXXXX"; urchinTracker();


Also, here is the page source from the Preview Post page.

<table width="98%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td>
              <table width="100%" border="0" cellspacing="0" cellpadding="2" height="250">
<tr>
<td class="text" valign="top">
<!--// /* Message body -->
Test< ="http://www.google-analytics.com/urchin.js" ="text/">_uacct = "UA-XXXXXX";
urchinTracker();



<!-- Message body ''"" */ //-->
</td>
</tr>
</table></td>
          </tr>
</table>





Replies:
Posted By: WebWiz-Bruce
Date Posted: 08 April 2008 at 8:12am
It looks like the ISAPI filter injects code into each page that goes through the ISAPI filter.

The RTE WYSIWYG Editor uses a page to allow the content to be editable rather than a text area. The ISAPI filter is injecting this code into the post editor.

The only solution would be to disable the RTE WYSIWYG Editor for your forum and use the standard text area editor. This can be disabled from the admin area.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: worldhosted
Date Posted: 12 October 2008 at 6:44pm
Hi,
 
I found the best way to deal with this was through the default.asp page.
 
Adding an include i.e. -
 
<% Option Explicit %>
<!--#include file="common.asp" -->
<!--#include file="functions/functions_date_time_format.asp" -->
<!--#include file="includes/analytics.asp" -->
 
Then creating the analytics.asp with just google analytics code within.
 
Now when you load default.asp and the server compiles, it shall add the analytics info to the page.
 
Hope this helps.
 
Ryan -  http://www.worldhosted.net - www.worldhosted.net


Posted By: Scotty32
Date Posted: 12 October 2008 at 7:11pm
I my self simply just added it into the "includes/footer.asp" file.

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: bcampea
Date Posted: 13 October 2008 at 5:41pm

I'm using an ISAPI filter for Google Analytics and that is probably why it didn't work for me. 



Posted By: AndySteeple
Date Posted: 15 January 2010 at 2:23pm
Originally posted by Scotty32 Scotty32 wrote:

I my self simply just added it into the "includes/footer.asp" file.


Same here, works a treat Wink



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net