Hi there,
Sorry for my late reply on this, you can add the Google Analytics script to the 3rd party -> Header scripts section. Below you’ll find an example GA script:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Note: After adding a script to the GDPR plugin, you have to remove the hardcoded script from the code, or if you’re using other plugin to add scripts to header and footer, remove the GA script from this plugin.
If you’re not familiar with this, please ask your developer to setup the plugin for you and to remove the scripts from your theme.