---
title: How to Track Disqus Activity in Google Analytics
description: A short tutorial on tracking total new Disqus comments in Google Analytics. Once configured, you’ll be able measure the number of comments your readers are posting alongside the metrics you already track with Google Analytics such as page views and time on site.
image: https://blog.disqus.com/hubfs/60.png
---

[![disqus](https://a.disquscdn.com/next/710d860/marketing/assets/img/brand/disqus-logo-blue.svg)](https://disqus.com/)

- Comments 
    - [Overview](https://disqus.com/platform/overview/)
    - [Engagement](https://disqus.com/platform/engagement/)
    - [Moderation & Safety](https://disqus.com/platform/moderation/)
    - [Audience](https://disqus.com/platform/audience/)
    - [Monetization](https://disqus.com/platform/monetization/)
- [Boards](https://about.disqus.com/disqus-boards)
- [Polls](https://disqus.com/polls/)
- [Pricing](https://disqus.com/pricing/)
- Resources 
    - [Blog](https://blog.disqus.com)
    - [Support](https://disqus.com/support/)
    - [Knowledge Base](https://help.disqus.com/)
    - [Disqus 101](https://about.disqus.com/disqus-101)
    - [Discuss Disqus](https://disqus.com/home/channel/discussdisqus/)
    - [Case Studies](https://about.disqus.com/case-studies)
- [About](https://disqus.com/about-us/)
- [Contact Us](https://about.disqus.com/contact/)

- Login

    - [Publishers](https://disqus.com/profile/login/?next=https://disqus.com/admin/)
    - [Commenters](https://disqus.com/profile/login/?next=https://disqus.com/home/notifications/)

[Get Started](https://disqus.com/profile/signup/intent)

 Site Admin

- View Profile
- [Settings](https://disqus.com/home/settings/)
- [Home](https://disqus.com/home/)
- [Help](https://help.disqus.com/)
- [Log Out](https://disqus.com/logout/)

[Blog](https://blog.disqus.com)  How to Track Disqus Activity in Google Analytics

[Best Practices](https://blog.disqus.com/topic/best-practices)

# How to Track Disqus Activity in Google Analytics

 April 05, 2018 | [Tony Hue](https://blog.disqus.com/author/tony-hue) [... comments](https://blog.disqus.com/how-to-track-disqus-activity-in-google-analytics#disqus_thread)

![How to Track Disqus Activity in Google Analytics](https://blog.disqus.com/hubfs/60.png)

We know that many publishers use Google Analytics to understand their site's traffic. Perhaps that also includes [Disqus Analytics](https://help.disqus.com/customer/en/portal/articles/1172470-engage-and-reveal-metrics) for insights about your readers' engagement. Wouldn't it be convenient if you could capture Disqus commenting activity within Google Analytics?

In this tutorial, we’ll show you how to start tracking total new Disqus comments in Google Analytics. Once configured, you’ll be able to measure the number of comments your readers are posting alongside the metrics you already track with Google Analytics such as page views and time on site.

## Tracking new Disqus comments in Google Analytics

This tutorial requires some familiarity with JavaScript. Otherwise, we recommend consulting a developer on your team to assist you. In addition, make sure you meet the following requirements before proceeding:

- [Google Analytics](https://www.google.com/analytics/) is installed on your site
- You have access to your site’s code and the ability to edit the [Disqus embed code](https://help.disqus.com/customer/en/portal/articles/472097-universal-embed-code)

To track new comments posted on your site, we’re going to be using a [callback function](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function) within your Disqus embed code. Specifically, we’ll be adding the **onNewComment** callback to the existing **disqus\_config** function:

When a new comment is posted on your site, this triggers the onNewComment callback to fire a “New Comment” event that is sent to Google Analytics. Note that this only works for *new* comment activity and cannot be applied retroactively.

If you're using the Disqus WordPress plugin, the disqus\_config variable can be added anywhere on the page's code where Disqus is installed. This could be added wherever you normally insert JavaScript via your WordPress settings (i.e. the [Text widget](https://codex.wordpress.org/WordPress_Widgets#Adding_Code_to_the_Text_Widget)).

**How to track total comment reads**

If you’d like to track how many times someone reads the comments on your site, you can configure a “read” event to be sent to GA whenever the Disqus iframe comes into view on a page. To find more information on event tracking in Google Analytics, [check out their documentation](https://developers.google.com/analytics/devguides/collection/analyticsjs/events).

## Viewing Disqus activity in Google Analytics

![ga-dashboard-widget-config](https://blog.disqus.com/hs-fs/hubfs/ga-dashboard-widget-config.png?width=600&name=ga-dashboard-widget-config.png)

In Google Analytics, head to **Reports \> Behavior \> Events**. From there, create a new widget in your dashboard that tracks total new comments posted over time. Use either a Metric or Timeline-based widget for tracking cumulative total comments or daily trends, respectively.

![ga-disqus-activity](https://blog.disqus.com/hs-fs/hubfs/ga-disqus-activity.png?width=501&height=560&name=ga-disqus-activity.png)

Allow Disqus activity to populate in Google Analytics for a few days. Once you do, you can leverage Google Analytics’ various tools to understand how your audience engagement impacts the other metrics on your site and develop [strategies towards increasing engagement](https://blog.disqus.com/the-ultimate-guide-to-increasing-reader-engagement-free-ebook).

## Not using Google Analytics?

If you don’t use Google Analytics, you can still track total new comments in other analytics services including [Chartbeat](https://chartbeat.com/) and [Parse.ly](https://www.parse.ly/) using the same method as described above. You will need to replace the Google Analytics script though with your own script for sending events to your analytics service.

## 💬 Discuss: Which metrics do you currently track?

Join us in the discussion below and share the metrics that are vital to your success. We’d love to hear from you so share any questions and feedback you might have. We hope you found this guide useful.

- [Platform Overview](https://disqus.com/platform/overview)
- [Engagement](https://disqus.com/platform/engagement)
- [Moderation & Safety](https://disqus.com/platform/moderation)
- [Audience](https://disqus.com/platform/audience)
- [Monetization](https://disqus.com/platform/monetization)
- [Pricing](https://disqus.com/pricing)
- [Disqus Pro](https://disqus.com/landing/disqus-pro)
- [Disqus for Business](https://disqus.com/landing/disqus-business)
- [Polls](https://disqus.com/polls)

- [Blog](https://blog.disqus.com/)
- [Support](https://help.disqus.com)
- [Knowledge Base](https://help.disqus.com/)
- [Disqus 101](https://about.disqus.com/disqus-101)
- [Discuss Disqus](https://disqus.com/home/channel/discussdisqus/)
- [Case Studies](https://about.disqus.com/case-studies)
- [API](https://disqus.com/api/docs/)
- [Logos](https://disqus.com/brand/)

- [History](https://disqus.com/about-us/#history)
- [Mission](https://disqus.com/about-us/#mission)
- [Culture](https://disqus.com/about-us/#culture)

- [How Does Disqus Work?](https://help.disqus.com/en/articles/1717050-how-does-disqus-work)
- [Community Tips](https://help.disqus.com/en/collections/191659-community-tips)
- [Increase Engagement & Retention](https://help.disqus.com/en/articles/1717197-how-to-increase-reader-engagement-and-retention)
- [Moderating 101](https://help.disqus.com/en/articles/1717078-moderating-101)
- [Developers](https://help.disqus.com/en/collections/191735-developer)
- [Other Integrations](https://help.disqus.com/en/collections/191781-other-integrations)

[![Disqus](https://a.disquscdn.com/next/710d860/marketing/assets/img/brand/disqus-logo-blue.svg)](https://disqus.com)

© 2026 Disqus [Cookies](https://help.disqus.com/en/articles/1944034-cookies-and-data-recipients) [Terms](https://help.disqus.com/customer/portal/articles/466260-terms-of-service) [Privacy](https://help.disqus.com/customer/portal/articles/466259-privacy-policy)  Cookie Preferences [Do Not Sell or Share My Info](https://disqus.com/data-sharing-settings/)

[Disqus on Facebook](https://www.facebook.com/disqus/) [Disqus on X (Twitter)](https://twitter.com/disqus) [Disqus on Instagram](https://www.instagram.com/disqus) [Disqus on LinkedIn](https://www.linkedin.com/company/disqus)