Installing disqus on blog question

Excursionist
23 0 5

I want to replace Shopify's article comments with discus. Disqus gives you code to copy to your theme. There are two variables that they ask we change to Shopify language.

 

The first is PAGE_URL:

this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable

After Googling, I think that would be {{ canonical_url }}.

But maybe it should be {{ blog.url }}?

 

The second is PAGE_IDENTIFIER:

this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable

I can't figure out what PAGE_IDENTIFIER should be.

Any idea?

0 Likes
New Member
3 0 0

I've got the same question!

For what it's worth, I think you're right about the canonical bit.

I'm going with page.id for the second bit.

0 Likes
Excursionist
23 0 5

How did you come to page.id? You know, utilizing these variables are only to prevent issues down the road. Even if you put a wrong value, Disqus should still work and you would still be in danger of running into issues in the future. But you wouldn't know that now. I'd rather be 100% sure about this. I'll ask the Disqus support. 

0 Likes