Ashworth Consulting

Main navigation

  • Home
  • About Us
  • Solutions
    • Web Design
    • Search Engine Marketing
      • $99 SEO Report
      • Silver SEO Package
      • Gold SEO Package
      • Platinum SEO Package
    • Custom Solutions
  • Web Hosting
    • Shared Web Hosting
    • SEO Web Hosting
    • Enterprise Hosting
    • Terms of Service
  • Articles
  • Contact Us
    • Support
    • Submit Files to Us
    • Request A Quote
  • ← Join the fight against SOPA & PIPA
  • Suhosin installed on all shared hosting servers →

Using Piwik when mod_security is enabled on your site

Posted on Feb 26, 2012 by Ashworth Consulting

Several customers have asked about getting Piwik analytics working correctly while we have mod_security enabled. We try to be as aggressive as possible against the spammers and hackers of the world, and that’s why we run mod_security, but we don’t like that to hinder your ability to use some of the great web scripts out there when possible.

If your Piwik is hosted on the same domain as your website being tracked, you can edit your Piwik Javascript Tracking code to force data to be sent in POST, to avoid the mod_security check. Before the line:

piwikTracker.trackPageView();

you can add the following line

piwikTracker.setRequestMethod('POST');

Additional information can be found at Piwik’s website. If you run into issues, don’t hesitate to open a support ticket from within your client management area. Our technicians are standing by to assist you with your account.

Category: Scripts & Code

top ^

Leave a Reply Cancel reply

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

Search

Categories

  • Featured Articles
  • General
  • Marketing
  • Operations & Server Status
  • PHP
  • Portfolio
  • Reviews
  • Scripts & Code
  • Security
  • SEO
  • Web Design
  • Web Hosting
  • WordPress

Contact Us

Ashworth Consulting
1506 NE Everett St
Camas WA 98607

Email
info@ashworthconsulting.com

Technical Support & Help

Shared hosting customers requiring technical support should email support@ashworthconsulting.com for assistance with their account.

Additional information can be found on our support page.

Useful Links

  • Client Support & Billing System
  • cPanel User Manual
  • Sitemap of this website

Legal Information

  • Privacy Policy
  • Terms of Service

Recent Articles

  • WP Super Cache security update issued. Fixes nasty XSS bug.
  • Updated CentOS kernel to 2.6.32-431.23.3.el6 on SAPPHIRE
  • ISP-Related Networking Issues
  • Service disruption to LW1 web server
Ashworth Consulting | © 2020 All rights reserved.
  • Request A Quote
  • Contact Us