geoPlugin Statistics Tracking Code
To have geoPlugin track an activated domain, include the following javascript code anywhere in your HTML code on any and all pages that you want statistics for.
<script src="http://www.geoplugin.net/statistics.gp" type="text/javascript"></script>
You may also eliminate the statistics.gp part of the URL, which will also activate the Javascript Web Service in addition to the statistics e.g.
<script src="http://www.geoplugin.net/" type="text/javascript"></script>
Note: The domain is www.geoplugin.net and not www.geoplugin.com
geoPlugin statistics tracking will add a 1px gif to your pages. To avoid breaking your page layout, we advise that you add the statistics tracker to the footer of your page.
Naming pages
If you use dynamically-driven content eg index.php?variable1=value1&variable2=value2…etc all your pages in the statistics will appear to come from index.php.
If you wish to use more meaningful names in the statistics, then add the variable page=<yourpagename> to the javascript code.
<script src="http://www.geoplugin.net/statistics.gp?page=home" type="text/javascript"></script>
This will generate statistics for a separate page called “home”
Naming pages can also be divided into directories, e.g.
<script src="http://www.geoplugin.net/statistics.gp?page=products/albums/easy_listening/index" type="text/javascript"></script>
will generate statistics for a page called “index” under the submenus “products→albums→easy_listening”
Enable heatclick maps to your page statistics
geoPlugin heatclick map tracking is a way to see where on your pages visitors click and is provided in a hassle-free way by simply by adding a simple variable to the geoPlugin statistics code to your pages. This is an excellent way to visualize a heatmap of clicks on a HTML page, showing hot and cold click zones allowing you to better organize your content.
geoPlugin heatclick map tracking is not enabled by default. To enable this feature, simply add the variable map_group=<yourpagename> to the javascript code.
<script src="http://www.geoplugin.net/statistics.gp?page=home&map_group=home" type="text/javascript"></script>
Once enabled, your heatmaps can be viewed when logged in, under the Statistics → Pages Viewed → Heatmap section
The different heatmap pages (if any clicks have been recorded) can be viewed by selecting them in the Group drop-down list.
See also
- In-depth User Guide
-
-
- Statistics Tracking Code
