Page Publishing and custom headers?

Someone asked: Does Mermaid work in published pages? - #2 by Tris20

I have similar questions about the approach to Page Publishing — I don’t think head_tag.html works, since I don’t think Ember runs on these pages.

I’d love to add scripts to the <head> or add js in places, for things like posthog to work; ideally I’d love to be able to add posthog, alpinejs, and add some extra functionality in these pages without battling csp