Skip to content
Advertisement

Google analytics v4 gtag: default snippet + debugger extension causes javascript console warning

I have copied the script tags exactly as given by Google Analytics v4, into the <head> section of the site. No other gtag code added yet.

I am using the chrome extensions ‘Google Analytics Debugger’ to test it

In the console output, I get this (G-XXXXXXX where the actual GA v4 property appears):

Processing GTAG command: ["config", "G-XXXXXXX"]
  GTAG Command: "config", target: "G-XXXXXXX", configuration: {}
     Invalid event parameter "_ipe" on event "gtag.config", parameter will not be logged

and further down:

  Sending event "page_view" to undefined

Here is the snippet:

<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-XXXXXXX');
</script>

Is it possible something is not set up correctly in Analytics?

Advertisement

Answer

I wouldn’t trust an outdated extension for debugging.

enter image description here

Either use the network tab to debug your calls, or if you want some convenience – use Adswerve’s datalayer inspector extension instead of what google made.

If the issue persists, try downloading your GTM container and look for “_ipe”. Make sure it’s not your code in GTM. That is, of course, if you have any logic deployed in GTM.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement