21-12-2004, 09:30
|
#1
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
website stats
Hey guys,
Say I use javascript, is there any way I can do my own counter, check IP addresses of visitors, check browser stats, and so on for my ntl webspace.
could I make a script up that checks this on load, and can save the info which I can check every so often.
I know this may be a long shot but |I had to ask.
ik
|
|
|
21-12-2004, 11:03
|
#2
|
|
Guest
|
Re: website stats
it may take a bit of reading to find what you want, but there are plenty of links to follow here
|
|
|
|
21-12-2004, 11:16
|
#3
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: website stats
Quote:
|
Originally Posted by ikthius
Hey guys,
Say I use javascript, is there any way I can do my own counter, check IP addresses of visitors, check browser stats, and so on for my ntl webspace.
could I make a script up that checks this on load, and can save the info which I can check every so often.
I know this may be a long shot but |I had to ask.
ik
|
Try this http://www.statcounter.com/ afaik it's hosted remotely and you only have a slap a bit of javascript on your site.
|
|
|
21-12-2004, 14:13
|
#4
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
Re: website stats
I am learning javascript and I was wondering if NTL allow for this.
I was going to try and play around with my own, code as well as a companies code, the problem with companies is that they sometimes want adds on your site.
ik
|
|
|
21-12-2004, 14:21
|
#5
|
|
Inactive
Join Date: Aug 2003
Location: nowhere
Posts: 718
|
Re: website stats
Quote:
|
Originally Posted by ikthius
Hey guys,
Say I use javascript, is there any way I can do my own counter, check IP addresses of visitors, check browser stats, and so on for my ntl webspace.
could I make a script up that checks this on load, and can save the info which I can check every so often.
I know this may be a long shot but |I had to ask.
ik
|
With javascript you are able to capture the following information:
navigator.appCodeName = Mozilla
navigator.appName = Microsoft Internet Explorer
navigator.appMinorVersion = 0
navigator.cpuClass = x86
navigator.platform = Win32
navigator.plugins =
navigator.opsProfile =
navigator.userProfile =
navigator.systemLanguage = en-gb
navigator.userLanguage = en-gb
navigator.appVersion = 4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
navigator.userAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
navigator.onLine = true
navigator.cookieEnabled = true
navigator.mimeTypes =
To get the values ignore from the = onwards.
You can also get more information such as the screen size and number of colours. However, you will not be able to get the ip address using javascript and you will not be able to store this information to a file as you will not be able to write to the local hard disk.
As far as I am aware, ntl web space does not include any server side scripting and without this you can't do much. If they had server side scripting such as asp or php then you could do what you want very easily. I've never seen the point in messing about with isp's web space as you can't do much except display information.
The alternative is to host your website on your own webserver or do as Bifta suggest and use statcounter.
|
|
|
21-12-2004, 14:40
|
#6
|
|
Inactive
Join Date: Jun 2003
Location: Swindon
Age: 53
Services: BT FTTP, Humax Foxsat HDR Freesat+
Posts: 810
|
Re: website stats
The problem with trying to do it with javascirpt is how to record the stats, as iron25 says, you cannot wite these out to a file on your server, the best you can do is write it to a cookie, but that stays on the visiotors computer, and would only count their own visit.
This is because javascript runs in the browser on the visitors computer, rather than on your web server.
You will need server side scripts to do a counter, ASP, PHP, Perl etc
|
|
|
21-12-2004, 18:57
|
#7
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
Re: website stats
I signed up with StatCounter, and I have left it for a few hours, and this is a very good site.
I can get what I want, Ip addresses, countries, length of time on site, page visits, where people came from, computer stats, browser used, screen res, etc.
this is a very good site. rep fro you bifta, and nice avatar
ik
|
|
|
21-12-2004, 20:30
|
#8
|
|
Guest
|
Re: website stats
Quote:
|
Originally Posted by ikthius
I signed up with StatCounter, and I have left it for a few hours, and this is a very good site.
I can get what I want, Ip addresses, countries, length of time on site, page visits, where people came from, computer stats, browser used, screen res, etc.
this is a very good site. rep fro you bifta, and nice avatar
ik
|
thanks for the feedback, ik - you will know all about me now
|
|
|
|
21-12-2004, 20:49
|
#9
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
Re: website stats
Quote:
|
Originally Posted by homealone
thanks for the feedback, ik - you will know all about me now 
|
yip, I sent you a pm you are one of 2 people.
ik
|
|
|
21-12-2004, 21:47
|
#10
|
|
cf.mega poster
Join Date: Jun 2003
Location: Glasgow
Age: 51
Posts: 1,831
|
Re: website stats
I use Statcounter for my site and it is great.
|
|
|
21-12-2004, 23:11
|
#11
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
Re: website stats
yip, so happy with it today, that I may even put a link to their site on my web site for the fantastic service this is for free.
ik
|
|
|
22-12-2004, 09:04
|
#12
|
|
Inactive
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
|
Re: website stats
hey guys,
I have an entry in the statcounter that says the person comes from america, but it also shows britain, I am slightly confused, how can I find out where this person comes from?
I have the ip address, it is AOL.
ik
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 22:35.
|