Skip to content

Instantly share code, notes, and snippets.

@jessor
Created May 28, 2011 16:58
Show Gist options
  • Save jessor/997032 to your computer and use it in GitHub Desktop.
Save jessor/997032 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() {
piwikTracker.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