- Home
- Track your visitors
Keep track of your visitors
Now this is where the less obvious steps begin. By this point, you already have your website ready to be used. But before we put it to use, we have to add some simple lines of code. Go to Google.com and sign up/in. Once you're logged in, sign up for Google Analystics. You'll have to create a website profile. Just follow the steps. When you're done you'll get a code, somewhat looking like this:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-********-*']);
_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>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-********-*']);
_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>
Why is this important?
This is very important! Why? With this you'll always know how well your website is rolling. If your amount of visits is rising or falling. If it's rising, you can be happy. If not, you'll know it's time for a (content) update!