jpecrga is a jQuery plug-in that helps Web sites use Google Analytics while complying with the amendment to the Privacy and Electronic Communications Act (PECR) that came into force in the UK on the 26th May 2011. It provides an unobtrusive method of gaining user consent before using Google Analytics, which requires cookies. The code requests consent from the user. If the user gives consent, then the plug-in will inject the Google Analytics code into the page. If consent is not explicitly given, no code is injected. The user also has the option to store these preferences permanently. This plug-in is designed to satisfy the EPD / PECR / cookie law regulations only for Google Analytics.
| Tags | jQuery |
|---|---|
| Licenses | GPLv3 |
| Operating Systems | OS Independent |
| Implementation | jQuery |
Recent releases


Release Notes: This is a complete re-engineer of the solution from the ground up.


Release Notes: This release fixes a small bug introduced in 1.3.0.


Release Notes: This release updates the plugin to include optional GeoIP, so it can only serve to people who come from an IP address which is within the European Union.


Release Notes: A small bug was fixed by removing \'#\' in the hrefs for more info and replaced with a javascript(void).


Release Notes: A bug was located where if a user selected no to GA, and then yes to store the preference permanently, the cookies were mis-set. This has been resolved.