While waiting on HostGator to whitelist the mod_security rule(s) that were preventing my piwik install from recording hits, I found Bug Ticket #1460 that indicated that using “POST” rather than “GET” for parameter passing would get around HostGators mod_security rules which at the time only affected $_GET parameters.
I altered the tracking code on a test domain to include piwikTracker.setRequestMethod(‘POST’); Unfortunately, I was still getting 403 errors.
Once HG did the necessary whitelisting, all my sites started recording hits, including the test site using “POST”
So it looks to me that the suggested fix (also mentioned in the FAQ) of using .setRequestMethod(‘POST’) no longer applies to HostGator.
Cheers.
LGC