Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Adding Statcounter Code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Statcounter Code

 Post Reply Post Reply Page  <123>
Author
mike henson View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Location: United Kingdom
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike henson Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2005 at 10:31am
The code already has that, or similar.
This is the code:
 
      <!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=000000;
var sc_partition=0;
var sc_security="00000000";
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src=http://c6.statcounter.com/counter.php?sc_project=000000&amp;java=0&amp;security=000000000 alt="counter create hit" border="0"></a> </noscript>
<!-- End of StatCounter Code -->
 
I have changed parameters for obvious reasons!
 
Regards
 
Mike
 
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2005 at 12:09pm
Can you post a url so we can see what happens?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
mike henson View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Location: United Kingdom
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike henson Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2005 at 5:47am
I prefer not to put up pages with code in-vision.
 
If you wish to test my problem just paste the code above into the footer.asp before the </body> tag on your own forum.
 
Regards
 
Mike
 
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2005 at 4:10pm
Not sure why you are having a problem.  It works fine on my website.
 
 
You will notice that I have StatCounter code in the lower left-hand corner.  I did place it in the header.asp file though instead of the footer.asp file.  But I do have other javascript code in footer.asp without a problem.
 
Perhaps you are placing it in the wrong place.  Are you placing it in the footer include, which is called includes/footer.asp?
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2005 at 4:17pm
I just thought of something.  Are you using a WYSIWYG HTML Editor like FrontPage?  Sometimes WYSIWYG Editors mess with your code and if you cut and paste it a certain way, it mistakes it for readable text instead of html code.
 
I would suggest using Notepad or a non-WYSIWYG HTML Editor to change your WWF ASP files, if you aren't already.
 
Just thought I'd throw that out as a possibility of why you are having problems.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2005 at 8:33pm
I get a message "Code Corrupted. Obtain fresh version" displayed but it doesn't display any code. Got same message and results when it was pasted in either header or footer .asp

If you're getting code displayed, it's likely that a tag is broken. Can you post your footer.asp with the javascript included?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
mike henson View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Location: United Kingdom
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike henson Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2005 at 6:05am
Thank you gentlemen for your replies.
 
I was using Dreamweaver in code view to paste the Statcounter code into includes/footer.asp
 
I will try pasting again using Notepad and if that fails I will post footer.asp here.
 
Kind regards
 
Mike
 
 
Back to Top
mike henson View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Location: United Kingdom
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike henson Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2005 at 3:51pm
Well, as suggested, I pasted the code using notepad and it worked fine; is this another of the little idiosyncracies that keep emerging in Dreamweaver?
 
I am becoming more dissolutioned by Dreamweaver and find I can frequently get the job done faster with Namo Web Editor.
 
Dreamweaver makes the simplest tasks quite complex.
 
Thank you all for your contributions to this seemingly bizarre problem.   
Back to Top
 Post Reply Post Reply Page  <123>

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.