How to customize disqus comments?

How to customize disqus comments ?
There is an example code:

<div id="disqus_thread"></div>
<script type="text/javascript">
 /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
 var disqus_shortname = 'my-short-name'; // required: replace example with your forum shortname
 var disqus_identifier = '[*id*]';
 var disqus_title = '[*pagetitle*]';
 var disqus_url = '[(site_url)][~[*id*]~]';


 /* * * DON'T EDIT BELOW THIS LINE * * */
 (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);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>


I can not understand, when I change the var disqus_shortname it works great.

Working withyii2and I want to make the header:
var disqus_title = <?= $post--->title?> ; (that is the title of the post), and similarly, id:
var disqus_identifier = <?= $post--->id?>';(id of post in database)


What am I doing wrong ??
How do I properly set up ?
July 8th 19 at 15:21
1 answer
July 8th 19 at 15:23
Quotes can forget for js variables?
that seems to be no! put your shortname - works ! - tristian_Maggio commented on July 8th 19 at 15:26

Find more questions by tags JavaScriptDisqusPHPYii