1.2. Installation

Automated Installation (recommend)

To integrate piwikintegration into your TYPO3 installation follow these steps:

  1. Install the extension via TER, piwik is not included!

  2. Also install and enable the EXT:piwik which is suggested, to get the trackingcode automatically.You do not need to configure EXT:piwik since it is already configured with the static template of EXT:piwikintegration (see below).Have a look in http://typo3.org/extensions/repository/view/piwik/current/ for setting up advanced options of EXT:piwik. You do not need to do this here.

  3. Enable the extension EXT:piwikintegration.

  4. Add the static template of EXT:piwikintegration (choose Web -> Template -> [page where you have your template] -> Info/Modify -> Edit whole template record -> Includes) This will enable a single idsite and add the needed ts-configuration for EXT:piwik, as described above.

  5. Open the statistik module (Web -> Statistics ) and click on the page, or a subpage, where you added the static template:

    1. The backendmodule now recognizes, that Piwik is not installed (by checking, if the config file exists).

    2. The backendmodule will now download, extract and install the latest Piwik release into typo3conf/piwik. This could take a while.

    3. The backendmodule will now reload and you will now able to use Piwik via the Direct Statistics Access dropdown box.

  6. (If you like to use GeoIPDatabase use the admin functions of the module and download the database from maxmind.)[This function is currently not available.]

That's all you need to start tracking your visitors. See EXT:piwik manual for more config options and description of it's parameters.

Manual installation (draft may not be complete, not recommend)

To integrate piwikintegration into your TYPO3 installation follow these steps:

  1. Install the extension via TER, piwik is not included!

  2. Install and enable the EXT:piwik which is suggested, to get the Trackingcode automatically.You do not need to configure EXT:piwik it's configured with the static template of EXT:piwikintegration (see below).Have a look in http://typo3.org/extensions/repository/view/piwik/current/ for setting up advanced options of EXT:piwik. You do not need to do this here.You do not need to install EXT:piwik, if you integrate the trackingcode on your own. But you need to setup up the siteid like described in http://typo3.org/extensions/repository/view/piwik/current/ in the EXT:piwik manual. This is needed, because EXT:piwikintegration uses the same setup as EXT:piwik

  3. Install and enable the plugin EXT:piwikintegration.

  4. Copy Piwik in typo3conf/piwik/piwik so that the index.php is accessable via typo3conf/piwik/piwik/index.php

  5. Setup Piwik with the same database parameters as you use for your TYPO3 installation. You need to set the prefix to “tx_piwikintegration_“ as this is required for EXT:piwikintegration.

  6. Open the statistik module, click on the page, or a subpage, where you have added the static template. The backendmodule should now recognize that Piwik is correctly installed (by checking if the config file exists). This will show the overview page.

  7. Don't forget to install the TYPO3* plugins in Piwik application (Web -> Statistics -> Direct Statistics Access -> Admin -> Plugins), especially the TYPO3Auth plugin is mandatory for authentification against the TYPO3 session. If this works you can disable the Login plugin.

  8. If you like to use GeoIPDatabase use the admin functions of the module and download the database from maxmind.

That's all you need to start tracking your visitors. See EXT:piwik manual for more config options and description of it's parameters.

3 ways to add the trackingcode

Basically there 3 ways to install the trackingcode to your site

The recommend way: EXT:piwik

Ext:piwik adds the trackingcode to your Page. All you need to do is to download and install EXT:piwik via the TYPO3 extension manager. Add the static TS of EXT:piwik and EXT:piwikintegration to your page template and configure the idsite. See http://typo3.org/extensions/repository/view/piwik/current/ for more details.

This way offers an easy configuration interface via EXT:piwik TS interface:

  1. .piwik_idsite

  2. .piwik_host

  3. .piwik_action_name

  4. .piwik_download_extensions

  5. .piwik_hosts_alias

  6. .piwik_tracker_pause

  7. .piwik_install_tracker

Note: there is already a version 2.x in the SVN on forge.typo3.org which is still waiting to get published:

http://forge.typo3.org/repositories/show/extension-piwik

The manual way

Use EXT:piwikintegration to obtain the JS Code. Add it to your TS pagetemplate. Configure config.tx_piwik.piwik_idsite, because Ext:piwikintegration needs that value for setting up the users.

The debug way

EXT:piwikintegration is shipped with a basic trackingcode add script. You may enable it in the extension manager. And add the static TS of EXT:piwikintegration to your TS template. See the chapter “Settings in Extensionmanager” for more details. It's not recommend to use that option, as there is only one configuration option: config.tx_piwik.piwik_idsite.

Filesystemstructure of the plugin

Ext:piwikintegration installs like a normal plugin. It needs to be installed as local extension. Additionally Ext:piwikintegration creates a folder typo3conf/piwik where piwik will reside.

Modifying Piwik settings

Read the correspondng articles on piwik.org. You will find the configuration and all the needed files below typo3conf/piwik/piwik.

Adding Piwik plugins

Adding pluging to Piwik is as easy as extracting zip files to the plugins folder in the folder typo3conf/piwik/piwik.

I suggest to install EXT:t3extplorer and use the upload vie URL functionality of this extensions as here it is also possible to extract the files directly on the server.

Usefull plugins for Piwik:

  1. AnonymizeIP for shortening Ip'sincluded

  2. TYPO3Menuincluded

  3. GeoIPhttp://dev.piwik.org/trac/ticket/45

  4. Heatmap (still under heavy development)http://dev.piwik.org/trac/ticket/73

The developer plattform allows you to search plugins with the following url.

http://dev.piwik.org/trac/query?status=new&status=assigned&status=reopened&milestone=Third+Party+Piwik+Plugins&order=priority