How do I write inline javascript early in the head
of one specific page.
I assume I should use a CB Auto Action of:
- type: code
- trigger: onBeforeCompileHead
- Method: javascript(inline).
But there's no way (that I can see) to assign such an action to one specific page?
Hacked workround: I have used the above approach, but wrapped my code in an 'if' that matches the path of the specific page. But this surely can't be the proper approach, because it adds the code to every page, including backend pages.