• Resolved krotkolapka

    (@krotkolapka)


    I’m using the plugin “WooCommerce Google Analytics Integration” together with Tag Manager.

    My problem is that the page views are recorded twice. How can I disable pageviews using the filter: wc_google_analytics_send_pageview?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @krotkolapka

    I’ve reached out to the developers to ask for some help with this.

    Thanks,

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @krotkolapka

    I’ve confirmed that this will work – add_filter( 'wc_google_analytics_send_pageview', '__return_false' );

    As this reply answers your query, I’ll mark this thread a Resolved.

    Thanks,

    Thread Starter krotkolapka

    (@krotkolapka)

    It works perfectly. Thank you! ??

    Thread Starter krotkolapka

    (@krotkolapka)

    @dougaitken it seemed like the filter works fine, at least there’s no double tracking on shop pages. The new problem is that when I disable page views via filter (I track page views via Tag Manager), then tracking web shop conversions doesn’t work. Transactions from WooCommerce don’t display in Google Analytics.

    I’m having this exact issues. Can you please tell me where I would add the filter?

    add_filter( ‘wc_google_analytics_send_pageview’, ‘__return_false’ );

    thanks

    i have the same problem. Someone found a solution?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable pageviews’ is closed to new replies.