Installing Piwik on Rackspace Cloud Sites


Installing Piwik on Rackspace Cloud Sites is very and needs few steps. Piwik is an Open Source Server Installable Real Time Web Analytics Software. Piwik is less known Free Server Installable Real Time Web Analytics Software than commercial solutions. However, Piwik is most powerful among the Server Installable Real Time Web Analytics Software we tested, including paid Google Urchin which The Rackspace Cloud provided free of cost in managed configurations before Urchin died. Installing Piwik on Rackspace Cloud Sites is as easy as installing WordPress on Rackspace Cloud Sites.

Prerequisites for Installing Piwik on Rackspace Cloud Sites

 

Before you start Installing Piwik on Rackspace Cloud Sites, apart from a Rackspace Cloud Sites account, you will need the following tools, we have linked appropiately :

 

 

Actual Steps for Installing Piwik on Rackspace Cloud Sites

 

We will Piwik on a subdirectory for this guide for Installing Piwik on Rackspace Cloud Sites. It is possible to install Piwik on subdomain or other domain.

 

Creating a separate MySQL database for Installing Piwik on Rackspace Cloud Sites

 

Your website must run on LAMP setup. If it is WordPress 90% chance is you are using LAMP already. Login to your Rackspace account, go to Cloud Sites and click to open the website question.  Now click the features tab :

 

adding-databases-to-Rackspace-Cloud-Sites

 

Click Add under Databases. (Note : if you scroll down this page, you will see the Cron Jobs)

Now open any Text Editor. Give the database a name, click continue and write the database name in your Text Editor. In the next page, you will have to add a Database Username and password, use anything and write down it in your text editor.Ψ Click Finish.

The database will be created and it generally takes 2-5 minutes for proper functioning. You will see the hyperlinked database name under Databases. Simply clicking it will open the Database Information page :

 

example

 

 

Copy and paste the ‘Hostname’ , password, database name, database user name in your text editor.  Steps for creating a separate MySQL database for Installing Piwik on Rackspace Cloud Sites is complete.

 

The core part for Installing Piwik on Rackspace Cloud Sites

 

Now, unzip Piwik on your . Open WinSCP and go to :

 

root/www.yourdomain.com/web/content/

 

Create a subdirectory, we created piwik for our website. Drag and Drop the files in WinSCP :

 

Installing Piwik on Rackspace Cloud Sites


 

It will take a bit time to get transferred. After it is complete, from your browser, point to :

 

http:// www.yourdomain.com/piwik-directory-name/

 

Like, in our case, during Installing Piwik on Rackspace Cloud Sites, it was :

 

Installing Piwik Analytics on Rackspace Cloud

 

System check would all green. Then the third and most important point for Installing Piwik on Rackspace Cloud Sites will arrive, its the database details :

 

piwik database

 

Please scroll above to see the Psi sign in red color like this - Ψ

Yes, the database server is not local host or the IP of local host, please look the second (counting from the beginning) screenshot carefully. Just follow the screen instructions. At number 8 step, you will get the Javascript for tracking :

 

piwik code

 

Copy paste it in Notepad. This is the thing you will need to like you do for Google Analytics. Complete the steps and you will end with fun. http:// www.yourdomain.com/piwik-directory-name/ will now point to your Piwik login screen, just like ours : http://thecustomizewindows.com/piwik/

 

Post installation process after Installing Piwik on Rackspace Cloud Sites

 

I recommend to perform these as a part of Installing Piwik on Rackspace Cloud Sites, taking that you are using WordPress, for other CMS, it will need a bit modification.

 

  • Create a robots.txt file in the root of the piwik installation subdirectory and add

 

User-agent: *
Disallow: /

 

Save it and CHMOD it to 0444. Otherwise Piwik change it ! You will not love to donate outgoing link juice or get indexed.

  •  In the same way, on your root robots.txt file, add :

 

Disallow: /piwik/

 

Where piwik is the name of  of the piwik installation subdirectory.

 

  • Create a .htaccess file in the root of the piwik installation subdirectory and allocate the the php memory like we said before starting Installing Piwik on Rackspace Cloud Sites. The basic methods for optimizing WordPress for speed through .htaccess and security will work here too. Root’s .htaccess rules will also work here, so by default you can not access http://thecustomizewindows.com/piwik/config/config.ini.sample.php by virtue of WordPress. PHP Flush works here too, but do not use it.
  • In my opinion, using Header and Footer Plugin or something like that is the best way to insert the tracking code in WordPress. Avoid those WP-Piwik like junks. They are basically useless and increases the burden and sucks compute cycles.
  • Optimization of code : The noscript part is not needed. You can safely delete the whole noscript part. You will notice the document.write(unescape(“%3Cscript src=’ part, simply upload piwik.js to Cloud Files, copy its url and replace it. So, in my case the adjacent part is becoming :

 

document.write(unescape("%3Cscript src='http://myuniquenumber.cf6.rackcdn.com/piwik.js' 
type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);

 

So this long story is not actually only for Installing Piwik on Rackspace Cloud Sites but for optimizing it too.

 

Signature

 


0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave Lame Behind - Get Engaged

Here’s what we’ve got for you:

Contact Us Today for Smarter Marketing of Knowledge

See each of the premium resources below:

For Publishers and Content Owners

Do you want to optimize your available content?

Do you want to increase the visibility of your content?

Do you want to increase your reliability as an Author?

Do you want your next or existing project to be technically planned?

If your answer to any of these is YES contact us with your approximate budget.

Contact Us Today

For the Media Companies and Advertisers

You must be seeking a publisher website like ours with real content to give an exposure to your client's business?

We provide Industry's Standard opportunities for advertisement.

Do you want some promotion that comes with proper invoicing, SLA on per annum basis?

If your answer is YES contact us today for a quote.

Contact Us Today for Quote

Mentions

  1. Installing Piwik on Rackspace Cloud says:

    [...] read more, please visit us at: Installing Piwik on Rackspace Cloud Sites Computer and Internet  Cloud Computing [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>