No internet connection
  1. Home
  2. Support

Statistics of comments

By Artur Mikheyankou @amikheyankou
    2019-07-09 07:59:20.070Z

    Hello. I tested the Talkyard comment service and found one feature there. The service is bound to the domain and thus keeps statistics of comments. In other words, if we run it on a domain example.com and then, for some reason, change the domain name, the statistics will disappear comments? (It is about @debiki/gatsby-plugin-talkyard)

    Best regards, Artur.

    • 1 replies
    1. Hi Artur, yes, if you don't specify a discussion id, then, currently the comments are tied to the domain where they get created (e.g. blog.example.com) and won't appear, if you change the address to the blog. — Actually I'm making a change that makes the comments not tied to the domain. Instead, they'll be tied only to the URL path.

      So, after this change, if there're blog comments for this page: https://blog.example.com/page/aaa, and you move the blog to blog.elsewhere.io. Then, the blog post will thereafter be at https://blog.elsewhere.io/page/aaa and since the url path is the same: /page/aaa, the comments will still be there.

      Is this how you want things to work? (i.e. comments being tied to the url path only. Instead of [server origin + url path].) This change is in my work-in-progress branch over at GitHub, and I have in mind to include it in the next release, in 3 to 4 weeks.

      I'd suggest, though, that you consider adding discussion ids to the blog posts. See: https://www.gatsbyjs.org/packages/@debiki/gatsby-plugin-talkyard/#changing-the-url-of-a-blog-post. Then you can change both the server address, and url paths, and the comments will still be there.