#Script disappearing on re-load

2 messages · Page 1 of 1 (latest)

lavish sparrow
#

Hello everyone,

I have a script in my app inside index.tsx which is a chatbot widget compiled with vite :


      <Head>
        <title>IngestGPT</title>
        <meta
          name="description"
          content="..."
        />
        <script
  src="https://ingestgpt.com/chatbot.js"
  id="chatbot-script"
  data-chatbot-identifier="1684300642440"
  defer 
  >
  </script>
      </Head>

It works great in every page of the app, the chatbot is correctly showing.. until I reload the page. When I do so, it just disappears.

This script should be useable by every user of the app, wether they're using next.js or not so the solution should be agnostic.

Would appreciate any help!
I'm so desperate at this point that I'm willing to pay.

lavish sparrow
#

One thing that i noticed is that I have no issue ( the chatbot doesn't disappear) when reloading the landing page, but for every other page it does.