• Hi,

    google-analycator use a wrong implementation of anonymizeIp, which is necessary for german users.

    Wrong:

    ga('create', '<?php echo $uid; ?>', 'auto');
    <?php if(get_option(key_ga_enhanced_link_attr) == ga_enabled): ?>
            ga('require', 'linkid', 'linkid.js');
    <?php endif; ?>
            ga('send', 'pageview');
    <?php if ($need_to_annon == '1' ): ?>
            ga('set', 'anonymizeIp', true);
    <?php endif; ?>

    Correct:

    ga('create', '<?php echo $uid; ?>', 'auto');
    <?php if(get_option(key_ga_enhanced_link_attr) == ga_enabled): ?>
            ga('require', 'linkid', 'linkid.js');
    <?php endif; ?>
    <?php if ($need_to_annon == '1' ): ?>
            ga('set', 'anonymizeIp', true);
    <?php endif; ?>
            ga('send', 'pageview');

    Background: Google requests that IP anonymization/masking takes place as soon as data is received by the Google Analytics Collection Network, before any storage or processing takes place.
    -> Source

    https://wordpress.org/plugins/google-analyticator/

  • The topic ‘wrong usage of anonymizeIp’ is closed to new replies.