Hi there,
I use the sample: https://github.com/MyPureCloud/public-stats-service but I have problem with the connection, the chat show the message : Chat is unavailable due to an authorization error.
I have created the OAuth and widget but the issue continue, I set the org name , queue, org id, etc.but the issue continue too.
I haven't tried this sample myself but here are few comments.
The sample: https://github.com/MyPureCloud/public-stats-service is rather old and relates to Widgets v1 (PureCloud WebChat - v1).
Since it was published, there have been some changes. And one of them is that Widgets Deployments are now enforced/required.
(what you did in the screenshot above).
As I said, I haven't used this sample, but I think one of the things you might be missing are some attributes to be added in the "script" element for jsapi-v1.js (resulting from Widgets Deployments enforcement).
The org-guid (or orgGuid) is the Organization ID you can find in PureCloud Admin - Account Details - Organization Settings, in the Organization Details tab (Organization ID under Advanced).
I think the orgName corresponds to the Organization short name.
Finally, the orgId is the organization numeric ID. I am not sure where this one can be found in PureCloud admin. But I know it is the org ID that appears at the top of the WebChat window in Developer tools: https://developer.mypurecloud.com/developer-tools/#/webchat