Currently the only possible way i can think of is overwriting the whole AnalyticsCookiesCategory class since the script-tag is hard-coded there.
To anonymize the ip address (which is required by law in germany at least) the gtag config should also include a third parameter.
So we need gtag(\'config\',\''.$id.'\', { \'anonymize_ip\': true }) instead of just gtag(\'config\',\''.$id.'\')
Currently the only possible way i can think of is overwriting the whole AnalyticsCookiesCategory class since the script-tag is hard-coded there.
To anonymize the ip address (which is required by law in germany at least) the
gtag
config should also include a third parameter. So we needgtag(\'config\',\''.$id.'\', { \'anonymize_ip\': true })
instead of justgtag(\'config\',\''.$id.'\')
is this something we can have for the future?