• Resolved mareck1234

    (@mareck1234)


    Hi, using GA4 with all options enabled – do not use any other Google ANalytics plugin.

    Whilst on GA 4 I only see users on pages, but no Visits, so for example:
    Page | Visits | Users
    About | 0 | 12
    Home | 0 | 11

    Is this correct?

    Report:

    
    ### WordPress Environment ###
    
    WC Version: 7.1.0
    REST API Version: ? 7.1.0
    WC Blocks Version: ? 8.7.5
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 999 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.20
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.61.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 10.1.48-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.1.0
    WC Database Prefix: wpstg0_
    Total Database Size: 26.41MB
    Database Data Size: 21.50MB
    Database Index Size: 4.91MB
    wpstg0_woocommerce_sessions: Data: 0.03MB + Index: 0.02MB + Engine InnoDB
    wpstg0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpstg0_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpstg0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_actionscheduler_actions: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    wpstg0_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wpstg0_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpstg0_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    wpstg0_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpstg0_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    wpstg0_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wpstg0_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_fv_enteries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_fv_entry_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_fv_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_options: Data: 4.52MB + Index: 0.08MB + Engine InnoDB
    wpstg0_postmeta: Data: 10.52MB + Index: 0.52MB + Engine InnoDB
    wpstg0_posts: Data: 3.44MB + Index: 0.14MB + Engine InnoDB
    wpstg0_redirection_404: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wpstg0_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpstg0_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpstg0_simple_history: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wpstg0_simple_history_contexts: Data: 1.02MB + Index: 1.27MB + Engine InnoDB
    wpstg0_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wpstg0_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpstg0_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wpstg0_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpstg0_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpstg0_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpstg0_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpstg0_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wh_messages: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    wpstg0_wh_message_errors: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_wh_message_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_wh_message_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_yoast_indexable: Data: 0.25MB + Index: 0.28MB + Engine InnoDB
    wpstg0_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpstg0_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpstg0_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpstg0_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 79
    custom_css: 1
    customize_changeset: 10
    elementor_font: 1
    elementor_library: 18
    nav_menu_item: 6
    oembed_cache: 11
    page: 9
    post: 4
    postman_sent_mail: 134
    product: 8
    product_variation: 18
    revision: 440
    shop_coupon: 1
    shop_order: 12
    shop_order_refund: 2
    wp_global_styles: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (21) ###
    
    Autoptimize: by Frank Goossens (futtta) – 3.1.3
    CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.5
    Elementor Pro: by Elementor.com – 3.8.1
    Elementor: by Elementor.com – 3.8.1
    Featured Image Admin Thumb: by Sean Hayes – 1.6
    Header and Footer Scripts: by Digital Liberation – 2.2.1
    LoginPress - Customizing the WordPress Login Screen.: by WPBrigade – 1.6.3
    Post SMTP: by Post SMTP – 2.1.10
    Redirection: by John Godley – 5.3.5
    Safe SVG: by 10up – 2.0.3
    Simple History: by P?r Thernstr?m – 3.3.1
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.22.23
    
    Ajax add to cart for WooCommerce: by hedgehogdigital – 999999991.1.4
    Premmerce Permalink Manager for WooCommerce: by premmerce – 2.3.7
    Product Feed PRO for WooCommerce: by AdTribes.io – 12.0.2
    WooCommerce Google Analytics Integration: by WooCommerce – 1.5.17
    WooCommerce Payments: by Automattic – 5.0.3
    WooCommerce: by Automattic – 7.1.0
    Yoast SEO: by Team Yoast – 19.10
    WP Fastest Cache: by Emre Vona – 1.0.8
    WP Migrate Lite: by Delicious Brains – 2.5.0
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (3) ###
    
    Elementor Safe Mode: by Elementor.com – 1.0.0
    WP Migrate Lite Compatibility: by Delicious Brains – 1.3
    WP Staging Optimizer: by René Hermenau – 1.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: ? Page ID is set
    but the page does not exist
    
    Basket: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Checkout: ? Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.
    My account: #536 - /my-account/
    Terms and conditions: #1052 - /shipping-policy/
    
    ### Theme ###
    
    Name: Hello Elementor Child
    Version: 1.0.1
    Author URL: https://elementor.com/
    Child Theme: ?
    Parent Theme Name: Hello Elementor
    Parent Theme Version: 2.6.1
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: hello-theme-child-master/woocommerce/cart/cart.php version 3.5.0 is out of date. The core version is 7.0.1
    hello-theme-child-master/woocommerce/checkout/review-order.php version 3.8.0 is out of date. The core version is 5.2.0
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ? Next scheduled: 2022-11-25 10:10:20 +00:00
    Options: ?
    Notes: 59
    Onboarding: completed
    
    ### WooCommerce Payments ###
    
    Version: 5.0.3
    Connected to WPCOM: Yes
    Blog ID: 212480410
    Account ID: acct_1M4kHfFh4wSE2PrN
    
    ### Action Scheduler ###
    
    Canceled: 1
    Oldest: 2022-11-17 08:51:09 +0000
    Newest: 2022-11-17 08:51:09 +0000
    
    Complete: 252
    Oldest: 2022-10-25 09:02:41 +0100
    Newest: 2022-11-24 08:16:28 +0000
    
    Pending: 1
    Oldest: 2022-11-25 03:09:22 +0000
    Newest: 2022-11-25 03:09:22 +0000
    
    ### Status report information ###
    
    Generated at: 2022-11-24 10:52:10 +00:00
    
    • This topic was modified 2 years ago by mareck1234.
