How can I capture Disqus commenting activity in my own analytics tool?

If you would like to track new comments and replies via your own analytics service, such as Omniture or Google Analytics, you can do so via the following callback function. This callback function accepts one parameter comment which is a JavaScript object with comment ID and text.

The following callback can be added to the disqus_config function, which is already included within the WordPress plugin, before the main Disqus Javascript include:

function disqus_config() {
    this.callbacks.onNewComment = [function() { trackComment(); }];
}

Make sure to replace trackComment(); with the script you wish to track via your analytics service.

Contact us

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • Link to any page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?
help@disqus.com
http://assets1.desk.com/raca8b478c9bd89640c451013350d59caa6b66ee1/javascripts/
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete