How to run JS with a $

I need to run scripts that push email to Crisp.chat and open chat
Here they are:
/ Example 1: set user email
$crisp.push([“set”, “user:email”, [“john.doe@crisp.chat”]]);

and second
$crisp.push([“do”, “chat:open”])

Script has been ran successfully in editor and it’s even opened a Weweb support chat. But it doesn’t work in published project at all.

Guys be happy for an any advise!

I think that you are not loading your own crisp.
Inside the editor it’s working because you are using our own crips, the weweb one for support on the editor.
This is why this is not working on production, as our crisp is not present on your published app

2 Likes