Viewing 12 replies - 1 through 12 (of 12 total)
  • cazzani

    (@cazzani)

    It happens to us as well using GA4.

    All others events are being tracked (view_item_list, user_engagement, scroll, click, first_visit, session_start`) but page views are NOT being tracked.

    Moreover, the plugin inserts this line twice in the source code

    <script type='text/javascript' src='https://www.googletagmanager.com/gtag/js?id=G-CT9Z7SX9YG' id='google-tag-manager-js'></script>

    https://www.romanticicapricci.it/

    Saif

    (@babylon1999)

    Hello @cazzani,

    Are these views from you (the admin)?

    Please note that page views from admins are not counted as mentioned in the documentation: https://woocommerce.com/document/google-analytics-integration/#testing-analytics

    Cheers!

    Thread Starter mareck1234

    (@mareck1234)

    No, they are standard views

    No. Standard user page views (not logged users) are not counted.

    Digging into the official GA4 documentation:

    https://developers.google.com/analytics/devguides/collection/ga4/views?technology=websites

    If you don’t want gtag.js to send a pageview, set the send_page_view parameter to false.

    That’s probably the reason our page views are not counted in GA4 (they are counted in GA3 because the plugin does not insert that code if the property is of UA-xxxxx type instead of G-xxxxx or GT-xxxxx type)

    I hope this annoyoing bug will be fixed soon.

    In the meantime, I found a workaround that worekd for me.

    In this file:

    wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/GoogleAnalytics.php

    Change Line 77 from
    gtag('config', '" . esc_js( $settings['ga_id'] ) . "', { 'send_page_view': false });"
    to:
    gtag('config', '" . esc_js( $settings['ga_id'] ) . "', { 'send_page_view': true });"
    Hope it helps.

    Hi there @cazzani,

    I hope this annoyoing bug will be fixed soon.

    In the meantime, I found a workaround that worekd for me.

    Thank you for investigating further and sharing your findings.
    Kindly note that the { 'send_page_view': false } does not necessarily mean that page views are not tracked. This only means that the plugin doesn’t track pages automatically (automatically firing the tracking of the page by sending the browser title and the URL).

    For more, check the thread response linked here and the GitHub issue linked here.

    Moreover, the plugin inserts this line twice in the source code

    On this, feel free to check out the response on GitHub, linked directly here.

    cc @mareck1234

    I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.

    Many thanks for the links.

    In our case it’s as simple as that:

    With { 'send_page_view': false } pages NOT being tracked in GA4
    With { 'send_page_view': true } page ARE being tracked in GA4

    Awesome, @cazzani glad to know it’s working fine now. If you have any new question, please create a new ticket.

    Cheers!

    NF

    (@nanasflowers)

    Has this been fixed yet?

    I don’t really want to be changing the plugin code after every update.

    Sorry to pile on here but this does seem like an easy fix for an issue which was a real head-scratcher for me in the past months. Maybe add a tick-box on the settings page to allow users to change this?

    Thanks for the free plugin and all!

    Plugin Support Raif D. a11n

    (@rdeari)

    Hi @aderjanos & @nanasflowers!

    Please feel free to subscribe to the public GitHub issue linked here and once an update is pushed you will receive a notification ??

    I hope this points you in the right direction!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Not sure it’s passing pages Titles correctly on GA4’ is closed to new replies.