Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Google Analytics causing post problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Google Analytics causing post problems

 Post Reply Post Reply
Author
bcampea View Drop Down
Newbie
Newbie


Joined: 08 February 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote bcampea Quote  Post ReplyReply Direct Link To This Post Topic: Google Analytics causing post problems
    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>




Edited by bcampea - 08 April 2008 at 12:42am
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
worldhosted View Drop Down
Newbie
Newbie


Joined: 12 October 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldhosted Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2008 at 7:11pm
I my self simply just added it into the "includes/footer.asp" file.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
bcampea View Drop Down
Newbie
Newbie


Joined: 08 February 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote bcampea Quote  Post ReplyReply Direct Link To This Post 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. 

Back to Top
AndySteeple View Drop Down
Newbie
Newbie


Joined: 10 November 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndySteeple Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.