---
title: Improve your Disqus integration with our updated embed code
description: This updated code helps you tighten your Disqus integration so that your site doesn’t create duplicate or invalid Disqus threads.
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)  Improve your Disqus integration with our updated embed code

# Improve your Disqus integration with our updated embed code

 October 20, 2015 | [Danny Matteson](https://blog.disqus.com/author/danny-matteson) [... comments](https://blog.disqus.com/improve-your-disqus-integration-with-our-updated-embed-code#disqus_thread)

![Improve your Disqus integration with our updated embed code](https://blog.disqus.com/hubfs/60.png)

Hello site founders, admins, and moderators!

At Disqus, we do our best to make sure [Engage](https://publishers.disqus.com/engage) and [Reveal](https://publishers.disqus.com/reveal) “just works” when you install it on your website and that the installation process is as painless as possible. It’s always top of mind for us to find ways to simplify your job as a moderator or site developer. This is why we’ve made some important updates to our Disqus embed code –– the snippet of JavaScript that you integrate straight into your site that loads Disqus.

**The bottom line:** This updated code helps you tighten your Disqus integration so that your site doesn’t create duplicate or invalid Disqus threads. If you last updated your install prior to 2014, there are other updates that are critical.

[![Install the Updated Universal Code](https://no-cache.hubspot.com/cta/default/429754/cf56188b-038a-4813-a06f-d9aaf3f09369.png)](https://cta-redirect.hubspot.com/cta/redirect/429754/cf56188b-038a-4813-a06f-d9aaf3f09369)

Or [forward this blog post](mailto:example%40example.com?subject=Please%20install%20the%20latest%20Disqus%20embed%20code&body=%20%20%20Hi%2C%20%20%20%0D%0A%20%20%20%20%20%20%0D%0A%20%20%20Disqus%20has%20updated%20their%20Disqus%20embed%20code%20with%20a%20few%20important%20improvements%20%28explained%20here%20http%3A%2F%2Fblog.disqus.com%2Fpost%2F131581805720%29.%20%20%20%0D%0A%20%20%20%20%20%20%0D%0A%20%20%20Can%20you%20install%20the%20latest%20version%20by%20logging%20in%20to%20your%20Disqus%20admin%20account%20at%20https%3A%2F%2Fdisqus.com%2Fadmin%2Fsettings%2Finstall%2F%3F%20%20%20%0D%0A%20%20%20%20%20%20%0D%0A%20%20%20Thanks%21%20%20%20) to your site developer or admin for help.

## So What’s New?

First off, it’s important to note that this update of the embed code doesn’t affect how Reveal and Engage look on your site. In summary, this update does two main things:

**Recommended Configuration Variables**

The code now includes 2 important configuration variables (url and identifier) that we strongly recommend that you start using if you aren’t already. These variables give your site full control over the Disqus threads your site creates and the data used for those discussions.

For more information on why it’s important to explicitly set your discussion URL and identifier, see [Use Configuration Variables to Avoid Split Threads and "Missing" Comments](https://help.disqus.com/customer/en/portal/articles/2158629-use-configuration-variables-to-avoid-split-threads-and-%22missing%22-comments).

If you decide not to use these configuration variables, this section of the code is commented out and you can simply leave the embed code as is.

**Cleaner JavaScript Code**

The embed code now uses the latest in JavaScript and Disqus best practices and is a bit more compact than the previous version. For example, the forum shortname can be edited directly like //EXAMPLE.disqus.com/embed.js, instead of within a global variable –– this helps reduce the chance that you’ll run into any variable conflicts down the road.

## Other Important Changes If You’ve Never Updated

- Protocol relative embed.js URL means if your site updates to HTTPS, Disqus continues to work
- Key linking scheme update, to ensure the most current assets
- Removed the extra “powered by Disqus” link that loaded in the embed footer
- Proper HTTPS linking to Disqus.com for users who don't have javascript enabled
- Added "nofollow" attributes to footer links to prevent unnecessary crawling

**Have questions about this update?** Leave a comment below, or get in touch with us at [help+embedcode@disqus.com](mailto:help+embedcode@disqus.com).

- [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)