This documentation is currently being worked on. Until the stable version of PrestaShop 1.5 is released, it should not be seen as definitive.

Table content

Understanding Statistics

One of the greatest aspects of PrestaShop is its unrivaled power in digging up information on customer behavior. Let's see how this is done.

Contrary to the popular saying, statistics are not akin to "lies and damned lies". The numbers PrestaShop provides you with are rock-solid information which you can count on to improve your shop, change the way products are presented or adapt their prices, remove products that do not sell or simply push forward those that do. All this and more can be deduced from the data that PrestaShop automatically gathers for you, and which is presented in a dozen of entries, with graphics and data tables helping you making decisions.
The point to all this is to help you make a solid decision when you need to target your audience.

In addition to this, PrestaShop has a built-in referrer management system, which makes it possible for you to easily create affiliate campaigns.

Stats

This section presents in details the usefulness of the various available statistics. By clicking on each of the categories at your disposal in the sidebar of the "Stats" page, the main page reloads with the most current numbers.
For some of the stats, a complete explanation is given, helping you understand the data given to you so that you can use the information to improve your shop and its conversion rate.

Statistical data is gathered starting on the day you have installed PrestaShop. If you would prefer this data to be gathered starting with the opening day of you shop (and therefore, delete all your test data), you can use the "Auto-clean period" at least 24 hours before the definitive launch. See below.

Main interface

By default, the page displays the Stats Dashboard, an overview of the main numbers gathered by PrestaShop stat system since you launched your online shop.

At the top of the page is a single bar which helps you choose the period of time for the currently displayed statistics. Three sets of options are available:

The dashboard contains 8 sections:

Navigating the statistics

Most of the statistics can be downloaded as CSV files, by clicking on the "CSV Export" button.

Settings

PrestaShop's stats page can be configured to have the look-and-feel that you prefer.

Graph engine

A graph can take several forms, depending on your preferences. With the "Graph engine" setting, you can choose which graph engine with your statistics should be presented. This does not change your statistics, only the way they are presented, so simply choose the one you prefer. You can currently choose between these four:

More can be added, using modules. See the Addons marketplace to find more options: http://addons.prestashop.com/en/63-analytics-stats.
You can thus make a display choice that is both aesthetically pleasing and compatible with your browser.

PrestaShop uses the free version of XML/SWF Chart. Therefore, when you click a graph made with this engine, a new browser page will open with the XML/SWF Chart official website: http://www.maani.us/xml_charts/.

Grid engine

The way data tables are presented can also be configured. The default installation of PrestaShop only has one engine available: "Simple HTML table display". But you can install modules to your shop that offer more feature than the default engine. See the Addons marketplace to find more options: http://addons.prestashop.com/en/63-analytics-stats.

Auto-clean period

You can also automatically select the way the statistics will be erased from your shop. Erasing data will usually make the shop more responsive, and thus improve the comfort of your visitors. You have four options, depending on your traffic and your server's performance: Never, Week, Month or Year.

This option can be very useful to clean the statistical data that was gathered during your tests of the shop, and thus only keep the data starting from the real opening of your shop.

Search Engines

A lot of you visitors will come from search engines. In order to know what they were looking for, and how you can improve your shop for their search queries, you need to know their queries.

This page presents a table of all the search engines that your installation of PrestaShop supports – meaning that PrestaShop is able to recognize it, and to extract the query that the visitor from that a given search engine used to find your shop.

While Google has the biggest share of search engines users, there are many other search engines that people could use to find your website. Therefore, you have to be able to retrieve their search requests too. When an unknown search engine is starting to bring regular visitors, it is high time that you add it to your database – otherwise, those visitors would be marked in your statistics as coming from "Other search engines", which is not helpful at all.

Adding a Search Engine

It is very simple to add a new search engine to your list.

Let's say you want to add Baidu, the Chinese search engine giant (note that it is already included in the default installation of PrestaShop):

  1. Get the full referrer URL for the search. For instance, http://www.baidu.com/s?wd=kids+shoes&inputT=1303
  2. Take the domain name, which is specific to that search engine, and put it in the "Server" field. In our case, "baidu".
  3. Find the query variable:
    1. Find the query string. It should be a set of letters, followed by an "=" sign, followed by the query itself, closed by a "&" or the end of the string. In our case, it is "wd=kids+shoes".
    2. The query variable is the set of letters before the "=" sign. In our case: "wd". Put that in the "$_GET variable" field.
  4. Click the "Save" button, and from now on, PrestaShop will be able to recognize visitors from that search engine.

Referrers

A referrer means a website that brings you at least one visitor. This website features a link to your shop, and thus it helps you build an audience and eventually make more sales.

Some referrers are more important to you than others: you might have partners that have links to your shop on their own website, and both you and your partners would certainly want to know how many visitors those links brought you. You could even pay your partners to display a link to your shop, depending on how much you value your traffic.
This, in effect, is called affiliation, and the "Referrers" page helps you build a complete affiliate program, to which even your partner can connect to see the number of visits and sales their links have generated. Registered affiliates generate traffic to your shop, you want to reward them for those visitors, and the affiliate program is how both of you can access the figures the reward is based on.

PrestaShop's referrer tool can be likened to that of a statistical dashboard open to others than only your staff members. When you create an affiliate campaign for a site, you can allow that access to all of the activity it will have made for your site, through a password-protected URL: http://URL-OF-YOUR-SHOP.com/modules/trackingfront/stats.php.

Adding a new referrer

To create a new affiliate partner, click on the "Add new" button, which will take you to the affiliate creation form.

The affiliate space enables you to create privileged access for your partners. They will have access to all statistics on the flow of visitors from their site to your online shop. To create their privileged space, you need to create their account in your affiliation program, then define how you will pay based on traffic and sales generated in the fields provided.

Each section is important:

The "Help" section gives you some precious indications on how to best configure your affiliate. Read it through.

Settings

The referrer settings are mostly tools to help you make the best of your affiliate program.

There are three possibilities: