Skip to content

Instantly share code, notes, and snippets.

@ZE3kr
Forked from jessor/theme.js
Last active November 13, 2016 00:53
Show Gist options
  • Save ZE3kr/68aac2d8f544c1dc0d9ba2bad06be9d3 to your computer and use it in GitHub Desktop.
Save ZE3kr/68aac2d8f544c1dc0d9ba2bad06be9d3 to your computer and use it in GitHub Desktop.
Track Wordpress Comments as Piwik Goals with jQuery
jQuery.noConflict();
jQuery(document).ready(function($) {
// ...
$('#commentform').submit(function() {
_paq.push(['trackGoal', '1']); // logs a conversion for goal 1
});
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment