Title: Tomek's Replies | WordPress.org

---

# Tomek

  [  ](https://wordpress.org/support/users/tomalec/)

 *   [Profile](https://wordpress.org/support/users/tomalec/)
 *   [Topics Started](https://wordpress.org/support/users/tomalec/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tomalec/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tomalec/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tomalec/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tomalec/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tomalec/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/tomalec/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tomalec/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Taxes by Date report critical error](https://wordpress.org/support/topic/taxes-by-date-report-critical-error/)
 *  [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/taxes-by-date-report-critical-error/#post-18108356)
 * Hi [@amberwellhealth](https://wordpress.org/support/users/amberwellhealth/),
 * Sorry to hear you struggle with the error. However, I’d like to note, that the
   reports were deprecated long ago, and the amount of support and improvements 
   there may be limited.
 * I was not able to reproduce it on my test environment. But looking, at [the code](https://github.com/woocommerce/woocommerce/blob/a24502fe23350419ed3c28d887eaf38e982c547b/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php#L161-L183),
   I was able to mimic the same error by corrupting/erasing the `post_date` of one
   of the orders. It’s worth double-checking if there is not other plugin, or code
   fiddling with that, or one of the hooks (`woocommerce_reports_get_order_report_data`,`
   woocommerce_reports_get_order_report_query`, `woocommerce_reports_get_order_report_data_args`).
   
   To help us debug it further, could you try to narrow down the range of orders,
   by filtering a single date that produces this error? Like: `/wp-admin/admin.php?
   page=wc-reports&tab=taxes&report=taxes_by_date&range=custom&start_date=2024-10-
   30&end_date=2024-10-31`. Then, check those orders for something suspicious.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Add to cart error](https://wordpress.org/support/topic/add-to-cart-error-12/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/add-to-cart-error-12/#post-18067620)
 * Hi, I strongly recommend running 2.1.4+. We added this error message there, to
   help you identify the issue. With the versions <2.1.4, the issue you face would
   still persist – our extension will not get the product ID and will not add product
   data for tracking – but without the error message it could go unnoticed.
 * > with your plugin activated but no “Google Analytics Tracking ID” entered everything
   > works as expected
 * Without your Google Analytics Tracking ID entered, our plugin is effectively 
   disabled. So, I’d say it’s rather a conflict, and the Astra theme is tempering
   with an add-to-cart button.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google for WooCommerce] Remove consent mode](https://wordpress.org/support/topic/remove-consent-mode/)
 *  [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/remove-consent-mode/#post-17849933)
 * Hi [@matilavag](https://wordpress.org/support/users/matilavag/) ,
 * What tool do you use to inspect gtag? I use [https://tagassistant.google.com/](https://tagassistant.google.com/)
   and I tried reproduce your case connecting to my store via VPN from Chile and
   it looks like that [https://snipboard.io/D4bYEw.jpg](https://snipboard.io/D4bYEw.jpg).
   So even though the consent mode configuration code for European regions is present,
   it does not affect visitors from Chile. All consent states are left not set.
   
   Here, you can see it for a visitor from EU [https://snipboard.io/y86l7I.jpg](https://snipboard.io/y86l7I.jpg)
 * Therefore I’m afraid the underlying problem may be elsewhere, not just in consent
   mode. Have you checked the browser console for any JS errors?
 * To double-check if the consent configuration is the problem, you can temporarily
   add a snippet to explicitly grant consent for Chile:
 *     ```wp-block-code
       add_filter(    'woocommerce_gla_gtag_consent',    function( $old_config ) {        $additional_config = "        gtag( 'consent', 'default', {            analytics_storage: 'granted',            ad_storage: 'granted',            ad_user_data: 'granted',            ad_personalization: 'granted',            region: ['CL'], // <--------- SET IT TO YOUR REGION        } );        ";        return $old_config . $additional_config;    });
       ```
   
 * [https://snipboard.io/T1i37P.jpg](https://snipboard.io/T1i37P.jpg)
 * Also, you can temporarily remove the consent config completely. with `return '';`
   
   However, I would not recommend using those on a live store, as Google requires
   this setting for the EEA and a few other regions. Plus, it may have some legal
   consequences, which I cannot advise you on.
 * —-
 * BTW, I recommend updating to the latest version of the GL&A, as we recently improved
   the integration with other consent-related plugins via the WP Consent API.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google for WooCommerce] Google Consent mode](https://wordpress.org/support/topic/google-consent-mode-15/)
 *  [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/google-consent-mode-15/#post-17849842)
 * Also, please use the latest version (`2.7.4`) where we improved the integration
   with other extensions through [the WP Consent API](https://wordpress.org/plugins/wp-consent-api/)
   plugin.
    -  This reply was modified 1 year, 10 months ago by [Tomek](https://wordpress.org/support/users/tomalec/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Fatal Error on WooCommerce 8.9](https://wordpress.org/support/topic/fatal-error-on-woocommerce-8-9/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-error-on-woocommerce-8-9/#post-17832646)
 * Hi there,
 * We fixed this issue recently in the `2.1.1` release. Please update, and check
   if it works for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Complianz not compatible](https://wordpress.org/support/topic/complianz-not-compatible/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/complianz-not-compatible/#post-17832640)
 * Hi there,
 * In `2.1.0` to improve the integration with plugins like Complianz, we implemented
   the compatibility with [WP Consent API](https://wordpress.org/plugins/wp-consent-api/).
   This is a plugin that acts as a bridge between plugins. Thanks to that, the Google
   Analytics for WooCommerce should work with other compatible plugins, listed on
   their site. Currentyl, it’s [Complianz GDPR/CCPA](https://wordpress.org/plugins/complianz-gdpr/),
   [Cookiebot](https://wordpress.org/plugins/cookiebot), [GDPR Cookie Compliance](https://wordpress.org/plugins/gdpr-cookie-compliance/).
 * If you’re facing problems with Complianz, first, please make sure you’re running
   the latest version of Google Analytics for WooCommerce (>= `2.1.0`), have the
   Tracking ID set in the setting, and install the WP Consent API.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Consent Mode Issue](https://wordpress.org/support/topic/consent-mode-issue-2/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/consent-mode-issue-2/#post-17538339)
 * I’m not sure yet, what’s the problem on your site. Could you share the URL?
 * Just a guess: If you’re setting your default state by yourself in the theme, 
   then maybe the problem is GA4W overwrites it. You can use [`woocommerce_ga_gtag_consent_modes` filter](https://github.com/woocommerce/woocommerce-google-analytics-integration#consent-mode)
   to set the GA4W’s mode to what you need.
 * Do you know how Moove updates the consent mode? and what do you mean by “it adds
   in GA”?
 * From my brief testing, it seems that GDPR Cookie Compliance’s `gtag('consent','
   update'...)` comes too late after we already track the `view_item_list` and other
   page-load events. The update it long after DOM content is ready and the whole
   document is loaded. Runtime events are working fine.
 * I even tried tweaking the GA4W code, to track its events async 1ms after window`
   load` event, but still, it was too early for GDPR Cookie Compliance’s `update`:/
 * We’re preparing another release with slight improvement towards integrations,
   but I’m afraid we need a bit more investigation to solve this one.
 * Please let me know if it helps, or if you could give more details.
 * ![](https://wordpress.org/cb346539-d918-4658-8b32-1f6ae51ee222)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Google Analytics not recording data](https://wordpress.org/support/topic/google-analytics-not-recording-data/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-not-recording-data/#post-17513138)
 * Hi [@jtyekettle](https://wordpress.org/support/users/jtyekettle/),
   Did you notice
   any errors, in the browser’s console using `2.0`? Did it stop tracking visitors
   only from [EAA](https://en.wikipedia.org/wiki/European_Economic_Area) (Europe),
   or also from the other regions?
 * As per `2.0.0`+ we configured the required Google Consent Mode. The configuration
   by default denies tracking for the visitors coming from EEA, to comply with the
   local law (like GDPR). So, it is somewhat desired to stop tracking that data 
   until a visitor grants an explicit consent.
 * The consent could be updated/granted using another plugin. You can also tweak
   the [default consent mode](https://developers.google.com/tag-platform/security/guides/consent?hl=en&consentmode=advanced#default-consent)
   using [`woocommerce_ga_gtag_consent_modes` filter](https://github.com/woocommerce/woocommerce-google-analytics-integration#consent-mode).
 * Google claims to somewhat fill the gaps in data using their algorithms for visitors
   who didn’t grand the consent.
 * Also note, that this mode is required by Google since March 6th. Plus, rolling
   back to `1.8.14` could help, but non-consensual tracking is violating GDPR.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Consent Mode Issue](https://wordpress.org/support/topic/consent-mode-issue-2/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/consent-mode-issue-2/#post-17513107)
 * Hi [@dabeecher](https://wordpress.org/support/users/dabeecher/),
   Could you please
   note what GDPR cookie plugin you use? So we could check the integration.
 * > your plugin adds gtag and doesn’t talk to the cookie acceptance behaviour
 * That’s true. Our plugin adds `gtag`. But we’re adding it and [using it as a means to “talk to”](https://developers.google.com/tag-platform/security/guides/consent?hl=en&consentmode=advanced#implementation_example)
   other plugins regarding the cookie acceptance behavior.
 * We add the [default consent state](https://developers.google.com/tag-platform/security/guides/consent?hl=en&consentmode=advanced#default-consent),
   then other plugins may [update it](https://developers.google.com/tag-platform/security/guides/consent?hl=en&consentmode=advanced#update-consent)
   using the gtag API, according to the visitor’s interaction with a banner.
 * If that’s not working for you, I’d appreciate more details to be able to investigate
   it deeper.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] Consent Mode issue](https://wordpress.org/support/topic/consent-mode-issue/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/consent-mode-issue/#post-17513002)
 * You can use the existing `woocommerce_ga_gtag_consent_modes` filter. To make 
   Google Analytics for WooCommerce not set any consent modes at all make the filter
   return an empty array:
 *     ```wp-block-code
       add_filter( 'woocommerce_ga_gtag_consent_modes', function ( $consent_modes ) {
          return array();
       } );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] new version is broken](https://wordpress.org/support/topic/new-version-is-broken-7/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/new-version-is-broken-7/#post-17484418)
 * Hi, could you provide more details on what’s broken?
 * **Real-time data differences**
   With 2.0.0, we released support for Google’s Consent
   Mode. We use the new API to block cookies for EEA visitors by default until they
   individually grant consent to follow European GDPR rules.So, the drop in tracked
   visitors may be just a result of not getting data from your European visitors.
   Google claims they would somewhat fill the gaps with modeled data for the visitors
   who didn’t consent. Reverting back to 1.x would result in collecting data without
   visitors’ consent and may have legal implications depending on the local law.
 * You can customize your consent mode setup using a PHP snippet, as mentioned in
   [the extensions README](https://github.com/woocommerce/woocommerce-google-analytics-integration#consent-mode).
 * **`wcgai.trackClassisPages` is not a function error**
 * With the new release, we changed the structure of JS scripts. The error you mention
   may be a result of some caching or a script-defer plugin you use that may reorder
   scripts. See [the similar report](https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/368#issuecomment-1981476757).
 * Make sure any other extension does not change the order & placement of `woocommerce-
   google-analytics-integration` script.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page Optimize] Causes SyntaxError relating to Woo order attribution](https://wordpress.org/support/topic/causes-syntaxerror-relating-to-woo-order-attribution/)
 *  [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/causes-syntaxerror-relating-to-woo-order-attribution/#post-17453865)
 * Hi [@ninetyninew](https://wordpress.org/support/users/ninetyninew/),
   Do you consider
   WooCommerce’s order attribution (OA) to be related based on the presence of `
   wc_order_attribution` in the attached screenshot, or do you have more clues? 
   Like, does disabling OA solve the problem?The error message and the screenshot
   of the source code suggest that the offending code is the one concatenated after
   OA’s code. (AFAIK OA-related JS code does not use `import` statements.)Could 
   you share a few lines more? Could you check and share what’s inside the `./chunks/
   vendor-5edb4194.min.js`?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] More than 39 JS files are loaded on version 8.5.1](https://wordpress.org/support/topic/more-than-39-js-files-are-loaded-on-version-8-5-1/)
 *  [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/more-than-39-js-files-are-loaded-on-version-8-5-1/#post-17373202)
 * Thank you for reporting!
   We’ve made [a fix that reduces the number of scripts loaded](https://github.com/woocommerce/woocommerce/pull/43857).
   It targets the WooCommerce 8.6 release.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] gTag event js error](https://wordpress.org/support/topic/gtag-event-js-error/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/gtag-event-js-error/#post-17236686)
 * The fix was released today with [1.8.10](https://github.com/woocommerce/woocommerce-google-analytics-integration/releases/tag/1.8.10)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Analytics for WooCommerce] gTag event js error](https://wordpress.org/support/topic/gtag-event-js-error/)
 *  Plugin Contributor [Tomek](https://wordpress.org/support/users/tomalec/)
 * (@tomalec)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/gtag-event-js-error/#post-17233098)
 * Hi [@carmelobaglieri](https://wordpress.org/support/users/carmelobaglieri/),
   
   Thank you once again for the report! I submitted the fix, hopefully, we will 
   release shortly.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/tomalec/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tomalec/replies/page/2/?output_format=md)