Title: Prevent double transactions
Last modified: August 30, 2016

---

# Prevent double transactions

 *  Resolved [Eliran](https://wordpress.org/support/users/bstyler/)
 * (@bstyler)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/prevent-double-transactions/)
 * Greetings,
 * You have a very nice plugin, thank you for your efforts!
 * Recently, I realized that I see old transactions being reported to my eCommerce
   tracking reports on Google Analytics.
 * After some debugging I realized that if a client is browsing again to his order
   confirmation / order complete page for example:
    [http://WEBSITE/order-complete/4706/?key=wc_order](http://WEBSITE/order-complete/4706/?key=wc_order)(
   And the remaining URL parameters) then another transaction is being sent using
   the dataLayer.push which leads to transaction duplicates and inaccurate data 
   in Google Analytics.
 * My question is if there is a way to prevent that from happening?
    for example,
   in direct traffic with no referrer to the “order completed” confirmation page,
   the javascript / dataLayer.push command will not be generated.
 * I hope that my issue is clear 🙂
 * I look forward to hearing from you! Many thanks.
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/prevent-double-transactions/#post-6290365)
 * Hi,
 * This is a known bug and will be fixed in the next version which is coming within
   some days 🙂
 * Thanks for your patience.
 * Thomas
 *  Thread Starter [Eliran](https://wordpress.org/support/users/bstyler/)
 * (@bstyler)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/prevent-double-transactions/#post-6290366)
 * Hi Thomas,
 * That’s so great to hear, many thanks!

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

The topic ‘Prevent double transactions’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [ecommerce tracking](https://wordpress.org/support/topic-tag/ecommerce-tracking/)
 * [gtm](https://wordpress.org/support/topic-tag/gtm/)

 * 2 replies
 * 2 participants
 * Last reply from: [Eliran](https://wordpress.org/support/users/bstyler/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/prevent-double-transactions/#post-6290366)
 * Status: resolved