How can I add this script to my website?
Unanswered
American black bear posted this in #help-forum
American black bearOP
I am trying to embed a chatbot to my website. Usually adding the script to the HTML works fine, but I can't make it work with a next.js website. Here's what the embed script looks like:
<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script src="https://mediafiles.botpress.cloud/botID/webchat/config.js" defer></script>
I tried the methods below, doesn't seem to work:
https://frontend-digest.com/how-to-import-third-party-scripts-into-nextjs-d2f353a6226f
https://web.dev/articles/efficiently-load-third-party-javascript
Thanks!!
<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script src="https://mediafiles.botpress.cloud/botID/webchat/config.js" defer></script>
I tried the methods below, doesn't seem to work:
https://frontend-digest.com/how-to-import-third-party-scripts-into-nextjs-d2f353a6226f
https://web.dev/articles/efficiently-load-third-party-javascript
Thanks!!