Created
May 28, 2011 16:58
-
-
Save jessor/997032 to your computer and use it in GitHub Desktop.
Track Wordpress Comments as Piwik Goals with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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