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 Topic: Adding Statcounter Code
    Posted: 14 September 2005 at 4:39pm
I would like to add Statcounter Javascript Code to (presumably) default.asp so I can track visitors.
 
The code needs to go between the <Body></Body> tags.
 
I can't find the <Body> tag on default.asp and although I can see, and place the code before the </Body> tag on includes/footer.asp the code appears in-vision when I upload the new file.
 
Can you tell me where the correct location is for the code please?
 
Thank you
 
Mike
 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2005 at 4:45pm
the first body tag is within the header.asp i believe

im not 100% what your trying to do, you want ot count how long a user is on that age.. how are you going to collect it, i mean yourself
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: 15 September 2005 at 3:21pm
Thanks DJ
 
Maybe Borg will stop by and give me a definative answer
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: 17 September 2005 at 2:03pm
Simple place it in your footer file.  That way it appears on every page.
Don't worry about the BODY tags.  StatCounter's instructions are assuming that you are placing it on a simple html page.  If you place the StatCounter code in the footer, it is automatically placed between the BODY tags, which are elsewhere in the WWF code.
 
And, DJ, FYI StatCounter is a service that helps webmasters track visitor activity on their website.  http://www.statcounter.com/
 
Hope that helps. Smile
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: 17 September 2005 at 6:35pm
Scott, as I said in my post, when I place the code in the footer.asp page it appears in-vision.
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: 17 September 2005 at 8:08pm
I don't know what appears in-vision means.

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: 18 September 2005 at 6:50am
It means the code is actually visible on the page when viewed in a web browser.
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 9:44am
Ahhh....
Sounds like the browser thinks the javascript is content - not code.

You need to surround the javascript with html script tags to indicate that it's code.

Right after the <body ....  > tag in header.asp put -

<SCRIPT LANGUAGE =" JavaScript">

   YOUR JAVA SCRIPT GOES HERE
</SCRIPT>

Lead me not into temptation... I know the short cut, follow me.
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.