Add script before footer

Please share this code so we are able to help you using it.