Disqus Event Listener

Track when website visitors leave you a comment on your Disqus comment widget. With Google Tag Manager and the Disqus event listener, you can push this activity into your analytics tools such as Google Analytics, Piwik Pro, Mixpanel, etc.

How to track Disqus Interaction with google tag manager

You can measure when users leave a comment in your Disqus comment section and have the data pushed to your analytics tools (Google Analytics, Piwik Pro, Heap, Mixpanel, etc.), using Google Tag Manager and the Disqus event listener.

To implement this copy the Disqus event listener code, create a new custom HTML tag in Google Tag Manager, paste the code here and apply these customizations;

// this.page.url = ‘{{Page URL}}’; // Replace PAGE_URL with your page’s canonical URL variable

change {{Page URL}} to the canonical page URL

this.page.identifier = ‘0123456789’; // Replace PAGE_IDENTIFIER with your page’s unique identifier variable

change ‘0123456789‘ to the page identifier

Save your tag and fire on DOM or Window Loaded (Recommended)

The creator of the code is Isaac Abramowitz and can be found here

<script>
var disqus_config = function () {
this.page.url = '{{Page URL}}'; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = '0123456789'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
this.callbacks.onNewComment = [function() {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'disqus_comment'
});
}];
};
</script>

Video of how to use the listener

Related Event Listener

Drip Form

Track your Drip form submission events as conversions using this Drip form event listener, track submission and other form information.

Smartsupp Chat

Measure how users interact with your Smartsupp chat widget and fire your pixels/tags based on certain chat interactions.

Drift Chat

Event listener script that helps you track Drift chat interactions that happen on your website, easily and seamlessly.

download the google tag manager recipe for tracking Disqus Interaction

we make you smarter with data

made with ❤️

The DumbData Team
Before you leave, try out these free tools.
FREE GA4 AUDIT TOOL & UTM AUDIT TOOL