then called that script with the ltng:require tag
pasted the iFrame tag, obviously without the noscript around it because lightning doesn't support noscript tag
but when I activate the preview mode in Tag Manager and reload the page nothing happens and in the console this error appears
I've tried to solve this issue adding https://www.googletagmanager.com to the CSP trusted sites such as described in this link https://help.salesforce.com/articleView?id=csp_trusted_sites.htm&type=5
also downgraded the lightning component api version in order to disable lightning locker for the component https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_ls_disable.htm
and disabled stricter CSP restrictions https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_csp_stricter.htm
but the error still occurs do you have any idea or is there something am I missing?