I know this is an old post, but seeing how there are still people asking and this pages ranks so high. Here's what I did in react cra from the admin section of HS.
Chats > Chatbots > More > Inbox Settings > (Channels) Chat > Settings > Tracking > (Scroll to the bottom) I don't host on Wordpress > (Copy tracking code)
From my app:
npm i react-helmet
From my app, wrapped the tracking code in <Helment></Helment>, boom. The chat worked.
How did you integrate chatbot into your react app in first place which may be an SPA. Is there an npm module for chatbot available and any integration pattern to integrate with JSX in any way? or did you just put a script tag in the index HTML file and then passed the id into settings ? Can you please share details?