Add the following code just before the </body> tag.
You also need to paste your scripts requiring cookie consent into myScripts() function instead of examples (Google Analytics and Facebook Pixel sample scripts)
The cookieconsent script is provided under the MIT license
Failure to comply with GDPR may result in a fine of up to 4% of the annual turnover. It is defined in article 12 of the Regulation. To get more, please read the GDPR on the EU website