Counting Hits and Referers – now there's two ways

b2++ and WPMU have long been able to record hits and referers. Now you can do it in two different ways!
The original way to record hits in WPMU was by adding this code to your index.html template:

{insert name='getreferer'}

but if you’re not sure that the web page is refreshed every time your blog is loaded you can insert the following html instead:

<script type="text/javascript" language="JavaScript1.2" src="{$siteurl}/wp-counter.php"></script>
<noscript>
<img src="{$siteurl}/wp-counter.php?page=img&loc={$smarty.server.SERVER_NAME}/{$smarty.server.REQUEST_URI}" alt="Stat Counter" border=0>
</noscript>

As usual, replace the quotes in the code above with regular shift-2 characters.

Here’s what the referers listing looks like in your backend:

One thought on “Counting Hits and Referers – now there's two ways

Leave a Reply

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close