Title: Double Reporting
Last modified: December 13, 2024

---

# Double Reporting

 *  Resolved [ridings3d](https://wordpress.org/support/users/ridings3d/)
 * (@ridings3d)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/double-reporting/)
 * I had noticed that a few of the websites I manage was having issues double reporting
   and it seemed to be from people that were revisiting their thank you page across
   multiple days. I have nailed the issue down to the file “GlobalSiteTag.php” located
   in the src > Google folder. The issue resides on line 358 and has to do with 
   the strict checking of the returned meta key value. The function “get_meta” will
   return a string and not an integer in this case because the database for meta
   values is set as text. To fix this issue, Line 358 – 360 in the file “GlobalSiteTag.
   php” should change from:
 *     ```wp-block-code
           if ( ! $order || 1 === $order->get_meta( self::ORDER_CONVERSION_META_KEY, true ) ) {
               return;
           }
       ```
   
 * To:
 *     ```wp-block-code
           if ( ! $order || '1' === $order->get_meta( self::ORDER_CONVERSION_META_KEY, true ) ) {
               return;
           }
       ```
   
 * To stay consistent, the line 363 should also be changed to a string instead of
   a integer.
 * Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/double-reporting/#post-18198412)
 * Hello [ridings3d](https://wordpress.org/support/users/ridings3d/),
 * Thank you for contacting WooCommerce support.
 * I appreciate your effort and time investigating the issue and sharing the solution
   here.
   To confirm, are you using the latest version of Google for WooCommere **
   2.9.2**?
 * Also, have you reported this issue earlier on this forum or [GitHub](https://github.com/woocommerce/google-listings-and-ads/issues)?
   
   I would like to learn more about this issue.
 * Looking forward to your response. 🙂
 *  Thread Starter [ridings3d](https://wordpress.org/support/users/ridings3d/)
 * (@ridings3d)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/double-reporting/#post-18201039)
 * Hello there!
 * Yes, we are running 2.9.2 and no I have not reported this issue on GitHub. I 
   was unaware at the time of the GitHub repo.
 * Thanks!
 *  [Mahfuzur Rahman](https://wordpress.org/support/users/mahfuzurwp/)
 * (@mahfuzurwp)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/double-reporting/#post-18203196)
 * Hello [@ridings3d](https://wordpress.org/support/users/ridings3d/),
 * Thank you for sharing these details and your findings regarding the strict comparison
   issue in the **GlobalSiteTag.php** file. It does appear to be a potential bug,
   as WooCommerce meta values are stored as text, which can cause strict comparison(
   1 === ‘1’) to fail.
 * To help move this forward, could you please submit a bug report on our GitHub
   repository here:
 * [https://github.com/woocommerce/google-listings-and-ads/issues](https://github.com/woocommerce/google-listings-and-ads/issues)
 * Before submitting the report, I recommend testing this further to confirm the
   behavior. This will ensure the development team has all the necessary information
   to address the issue effectively.
 * Thank you. Let us know if you have anymore questions.
 *  Thread Starter [ridings3d](https://wordpress.org/support/users/ridings3d/)
 * (@ridings3d)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/double-reporting/#post-18203534)
 * Will do! Thank you!
 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/double-reporting/#post-18381795)
 * Hi there!
   If you have a few minutes, we’d love if you could leave us a review:
   [https://wordpress.org/support/plugin/google-listings-and-ads/reviews/](https://wordpress.org/support/plugin/google-listings-and-ads/reviews/)
   Thank you

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Double Reporting’ is closed to new replies.

 * ![](https://ps.w.org/google-listings-and-ads/assets/icon.svg?rev=2775988)
 * [Google for WooCommerce](https://wordpress.org/plugins/google-listings-and-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-listings-and-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-listings-and-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/google-listings-and-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-listings-and-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-listings-and-ads/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/double-reporting/#post-18381795)
 * Status: resolved