Using cloudflare to inject hotjar library into gitbook

I have a product documentation page running on Gitbook. However we also want to track journey and usage of the user when browsing through the doc and Hotjar is already doing that for all other pages.

I’m thinking whether I can use Cloudflare worker to intercept and inject hotjar script in? The issue im getting is Content Security Policy error whereby content security policy is not allowing hotjar code to run (a script tag that pull in another js file from hotjar)