• Resolved ExtraPaul

    (@extrapaul)


    Hello;
    I would like to anonymize IP address in Gtag.
    Documentation says that I must insert this line :

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

    So I copy this line in the Custom GA Code field.
    But when saved, the <GA_MEASUREMENT_ID> string is removed and the result is

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

    I tried to escape bracked : \< and \>, but has no effect.

    The page I need help with: [log in to see the link]

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

    (@specialk)

    <GA_MEASUREMENT_ID> is not literal. It is telling you to include the actual measurement ID, which will be an alphanumeric string that will not include any brackets.

    • This reply was modified 4 years, 1 month ago by Jeff Starr. Reason: spelling
    Thread Starter ExtraPaul

    (@extrapaul)

    Oh sorry !
    Thus the solution is simple : add the text {'anonymize_ip': true} in Custom Tracker Objects field.

    Thank you for your rapid response.

    Plugin Author Jeff Starr

    (@specialk)

    Cheers!

    Feel free to post again if any further issues, questions, etc.

    • This reply was modified 4 years, 1 month ago by Jeff Starr.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Impossible to set IP anonymization with Gtag’ is closed to new replies.