oscar001
Forum Replies Created
-
Hi,
I’ve read and re-read the post you referenced, however I’m still a little confused. The posts says:
"In non-connected state: You can still add scripts to the theme and block it prior to consent using the plugin dashboards’ Cookie Manager-> Add Cookie-> Advanced settings. You only need to add the pattern that identifies the script to the ‘Script URL Pattern’ field."
The Info box tooltip within the Advanced Settings says I just need to specify “googletagmanager.com” in the Script URL Pattern but my question is where or how do I add the actual gtag tracking script to the site? I.E
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config','XXXXXXXX'); </script>
Where would I add that in from within your plugin?
Thanks
I managed to resolve the issue. (Complete schoolboy error on my part).
For anyone coming across this issue in future, my issue was simply down to a User Role Permissions error.
I forgot to reset the EDITOR role back to its default values when I was initially testing various user role permissions with the Editor role. The capability that I forgot to add back in was the “aioseo_manage_seo”.