Im trying to get a flow on my website going where a hash with a unique name at the end of a url determines what Disqus thread my site loads up.
At the moment I’ve got this.
var disqus_shortname = "vijo-threads";
(function() {
var dsq = document.createElement("script");
dsq.type = "text/javascript";
dsq.async = true;
dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js";
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
})();
I’d like to know since my trys at doing this have failed.