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?
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?