• Using Cron Job for Piwik on Godaddy

    by  • Last modified:June 24, 2012 • Piwik • 0 Comments

    For a long time, I want to get the Cron/Archive script to work with Godaddy for my Piwik install. In the Piwik forum, Nick  shared a way to make it work, and I wanted to share it here. It’s actually quite simple, but Godaddy was of no help as Nick pointed out. Once you get your Piwik install up and running, you will want to set up the archive to be done by the CronTab. Make the changes noted by Piwik Archive documentation. So in your General Settings should like like below:

    auto archive general settings Using Cron Job for Piwik on Godaddy

    Next go into your Godaddy cron tab and paste in the following:

    /usr/bin/curl "https://www.EXAMPLE.com/PIWIKFOLDER/misc/cron/archive.php?token_auth=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

    When you are down it should look something like this:

    godaddy cron Using Cron Job for Piwik on Godaddy

    Of course you need to change the website, including the path to your Piwik install. If you are not on HTTPS, change url to HTTP. You also need your API token, which you can get on the API tab of your Piwik install when you are logged in as Super User. Next, set the cron job to run every hour and click save. That’s it. You should be good to go.

    About

    About The Author: Adrian has over 10 years experience in Web Marketing and Analytics. He currently works for one of the world's largest electronic component distributors as a Web Analytics Manager, handling their analytics needs worldwide. Adrian is also certified in Google Analytics and you can find him working with the team at Piwik.org in his spare time.