Hello,
If you need to add the script code to footer or header then you may try Insert headers and footers plugin.
Regards