• Resolved smarx80

    (@smarx80)


    Hi,
    I’ve seen that the anonymize IP flag is only available when using old UA code.
    With GA4 this option is not available in the admin panel, but is supported by google, passing { ‘anonymize_ip’: true } in the gtag config line.

    Will you update your plugin adding this feature?

    Thanks,
    Simone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi Simone, it may be possible. Can you provide a link to the official Google documentation that explains what you’re describing. That way I can take a look and see what’s possible, etc. Thank you.

    Thread Starter smarx80

    (@smarx80)

    Hi Jeff, thank you for your answer.
    There -> https://developers.google.com/analytics/devguides/collection/gtagjs/ip-anonymization

    you can find the documentation that explain how to implement this (in a way similar to analytics.js )

    Thank you for your collaboration.
    Simone.

    Plugin Author Jeff Starr

    (@specialk)

    Perfect thanks. So to set up IP anonymization for “all events” like:

    gtag('config', '<GA_MEASUREMENT_ID>', { 'anonymize_ip': true });

    Add the { 'anonymize_ip': true } part to the plugin setting, “Custom Tracker Objects”.

    Then for the “single event”, I think it’s possible but not sure. Try adding the following line to the plugin setting, “Custom GA Code”:

    gtag('event', 'your_event', { 'anonymize_ip': true });

    ..should do the trick.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Anonymize GA4’ is closed to new replies.