Skip to content

Instantly share code, notes, and snippets.

@micahwave
Created March 5, 2012 16:54
Show Gist options
  • Save micahwave/1979251 to your computer and use it in GitHub Desktop.
Save micahwave/1979251 to your computer and use it in GitHub Desktop.
disqus
<?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