FeatureFuel
I tried: Adding it to static/index.html \u2014 doesn\u2019t show up. Adding via in index.tsx \u2014 still not in final HTML. Injecting in AuthenticatedLayout.tsx and Header.tsx \u2014 no effect. How can I properly inject a
1

How to insert <script> into <head> on all pages?

Source: outline/outline#9466 · opened by @Romandbr
Hi Outline team,

I need to add a custom tracking script to the <head> of every page:

html
Copy
Edit
<script src="xxx" data-s="OUTLINE"></script>
I tried:

Adding it to static/index.html — doesn’t show up.

Adding via <Helmet> in index.tsx — still not in final HTML.

Injecting in AuthenticatedLayout.tsx and Header.tsx — no effect.

How can I properly inject a <script> into the <head> so it appears on all pages (SSR or CSR)? Any advice would be appreciated!

Thanks!

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests