<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Piwik on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/piwik/</link>
    <description>Recent content in Piwik on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 19 Aug 2015 08:38:41 +0000</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/piwik/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Add Piwik tracking code to your Koken site</title>
      <link>https://janikvonrotz.ch/2015/08/19/add-piwik-tracking-code-to-your-koken-site/</link>
      <pubDate>Wed, 19 Aug 2015 08:38:41 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2015/08/19/add-piwik-tracking-code-to-your-koken-site/</guid>
      <description>&lt;p&gt;Sadly there&amp;rsquo;s no native Piwik plugin for the Koken photography CMS.&#xA;However you can use another plugin the inject the tracking code to the footer of your site.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install the &lt;strong&gt;HTML Injector&lt;/strong&gt; plugin (Site &amp;gt; Settings &amp;gt; Plugin &amp;gt; Download Plugins).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Enable&lt;/strong&gt; the &lt;strong&gt;plugin&lt;/strong&gt; (Site &amp;gt; Settings &amp;gt; Plugin &amp;gt; HTML injector &amp;gt; Enable).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Setup&lt;/strong&gt; the &lt;strong&gt;plugin&lt;/strong&gt; (Site &amp;gt; Settings &amp;gt; Plugin &amp;gt; HTML injector &amp;gt; Setup).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Copy&lt;/strong&gt; the &lt;strong&gt;tracking code&lt;/strong&gt; of your Piwik site (Piwik &amp;gt; Administration &amp;gt; Websites &amp;gt; [site] &amp;gt; View Tracking code).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Paste&lt;/strong&gt; the &lt;strong&gt;code&lt;/strong&gt; into the &lt;strong&gt;footer field&lt;/strong&gt; and save it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Well done, your visitors are tracked now.&lt;/p&gt;&#xA;&lt;h1 id=&#34;source&#34;&gt;Source&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://lars-mielke.de/4333/piwik-integration-in-koken/&#34;&gt;lars-mielke.de - Piwik Integration in Koken&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Results of my very important internet survey</title>
      <link>https://janikvonrotz.ch/2015/04/09/results-of-my-very-important-internet-survey/</link>
      <pubDate>Thu, 09 Apr 2015 12:29:11 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2015/04/09/results-of-my-very-important-internet-survey/</guid>
      <description>&lt;p&gt;First some backgroud informations about why I&amp;rsquo;ve published this kind of survey:&lt;/p&gt;&#xA;&lt;p&gt;There are many pulbic survey tools, but none of them offers the as much features as &lt;a href=&#34;https://www.limesurvey.org&#34;&gt;LimeSurvey&lt;/a&gt;.&#xA;To run surveys on my own, I&amp;rsquo;ve &lt;a href=&#34;https://janikvonrotz.ch/2015/04/08/install-limesurvey-webapp/&#34;&gt;installed  the LimeSurvey application&lt;/a&gt; on this server.&#xA;For more insight of how the user interacts with the surveys I&amp;rsquo;ve added &lt;a href=&#34;https://janikvonrotz.ch/2015/04/09/enable-piwik-for-limesurvey/&#34;&gt;Piwik tracking for my LimeSurvey&lt;/a&gt; installation.&#xA;To test the setup I&amp;rsquo;ve added a simple survey and posted the &lt;a href=&#34;http://www.reddit.com/r/SampleSize/comments/31uvqp/casual_1_second_very_important_internet_survey/&#34;&gt;link to the SampleSize subreddit&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://janikvonrotz.ch/wp-content/uploads/2015/04/Survey-Question.png&#34; alt=&#34;Survey Question&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;What started as a simple system test enraged people all over the world. I didn&amp;rsquo;t expect anybody to contribute to this survey, nethertheless I had great discussion about crocs and nickelback.&lt;/p&gt;&#xA;&lt;p&gt;Some awesome quotes from the thread:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;One second to read, a lifetime to choose an answer.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;by &lt;a href=&#34;http://www.reddit.com/user/zmonge&#34;&gt;zmonge&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;It was hard, but in the end, Crocs don&amp;rsquo;t make me bleed from the ears.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;by &lt;a href=&#34;http://www.reddit.com/user/brown3jh&#34;&gt;brown3jh&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;CROCS. I WEAR THEM.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;by &lt;a href=&#34;http://www.reddit.com/user/monsto&#34;&gt;monsto&lt;/a&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Nickleback, no contest. I&amp;rsquo;d rather be forced to wear crocs for the rest of my life then listen to Nickelbutt.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;by &lt;a href=&#34;http://www.reddit.com/user/Voxel_Sigma&#34;&gt;Voxel_Sigma&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;results&#34;&gt;Results&lt;/h1&gt;&#xA;&lt;p&gt;Now I would like to present the results of this so important survey.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://janikvonrotz.ch/wp-content/uploads/2015/04/Survey-Results2.png&#34; alt=&#34;Survey Results2&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Obviously most people didn&amp;rsquo;t bother to finish the survey. I can understand that.&lt;/p&gt;&#xA;&lt;p&gt;Finally we know that Crocs are worse than Nickelback.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enable Piwik for LimeSurvey</title>
      <link>https://janikvonrotz.ch/2015/04/09/enable-piwik-for-limesurvey/</link>
      <pubDate>Thu, 09 Apr 2015 10:30:10 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2015/04/09/enable-piwik-for-limesurvey/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/1d5043a9f40760716def&#34;&gt;https://gist.github.com/1d5043a9f40760716def&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;Piwik is an Open Source webanalytics software. In this tutorial you&amp;rsquo;ll learn how to integrate the Piwiks plugin for LimeSurvey.&lt;/p&gt;&#xA;&lt;h1 id=&#34;requirements&#34;&gt;Requirements&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/13/deploy-ubuntu-server/&#34;&gt;Ubuntu server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/31/install-nginx/&#34;&gt;Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/01/nginx-minimal-website/&#34;&gt;Nginx minimal website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/20/install-php5-fpm/&#34;&gt;php5-fpm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/25/install-php5-modules/&#34;&gt;php5-mysql&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/install-nginx-php5-fpm-website/&#34;&gt;Nginx php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/07/install-mysql/&#34;&gt;MySQL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/increase-max-upload-for-php5-fpm-website/&#34;&gt;Increased Max Upload for php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2015/04/08/install-limesurvey-webapp/&#34;&gt;LimeSurvey webapp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;installation&#34;&gt;Installation&lt;/h1&gt;&#xA;&lt;p&gt;Navigate to the LimeSurvey plugin directory.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;cd /var/www/&amp;lt;limesurvey&amp;gt;/plugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Clone the Piwik LimeSurvey plugin.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo git clone https://github.com/SteveCohen/Piwik-for-Limesurvey.git PiwikPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Copy the scripts from the sub folder in to the main plugin folder.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;cd PiwikPlugin/&#xA;sudo mv ./PiwikPlugin/* ./&#xA;sudo rm -R PiwikPlugin&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Add access rights for the webserver user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown www-data:www-data -R ./*&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Open your Piwik website &lt;code&gt;//&amp;lt;piwik host&amp;gt;/index.php?module=SitesManager&lt;/code&gt; and optionally add a new site.&lt;/p&gt;&#xA;&lt;p&gt;Copy the ID of the site where you want to store your LimeSurvey tracking data.&lt;/p&gt;&#xA;&lt;p&gt;Open the LimeSurvey plugin manager &lt;code&gt;//&amp;lt;limesurvey host&amp;gt;/index.php?r=plugins&lt;/code&gt; and click the settings icon of the &lt;em&gt;Piwik for Limesurvey&lt;/em&gt; plugin.&lt;/p&gt;&#xA;&lt;p&gt;Update the &lt;code&gt;URL to Piwik&#39;s directory&lt;/code&gt; field with the url of your piwik installation &lt;code&gt;//&amp;lt;piwik host&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Add the ID of the Piwik site to the &lt;code&gt;Piwik SiteId&lt;/code&gt; field.&lt;/p&gt;&#xA;&lt;p&gt;Save the settings and enable the plugin.&lt;/p&gt;&#xA;&lt;p&gt;Whenever a user access one of your suveys their actions are tracked with Piwik.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why you should use Piwik instead of Google Analytics</title>
      <link>https://janikvonrotz.ch/2014/05/27/why-you-should-use-piwik-instead-of-google-analytics/</link>
      <pubDate>Tue, 27 May 2014 14:06:01 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/05/27/why-you-should-use-piwik-instead-of-google-analytics/</guid>
      <description>&lt;p&gt;Piwik is growing fast, it&amp;rsquo;s getting smarter and more reliable every day. Right now it&amp;rsquo;s the time to think about this alternative web analytic solution.&#xA;As I&amp;rsquo;m using it for years I forgot the original cause that made me replace Google Analytics with Piwik.&lt;/p&gt;&#xA;&lt;p&gt;So here are my most important perks for using Piwik instead of Google Analytics:&lt;/p&gt;&#xA;&lt;h1 id=&#34;1-data-is-yours&#34;&gt;1. Data is yours&lt;/h1&gt;&#xA;&lt;p&gt;When using GA (Google Analytics) the traffic data is stored on a Google server. Apart from your Google login you don&amp;rsquo;t obtain any of this informations.&#xA;So in case you care more about privacy than usability Piwik will make you happy. All informations of your Piwik installation are stored in a MySQL database.&lt;/p&gt;&#xA;&lt;h1 id=&#34;2-your-own-dependency&#34;&gt;2. Your own dependency&lt;/h1&gt;&#xA;&lt;p&gt;Google is known to have fast moving product strategy. If there&amp;rsquo;s a product in their portfolio which is no longer profitable or doesn&amp;rsquo;t apply to their product placement, they will likely drop it or at least migrate into another one.&#xA;I know the chance that Google will no longer offer the analytics service is equal to zero as it&amp;rsquo;s one of their core services.&#xA;But doesn&amp;rsquo;t it make your more happy when you can build up your own environment without to depend on services of some huge companies?&lt;/p&gt;&#xA;&lt;h1 id=&#34;3-more-users-will-increase-the-quality&#34;&gt;3. More users will increase the quality&lt;/h1&gt;&#xA;&lt;p&gt;As Piwik is an open source project everybody is able to make their contributions. Reporting issues, sharing ideas or update the source code is possible with Piwik.&#xA;Piwik is community driven, the changes originate from the users and not from a specific group of people which likely can lose the connection about what really matters.&lt;/p&gt;&#xA;&lt;h1 id=&#34;the-big-gap&#34;&gt;The big gap&lt;/h1&gt;&#xA;&lt;p&gt;So why not Piwik? Obvious it&amp;rsquo;s better, but why still most people rely on GA?&#xA;The answer is simple, for most people it&amp;rsquo;s too difficult to install Piwik.&#xA;For GA you&amp;rsquo;ll only need a Google account, but for Piwik you have to deploy your own server.&#xA;However many website hoster will offer a cheap hosting for Piwik.&#xA;But in case you want to install Piwik on your own, don&amp;rsquo;t hesitate, it isn&amp;rsquo;t that difficult.&lt;/p&gt;&#xA;&lt;p&gt;To get started I recommend you to checkout my instructions for an &lt;a href=&#34;https://janikvonrotz.ch/2014/04/22/install-piwik-website&#34;&gt;Piwik website&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Migrate Piwik website</title>
      <link>https://janikvonrotz.ch/2014/04/24/migrate-piwik-website/</link>
      <pubDate>Thu, 24 Apr 2014 07:23:42 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/04/24/migrate-piwik-website/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/9640572&#34;&gt;https://gist.github.com/9640572&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;This article assumes you&amp;rsquo;re going to move an exisiting piwik website from one server to another.&lt;/p&gt;&#xA;&lt;h1 id=&#34;requirements&#34;&gt;Requirements&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/13/deploy-ubuntu-server/&#34;&gt;Ubuntu server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/31/install-nginx/&#34;&gt;Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/01/nginx-minimal-website/&#34;&gt;Nginx minimal website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/20/install-php5-fpm/&#34;&gt;php5-fpm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/25/install-php5-modules/&#34;&gt;php5-mcrypt, php5-mysql&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/install-nginx-php5-fpm-website/&#34;&gt;Nginx php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/07/install-mysql/&#34;&gt;MySQL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/increase-max-upload-for-php5-fpm-website/&#34;&gt;Increased Max Upload for php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/14/install-phpmyadmin-website/&#34;&gt;phpMyAdmin website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/22/install-piwik-website/&#34;&gt;Piwik website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;instructions&#34;&gt;Instructions&lt;/h1&gt;&#xA;&lt;p&gt;Export the existing SQL Piwik database with phpMyAdmin.&lt;/p&gt;&#xA;&lt;p&gt;Import the database export into the new Piwik database with phpMyAdmin.&lt;/p&gt;&#xA;&lt;p&gt;Update the tracking codes or update Piwik urls on the Piwik tracked websites if the hosting has changed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enable Piwik geolocation support with GeoIP PECL</title>
      <link>https://janikvonrotz.ch/2014/04/23/enable-piwik-geolocation-support-with-geoip-pecl/</link>
      <pubDate>Wed, 23 Apr 2014 08:57:31 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/04/23/enable-piwik-geolocation-support-with-geoip-pecl/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/9758234&#34;&gt;https://gist.github.com/9758234&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;By default Piwik uses the provider location to guess a visitor&amp;rsquo;s country based on the language they use. This is not very accurate, so they recommend installing and using GeoIP.&lt;/p&gt;&#xA;&lt;h1 id=&#34;requirements&#34;&gt;Requirements&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/13/deploy-ubuntu-server/&#34;&gt;Ubuntu server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/25/install-ubuntu-development-libraries/&#34;&gt;libgeoip-dev&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/31/install-nginx/&#34;&gt;Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/01/nginx-minimal-website/&#34;&gt;Nginx minimal website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/20/install-php5-fpm/&#34;&gt;php5-fpm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/25/install-php5-modules/&#34;&gt;php5-dev, php5-geoip, php5-mysql&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/install-nginx-php5-fpm-website/&#34;&gt;Nginx php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/07/install-mysql/&#34;&gt;MySQL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/22/install-piwik-website/&#34;&gt;Piwik website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;installation&#34;&gt;Installation&lt;/h1&gt;&#xA;&lt;p&gt;Download the latest GeoLite database&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /var/www/[piwik]/misc/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Unzip the database.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo gunzip /var/www/[piwik]/misc/GeoLiteCity.dat.gz&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Rename the file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;cd /var/www/[piwik]/misc&#xA;sudo mv GeoLiteCity.dat GeoIPCity.dat&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update the access rights.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown www-data:www-data GeoIPCity.dat&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Update the php configuration file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo vi /etc/php5/fpm/php.ini&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Add the geoip configuration.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;geoip.custom_directory = /var/www/[piwik]/misc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Restart Nginx and php5-fpm service.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo nginx -t &amp;amp;&amp;amp; sudo service nginx reload&#xA;sudo service php5-fpm restart&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Now open your piwik installation on &lt;code&gt;//[host]/piwik/index.php?module=UserCountry&amp;amp;action=adminIndex&lt;/code&gt; and check the &lt;code&gt;GeoIP (PECL)&lt;/code&gt; option.&lt;/p&gt;&#xA;&lt;p&gt;In addition the the GeoLite download url to the &lt;code&gt;Download URL&lt;/code&gt; field and click save.&lt;/p&gt;&#xA;&lt;h1 id=&#34;source&#34;&gt;Source&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://piwik.org/faq/how-to/#faq_164&#34;&gt;How do I install the GeoIP Geo location PECL extension?&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install piwik website</title>
      <link>https://janikvonrotz.ch/2014/04/22/install-piwik-website/</link>
      <pubDate>Tue, 22 Apr 2014 06:43:16 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/04/22/install-piwik-website/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/9640540&#34;&gt;https://gist.github.com/9640540&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;Piwik is the leading open source web analytics platform that gives you valuable insights into your website’s visitors, your marketing campaigns and much more, so you can optimize your strategy and online experience of your visitors.&lt;/p&gt;&#xA;&lt;h1 id=&#34;requirements&#34;&gt;Requirements&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/13/deploy-ubuntu-server/&#34;&gt;Ubuntu server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/31/install-nginx/&#34;&gt;Nginx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/01/nginx-minimal-website/&#34;&gt;Nginx minimal website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/20/install-php5-fpm/&#34;&gt;php5-fpm&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/25/install-php5-modules/&#34;&gt;php5-mysql&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/07/install-mysql/&#34;&gt;MySQL&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/04/11/install-nginx-php5-fpm-website/&#34;&gt;Nginx php5-fpm website&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;installation&#34;&gt;Installation&lt;/h1&gt;&#xA;&lt;p&gt;Create the new Piwik website folder.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo mkdir /var/www/[piwik]&#xA;cd /var/www/[piwik]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Download latest piwik&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo wget http://builds.piwik.org/latest.tar.gz&#xA;sudo tar -xzvf latest.tar.gz&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Copy Piwik content and delete unnecessary files.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo cp -r ./piwik/* ./&#xA;sudo rm -r piwik&#xA;sudo rm latest.tar.gz &amp;quot;How to install Piwik.html&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s create the MySQL Piwik database and user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;mysql -u root -p&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Enter the MySQL root user password.&lt;/p&gt;&#xA;&lt;p&gt;Create the Piwik database.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE DATABASE [piwik];&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Create the Piwik database user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;CREATE USER [piwik]@localhost;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Set the password for the Piwik database user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SET PASSWORD FOR [piwik]@localhost = PASSWORD(&amp;quot;[password]&amp;quot;);&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Grant Piwik user full access on Piwik database.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;GRANT ALL PRIVILEGES ON [piwik].* TO [piwik]@localhost IDENTIFIED BY &#39;[password]&#39;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Refresh MySQL and exit.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;FLUSH PRIVILEGES;&#xA;exit&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Add the Nginx configuration to an existing website.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;server{&#xA;    &#xA;    ...&#xA;    &#xA;    location /piwik{&#xA;        root /var/www;&#xA;    }&#xA;    &#xA;    ...&#xA;    &#xA;    location ~ .php$ {&#xA;        &#xA;        ...&#xA;        &#xA;        if ($request_uri ~* /piwik) {&#xA;            set $php_root /var/www;&#xA;        }&#xA;        &#xA;        ...&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Provide access to the piwik folder.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo chown -R www-data:www-data /var/www/piwik&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Finally let&amp;rsquo;s add the archive cron job which will highly improve the processing time for your piwik reports.&lt;/p&gt;&#xA;&lt;p&gt;Add a new cron job.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo vi /etc/cron.d/piwik-archive&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Add this content to the cron file.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MAILTO=&amp;quot;[mail@example.com]&amp;quot;&#xA;5 * * * * www-data /usr/bin/php5 /var/www/[piwik]/console core:archive --url=http://[host]/piwik/ &amp;gt; /var/log/piwik/archive.log&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then create the log folder and grant access for the user.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo mkdir /var/log/piwik&#xA;sudo chown www-data:www-data piwik&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Test config and reload Nginx service.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo nginx -t &amp;amp;&amp;amp; sudo service nginx reload&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Open your browser on &lt;code&gt;//[host]/piwik&lt;/code&gt; and install the Piwik website.&lt;/p&gt;&#xA;&lt;h1 id=&#34;source&#34;&gt;Source&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://www.adminempire.com/how-to-install-piwik-on-ubuntu/&#34;&gt;How to Install Piwik on Ubuntu by AdminEmpire&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
