Using the Plugin (Backend Integration)
To install the plugin, go to the Plugins page in your WordPress admin dashboard and click on Install next to the title. Search for "Pirsch Analytics" and click Install for the plugin. Once installed, click Activate and navigate to Tools -> Pirsch Analytics from the left hand menu. This will take you to the settings page.
Enter the hostname you used to set up the website on the Pirsch dashboard and the client ID and/or secret. You can create new clients for your website in the Settings page. We recommend that you use an Access Token instead of an oAuth client, as this avoids unnecessary roundtrips.
After you click Save, Pirsch will start collecting statistics for your site.
There are a few optional fields you can configure to fine-tune the integration.
- The base URL can be set if you are using our proxy.
- The header can be set to extract the IP address from if your server is behind a proxy or load balancer.
- The path filter can be used to exclude pages using regular expressions.
Installing the Script (Frontend Integration)
<header> section and save.
The snippet can be found on the Settings page of your dashboard.
WordPress uses IDs to identify pages by default. This will show all pages on "/" or "/index.php" on the Pirsch dashboard, making it impossible to see which pages have actually been visited. We therefore recommend that you change the permalink settings.
- Login to your WordPress dashboard
- Go to settings -> permalinks from the left menu
- Set something other than "simple" or define a custom structure
Another advantage of this is that your visitors will be able to recognise and find pages more easily.