최근 검색


최근 검색 없음

chat widget error: Can't find key in query string

답변함


2021년 9월 13일에 게시됨

When loading the script tag async we get the following error:

vendors~rollbar.noconflict.umd.min.js:1 Key is missing from snippet
snippet.js?key=xxxx…xxxx:1

Likely the widget can't find the script - probably because the scripts are loaded in different order then they appear in the source code, so the widget code tries to get the key from the wrong script tag.

Can we provide the Zendesk key elsewhere? Like in a global variable ? example
<script>
ZendeskKey="xxxxxxx";
</script>

 

---

#chat
#chat-widget
#chat-snippet
#bug
#JavaScript


0

3

댓글 3개

image avatar

Gabriele F.

Zendesk Customer Care

Hi Joan!

If the key is actually in that snippet.js URL parameter, that seems unlikely. You can copy the script tag from the admin settings to page's document head and then add the async attribute to it.

This will ensure two important things:

1) You got the correct key
2) The ze-snippet ID is present

Hope this will help!

Kind regards.

Gabriele | Customer Advocate | EMEA
support@zendesk.com

0


Another problem was that an optimization/minifier plugin had removed  id="ze-snippet" from the script tag. With the  id="ze-snippet" back on the script tag it now works.

0


image avatar

Gabriele F.

Zendesk Customer Care

Great! Glad this is sorted out!

Kind regards,

Gabriele | Customer Advocate | EMEA
support@zendesk.com

0


댓글을 남기려면 로그인하세요.

추가 콘텐츠

자세히 알⁠아⁠보⁠기

원하는 정보를 못 찾으셨나요?

새 게시물