Hi Marko,
Thank you for your response.
I am indeed using the plugin you linked. This plugin has a built in check to determine if pages are AMP proof (see screenshot). If not the plugin will remove the incompatible code. In this case the script tag. This is a screenshot of the full error message it shows, which I also posted in the previous post.
I am using the standard theme mode of the AMP plugin and i am not using any custom settings.
btw: it seems that the plugin (and AMP) still works fine after the script tag is removed by AMP, so this is not a huge disaster. However AMP display’s a warning in the wordpress dashboard and Search Console. I prefer to get rid of the warning since this is a client website.
Let me know if you need any more info and thanks again!
Kind regards,
Justin