Inserting javascript code for cookie consent

I am using workflow -> Run javascript in order to insert the below code:

ePrivacy and GPDR Cookie Consent by CookieConsent.com

I have tried using Toolbox plugin but it seems that it does not like including external js files and throws an error.

Any help is appreciated.