How to give a friendly name to your pages?

Naming your pages

By default, the URL is used for the pages names. The reports can be hard to analyse, because the names are not necessarily readable.

To give a name to a page view, you can set the variable "pagename" in the Javascript code you installed on your pages. For example:

var pagename = "My friendly name";

There is also an automatic solution for the pagename : you can use the value of the HTML TITLE markup.

var pagename = document.title;

It will simply name each page with their HTML Title, and you will see this information in the Pages view section in the phpMyVisites interface.

Classify pages into groups

This is very useful for all websites with content separated into categories. As you can see on phpMyVisites online demonstration, you can classify your pages into groups (categories). You browse the groups and pages very easily in the phpMyVisites interface in the "Pages view" part. To do this, it is very simple (thanks to phpMyVisites supreme power)

You have 2 possibilities:

- automatic : if your website is physically structured with directories, phpmyvisites will detect them and will classify your pages into groups (named as your site directories)

- manual : if you don't have directories, for example if all your pages call "index.php" with different variables, you can set up a virtual page name and assign its value to the Javascript variable "pagename", separating the groups with the character slash "/". See the little exemple:

var pagename = 'group1/subgroup1/hello_kitty';

Downloads and URL clicks tracking

Yes, phpMyVisites can track your downloads and your external URLs clicks!

Recommended: Url Generator

The simplest way to do this is to use the URL generator for downloads and URLs clicks.

Advanced users: Manual method

If you want to count file downloads, or URL clicks, it is very simple. You have to change your URLs with the pattern :
http://PATH_TO_YOUR_PHPMYVISITES/phpmyvisites.php?url=URL_WHERE_TO_REDIRECT&id=ID_SITE&pagename=FILE:NAME_OF_FILE

Note that the string "FILE:" is mandatory! If you don't put this string, it won't work

For example, if you want to set up a Google url click count, instead of linking to "http://www.google.com", you will link to

phpmyvisites.php?url=http://www.google.com&id=1&pagename=FILE:google click count

Or if you want to count the files download (this link will redirect to "http://www.download.com/phpmyvisites.zip")

phpmyvisites.php?url=http://www.download.com/phpmyvisites.zip&id=1&pagename=FILE:phpmyvisites_last_version

A super tip

You can classify Files download, URL count, into groups! As you can for the classic pages. It allows to have a very precise report, well organized

For example this will word

phpmyvisites.php?url=http://download.com/phpmv.zip&id=1&pagename=FILE:files download/phpmyvisites/last release

The "File" will be classified into the groups files download/phpmyvisites/

Good luck with phpmyvisites!

If you're happy with it, don't hesitate to make a little donation, it helps us a lot :-)
You can also see the Documentation WIKI for more information.