nuxt-community / google-gtag-module

Enable google gtagjs for NuxtJs
MIT License
147 stars 27 forks source link

Anonymize IP and Duplicated request. #35

Open brunopbarbosa opened 4 years ago

brunopbarbosa commented 4 years ago

Hello,

I've been using this module for nuxt and i have hit a strange issue. We are required to enable the IP anonymization as per our privacy policy, but i'm having trouble as the module is sending duplicate requests to the /collect endpoing, only one of them including the aip parameter. If i set send_page_view to false, the duplicates stop, but the only request sent does not have the api parameter.

Annotation 2020-06-15 154120

Has anyone ever dealt with some similar issue for this?

Thanks Bruno

johnfraney commented 4 years ago

I can confirm that I'm having this issue, too. Here's my config:

['@nuxtjs/google-gtag', {
  id: 'UA-111111111-1',
  config: {
    anonymize_ip: true,
  },
}],