Created
March 5, 2012 16:54
-
-
Save micahwave/1979251 to your computer and use it in GitHub Desktop.
disqus
This file contains hidden or 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
<?php | |
function time_disqus_config_js() { | |
?> | |
var omnituretracking = function() { | |
if (typeof omniTrackEv !== 'undefined') { | |
var username = jQuery('#dsq-comments').find('.dsq-commenter-name:first').text(); | |
omniTrackEv('comment', jQuery.trim(username)); | |
} | |
} | |
config.callbacks.onNewComment = [function() {omnituretracking();}]; | |
<?php | |
} | |
add_action( 'disqus_config_js', 'time_disqus_config_js' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment