I'm using the Sourcerer extension to send script to my header tags on specific pages to comply with the new gtag requirements of placing conversion tags in the head tags of pages that you want to count as a conversion in google adwords,

Is there a better way to put a script into the head tags of one page only?

  • 2
    Could you elaborate on what "better" means here? I presume you're already using addScript or addScriptDeclaration in an article or something which you could move from your sorcerer tags into a plugin (where you test the jinput for a match) or a module (which you'd just assign to the menu item) but I don't know if those would count as "better". Dec 1, 2017 at 23:47

1 Answer 1


I love Regular Labs Sourcerer and use it on quite a few websites but if you only want to add code into the header area of a specific page, the easiest way to do this is to use the HeadTag plugin (free) or the Pro version of the Mod HTML module or similar module.

The advantage of the extensions recommended above is that you can select which page or pages the code should be added to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.