I'm trying to install some javascript in the html that creates the main page. The script must be placed in the html head (before the </head> for the main page, but I'm struggling to find out where that html exists. In addition, I need to condition adding the javascript based on a variable I've created. I'm trying to integrate a cookie disclosure script that will display a cookie use disclosure the first time a user goes to the home page for EU GDPR.
If I put the javascript in the includes/modules/pages/index folder, I assume the javascript will be made available for the main page, but where can I add the test that conditionally adds the script to the html?
Thanks in advance for steering me to the correct file.
Bookmarks