閱讀Zopim(又名的Zendesk聊天)的the documentation:
API調用必須插入在線聊天腳本後並在$ zopim包裹(函數(){...})
所以我有一個在Zopim腳本的HTML head
部分:
<script>/*<![CDATA[*/window.zEmbed||function(e,t){ ... }("https://...);
/*]]>*/</script>
然後我說這個在HTML文檔的末尾:
$zopim(function() {
$zopim.livechat.setName('Logged in name');
$zopim.livechat.setEmail('[email protected]');
});
和控制檯說:
$ zopim沒有定義
我想我已經遵循正確the instructions。我錯過了什麼?
你解決了這個問題嗎?我也有同樣的問題 –
不。我寫了一個超時的醜陋黑客攻擊,我會將其作爲回答 –