SVG hit counter

Introduction

If you want a simple SVG based unique hit counter, you have come to the right place.
You can choose to get the source or just add the following code to your page:

<object type="image/svg+xml" width="50" height="30" data="http://php.logfish.net/svgCounter.php"></object>

Options

You can add option to the hitcounter to change some of the settings. You can do this by adding them to the link after adding a question mark. If you want to combine two options, use an ampersand.

period= Define the number of days you want a period to contain.
For example http://php.logfish.net/svgCounter.php?period=10 for a 10 day period of unique hit counts.
Default: 7.
referer= Act as if the hit was done on the defined url.
For example http://php.logfish.net/svgCounter.php?referer=http://logfish.net/ will count and show the hits for that link instead of the client's referer.
summate Show the total sum of the periods as number, instead of the hit count of the last period.
For example http://php.logfish.net/svgCounter.php?referer=http://logfish.net/&amp;summate will count and show the hits for that link instead of the client's referer and show the summated hitcount as a number.
line_color= The color of the graph line.
For example http://php.logfish.net/svgCounter.php?line_color=purple will create a purple graph line.
Default: blue.
text_color= The color of the text.
For example http://php.logfish.net/svgCounter.php?text_color=purple will create purple text.
Default: black.

Example

Below is an example of the SVG hitcounter with a period of 4 weeks (28 days). If the browser does not support the object, a link to get the Firefox browser will be shown. Because it's SVG we can scale it as much as we want, this is 50% page width.

Get firefox
Last update: November 19th 2010
[Valid] [Exit →]
Copyright © Logfish.net