Ok, so I’ve gone through troubleshooting twice and still can get it to work. I think it may be the tracking code not being installed correctly, as the database is not logging visits. But I don’t know what could be wrong with it, I’ve tested with 2 profiles, one being a WP site and the other being a static site. Both aren’t logging. I would really appreciate some help with this. My comments, highlighted in red.
Edit: WP site appears to be working now. So I think it may be mod_security
Incorrect Piwik tracking code
Script pasted straight into theme files and also created new profile for static site, both seem fine
Make sure you are viewing reports for the correct website and date in Piwik
In Piwik, make sure you selected the right website in the website selector. Also, try to look at reports for "today" by changing the date in the date picker. Please wait at least 10 seconds after generating visits on your website: by default Piwik will only process reports every 10 seconds when "today" is selected.
Today selected and both profiles have been tested
Archiving triggered from the browser must be enabled, if it is disabled the Cron script must be configured properly
In Settings > General Settings, 'Allow Piwik archiving to trigger when reports are viewed from the browser' must be set to 'Yes'. If it is set to 'No', you must configure the cron script to automatically archive your web analytics reports, or Piwik will show 'No Data'. More information about auto archiving.
New installation, allow Piwik archiving to trigger is enabled
Third party Piwik plugins
It is possible that some Third party Piwik plugins could cause problems when tracking your visitors. Please try to disable all the third party plugins you are using to see if it fixes the issue.
New installation, no additional plugins
Disabled browser extensions and tested in multiple browsers
Do you have logs registered in your Piwik database?
If your Piwik tracking code is properly installed, Piwik would record visits in your database. To check if you have logs in your database, go to Piwik > Visitors > Visitor log, and select "today" in the calendar. If you see recent visitor information, it means that the visitor tracking is working, but maybe there is a problem with reports archiving.
Note: you can also check if logs are recorded correctly by looking at the table "piwik_log_visit" (using phpMyAdmin for example) and see if there are visits recorded. Alternatively, you can enable the plugin "DBStats", and then go to the "Database usage" tab in your Piwik administration area, and check if the table piwik_log_visit has any rows.
No visits are being logged on either site
Piwik displays a red cross (on IE) or a broken image icon on your tracked pages, instead of the 1*1 transparent Pixel
Check out this FAQ answer.
Access to piwik.php fails
If your host uses mod_security to block requests containing URLs (eg. hosts like HostGator, The Planet), check out the Piwik and mod_security FAQ.
If you use HTTP Authentication (Basic or Digest) on your Piwik files, you should exclude piwik.php and piwik.js from this authentication, or visitors on your website would be prompted with the authentication popup.
Piwik installed on same domain as site, so I added: piwikTracker.setRequestMethod(‘POST’); to the scipt. Still no joy
Tracking https (SSL) pages
Local copy of piwik.js outdated
Some users make a local copy of piwik.js on a different server than their Piwik installation. This is not officially supported and causes issues when the piwik.js bundled with Piwik is updated and not compatible with the previous version (for example, this is the case in Piwik 0.5.5). Please check that your Piwik JS tracking code is exactly the one given in the Piwik admin screen.
Using Piwik latest version
If you are still seing "No data", please make sure you are using the latest version of Piwik (if not, update now).
Check your webserver error logs
If all else fails, it is possible that there is a server misconfiguration preventing Piwik from tracking your visits or processing reports. Often, there will be an error in the webserver error logs (apache logs, IIS logs, nginx logs, etc.). Please check that your PHP is configured to log errors: (php.ini should contain log_errors = On and error_log = /path/to/log). The messages in the webserver error log will help you find the source of the problem, for example search for the error message on this website.
Cant see any error logs