Copy link to clipboard
Copied
Environment
Goal
Problem
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
The Big Ask
This may be a candidate for a feature/enhancement request, but I thought I'd see if anyone in the community had a solution first.
Copy link to clipboard
Copied
For context, here are 2 examples of how other platforms (Hubspot and WordPress) provide/generate the PAGE_URL and PAGE_IDENTIFIER information.
Copy link to clipboard
Copied
You could set this.page.url = location.origin + location.pathname, which should set it to the full path without query strings or hash (bookmarks).
And the page identifier sounds a lot like a map number. So if you set up a map file, perhaps a friendly developer could write a script to plug the map number into your discus script.
Copy link to clipboard
Copied
Amebr,
Thank you for the response - the map ID suggestion sounds promising. I think I have enough info I can take this to one of our developers for help with scripting. I'll post updates back here as I have them.
Copy link to clipboard
Copied
Did that work?
Copy link to clipboard
Copied
We never implemented the automated scripting side of this. However, I did get it working as a proof-of-concept. We're currently making changes to our hosting environment - completely different enviro. Once the dust settles from that effort, I'd like to revisit this, as we received positive feedback from our test audience.