Using Cron Job for Piwik on Godaddy
by Adrian Speyer • 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:

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:

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.
