PDA

View Full Version : I want to track visitors on my webpage foo.com/myusername



hanzj
February 2nd, 2012, 11:26 AM
Hello,

I have a webpage on a domain that I don't own. I prefer not to get into which domain it is. The webpage allows simple html tracking code, like what flagcounter.com offers:



<a href="http://s03.flagcounter.com/more/XXXX"><img src="http://s03.flagcounter.com/count/gbB5/bg_FFFFFF/txt_000000/border_CCCCCC/columns_4/maxflags_19/viewers_3/labels_1/pageviews_1/flags_1/" alt="free counters" border="0"></a>

but it won't accept javascript code, like Google Analytics:



<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2886XXXX-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
When I try to save the webpage with the javascript code, the page doesn't keep the code.


I want to invisible track my visitors, so flagcounter is out of the picture.
I want to track IP address and time/date of visit. What are my options?

Nytram
February 2nd, 2012, 02:36 PM
It's been a while since I've used HTML but I think the <img> tag allows width and height as parameters so you could make the image a single pixel in size, and it would go unnoticed.

aeiah
February 2nd, 2012, 03:30 PM
It's been a while since I've used HTML but I think the <img> tag allows width and height as parameters so you could make the image a single pixel in size, and it would go unnoticed.

this. or put it in a hidden div

CharlesA
February 2nd, 2012, 07:39 PM
Both of those sound quite dodgy.

If you do not own the domain name, just use what it allows, don't try to get around what they allow.

hanzj
February 2nd, 2012, 08:41 PM
OK. But what tracking sites/services can do this? I am new to this.

CharlesA
February 2nd, 2012, 08:47 PM
You posted one in the OP.

N00b-un-2
February 2nd, 2012, 08:54 PM
sounds to me like someone is trying to track who's looking them up on facebook.

CharlesA
February 2nd, 2012, 09:05 PM
sounds to me like someone is trying to track who's looking them up on facebook.
If not that, then it is sure phishy sounding.

hanzj
February 2nd, 2012, 09:05 PM
but i want one that gives vistor's:
--IP address
--time of visit
--duration of visit

CharlesA
February 2nd, 2012, 09:06 PM
That is something you can get from server logs, but it is not something you would normally have a need for.

This thread is closed.