Stape Conversion Tracking changelog

By Stape, on WordPress.org since 2020. 10,000+ active installs.

Browse code

76 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.

  1. 2.3.12
    • New: a view_item event is pushed when the shopper picks a variation on a variable product page, with the chosen variation as the item.
    • New: login_state is added to the data layer on every page.
    • New: the Cart and Mini-Cart blocks now send remove_from_cart, and add_to_cart / remove_from_cart on quantity changes, with ecommerce.value.
    • New: view_cart sends the cart total as ecommerce.value. cart_total and cart_state are unchanged.
    • Fixed new_customer being true for every guest purchase. A guest with an earlier order under the same billing email is now reported as a returning customer, in both the data layer and the purchase webhook.
    • Fixed remove_from_cart in the classic cart sending item_id as a number and no ecommerce.value.

    And 9 more notes.

    Source Diff vs 2.3.11
  2. 2.3.11
    • Security: hardened the same-origin proxy so it only forwards requests to the configured Stape container. Thanks to Joep van Antwerpen for the responsible disclosure, coordinated by WPScan.
    • Fixed same-origin sites loading no GTM when the custom loader could not be fetched from Stape (an API error, a timeout, or a proxy path saved with a trailing slash, which the API rejects). They now fall back to the standard GTM snippet from googletagmanager.com, the trailing slash is no longer sent to the API, and the same-origin settings show a warning with the reason until the loader is fetched.
    • Fixed the same-origin proxy dropping the trailing slash of the requested path. WordPress trims it before the proxy sees the request, and the container treats /fps// and /fps/ as different URLs, so first-party Google tag requests failed with 400.
    Source Diff vs 2.3.10
  3. 2.3.10
    • Removed the end-to-end test tooling (tests/, bin/, the wp-env and Playwright/Vitest configs) that 2.3.9 accidentally shipped in the plugin package. None of it was loaded by the plugin; the package is back to runtime files only.
    Source Diff vs 2.3.9
  4. 2.3.9
    • Fixed the purchase event firing for checkouts that never completed. It was printed in the footer of whatever page rendered after the order was created, with no status check, so a declined card sent a full-value purchase. It now fires only on the order confirmation page, either the order received endpoint or a custom thank you page that runs woocommerce_thankyou (CartFlows, FunnelKit, Elementor), and never for failed or cancelled orders. Unpaid orders still count: cash on delivery and bank transfer are unpaid at that point and are real sales. Stores whose confirmation page does neither can correct the check with the gtm_server_side_is_order_confirmation_page filter.
    • Fixed add_to_cart not being tracked when the add loads a page: AJAX add to cart turned off, a ?add-to-cart= link, or a single product form that submits normally. The click-time push was lost with the page, so the added item is now stored in the WooCommerce session and pushed on the next page render. Adds over AJAX or the Store API keep pushing at click time. Themes that AJAX-ify these links or forms are covered by the added_to_cart event. Grouped products in the “Add to Cart with Options” block are tracked too.
    • Fixed add_to_cart being lost on WooCommerce Blocks “Add to cart” buttons when the click landed on the button’s inner label instead of the button itself.
    Source Diff vs 2.3.8
  5. 2.3.8
    • Fixed the same-origin proxy reaching the container without the visitor’s IP address, which made analytics report every visitor from the server’s own location. The proxy turns a browser request into a server-to-server one, so the visitor’s address is now resolved from the incoming request and restated upstream in X-Forwarded-For and X-Real-IP. Forwarding headers are trusted for that lookup by default; sites that terminate connections directly can opt out with the gtm_server_side_trust_proxy_client_ip filter, and gtm_server_side_same_origin_client_ip overrides the resolved address outright.
    Source Diff vs 2.3.7
  6. 2.3.7
    • Fixed the same-origin service worker returning a 404. The tag container registers it from a proxied iframe, using a “.js” URL built at runtime that the web server answers from its static file handler before WordPress can proxy it. The registration now goes out as “.load”, like the loader already does.
    Source Diff vs 2.3.6
  7. 2.3.6
    • Fixed a JavaScript error (“item is not iterable”) that broke the add_to_cart data layer event when adding a grouped product to the cart.
    • Tested up to WordPress 7.1.0
    Source Diff vs 2.3.5
  8. 2.3.5
    • Fixed the same-origin loader rewrite so that only the proxied loader URL is changed from “.js” to “.load”, leaving the gtm.js bootstrap event name and third-party URLs untouched.
    • The “.js” to “.load” rewrite is now applied to every generated loader snippet, including the ones refreshed by cron.
    • Fixed same-origin proxy responses that set more than one cookie: repeated Set-Cookie headers are no longer merged into a single malformed header.
    Source Diff vs 2.3.4
  9. 2.3.4
    • Fixed a “Cannot modify header information” warning caused by the cookie keeper running on WP-Cron and WP-CLI requests.
    Source Diff vs 2.3.3
  10. 2.3.3
    • Added a proxy status check that confirms the server_container_url to use in web GTM once the same-origin proxy path is verified.
    • Same-origin settings are now validated before saving: the proxy path must start with “/” and the container API key must match the expected format.
    Source Diff vs 2.3.2
  11. 2.3.2
    • Extended item_brand sources in Advanced parameters: all product taxonomies are now selectable.
    Source Diff vs 2.3.1
  12. 2.3.1
    • Fixed HTML entity serialization in product item_name and item_category fields for Data Layer ecommerce events and webhook item payloads.
    Source Diff vs 2.3.0
  13. 2.3.0
    • Introduction of Same Origin functionality.
    Source Diff vs 2.2.0
  14. 2.2.0
    • Introduction of Dynamic Data Layer configuration.
    Source Diff vs 2.1.48
  15. 2.1.48
    • Fixed purchase event.
    Source Diff vs 2.1.47
  16. 2.1.47
    • Fixed “gtm_server_side_order_id” cookie.
    • Added EU endpoint for custom loader.
    Source Diff vs 2.1.46
  17. 2.1.46
    • Tested up to WordPress 7.0.0
    Source Diff vs 2.1.45
  18. 2.1.45
    • Exclude GTM from loading for specific WordPress user roles.
    Source Diff vs 2.1.44
  19. 2.1.44
    • Added Consent-Based GTM Injection.
    Source Diff vs 2.1.43
  20. 2.1.43
    • Customer loader creation via API is enabled.
    Source Diff vs 2.1.42
  21. 2.1.42
    • Added customer loader via API.
    • Fixed “gtm_server_side_state_cart_data” ajax request.
    Source Diff vs 2.1.41
  22. 2.1.41
    • Tested up to WordPress 6.9.0
    Source Diff vs 2.1.40
  23. 2.1.40
    • Added “cart_state” to DataLayer
    Source Diff vs 2.1.39
  24. 2.1.39
    • Rename “product” to “accountType”
    • Added some cookies to the purchase webhook list
    Source Diff vs 2.1.38
  25. 2.1.38
    • Added “select_item” event
    Source Diff vs 2.1.37
  26. 2.1.37
    • Fix: submit button
    Source Diff vs 2.1.36
  27. 2.1.36
    • Added imageUrl field to dataLayer
    • Added header “x-stape-app-version”
    Source Diff vs 2.1.35
  28. 2.1.35
    • Fix tab Customer Match
    Source Diff vs 2.1.34
  29. 2.1.34
    • Fix tab Customer Match
    Source Diff vs 2.1.33
  30. 2.1.33
    • Add description for tab Customer Match
    Source Diff vs 2.1.32
  31. 2.1.32
    • Added “Customer Match” settings
    • Fix: new_customer value
    Source Diff vs 2.1.31
  32. 2.1.31
    • Request parameters have been changed
    Source Diff vs 2.1.30
  33. 2.1.30
    • Added discount for order item
    Source Diff vs 2.1.29
  34. 2.1.29
    • Tested up to WordPress 6.8.0
    Source Diff vs 2.1.28
  35. 2.1.28
    • Tested up to WordPress 6.8.0
    Source Diff vs 2.1.27
  36. 2.1.27
    • Tested up to WordPress 6.7.1
    Source Diff vs 2.1.26
  37. 2.1.26
    • Send discount amount in webhook
    Source Diff vs 2.1.25
  38. 2.1.25
    • Removed “Stape Analytics support” setting
    Source Diff vs 2.1.24
  39. 2.1.24
    • Added Order paid completed webhook
    • Added cart_hash key to webhooks
    Source Diff vs 2.1.23
  40. 2.1.23
    • Fix purchase event
    Source Diff vs 2.1.22
  41. 2.1.22
    • Tested up to WordPress 6.7
    Source Diff vs 2.1.21
  42. 2.1.21
    • Fix purchase event
    • Removed iframe code
    • Fix remove product from cart
    Source Diff vs 2.1.20
  43. 2.1.20
    • Change JS code
    • Added option “Stape Analytics support”
    Source Diff vs 2.1.19
  44. 2.1.19
    • Added “view_item_list” event
    • “ecomm_pagetype” key added to dataLayer
    • Added Order paid webhook
    Source Diff vs 2.1.18
  45. 2.1.18
    • Added sending ga* cookies to webhook for a new order
    Source Diff vs 2.1.17
  46. 2.1.17
    • Tested up to WordPress 6.6
    Source Diff vs 2.1.15
  47. 2.1.15
    • Removing empty field fields user_data before sending event
    Source Diff vs 2.1.14
  48. 2.1.14
    • Added sending – Decorate dataLayer event name
    Source Diff vs 2.1.13
  49. 2.1.13
    • Custom loader update
    Source Diff vs 2.1.12
  50. 2.1.12
    • Add more cookies to the list of cookies that are sent to the server
    Source Diff vs 2.1.11
  51. 2.1.11
    • Tested up to WordPress 6.4.2
    Source Diff vs 2.1.10
  52. 2.1.10
    • Changed validation for field – Server GTM container URL
    Source Diff vs 2.1.9
  53. 2.1.9
    • Tested up to WordPress 6.4
    Source Diff vs 2.1.8
  54. 2.1.8
    • Changed settings text
    Source Diff vs 2.1.7
  55. 2.1.7
    • Tested up to WordPress 6.3
    Source Diff vs 2.1.6
  56. 2.1.6
    • Fix session bug
    • Added sending cookies
    • Add events: view_cart, remove_from_cart
    Source Diff vs 2.1.5
  57. 2.1.5
    • Fix bug with versions numbers
    Source Diff vs 2.1.4
  58. 2.1.4
    • Fix bug on webhooks tab
    Source Diff vs 2.1.3
  59. 2.1.3
    • Settings field “GTM server container URL” is not required
    Source Diff vs 2.1.2
  60. 2.1.2
    • Added support for WordPress 6.2
    Source Diff vs 2.1.1
  61. 2.1.1
    • Fix user data on purchase event
    Source Diff vs 2.1.0
  62. 2.1.0
    • Added setting “Cookie Keeper”
    Source Diff vs 2.0.2
  63. 2.0.2
    • Updated description and screenshots
    Source Diff vs 2.0.1
  64. 2.0.1
    • Updated description and screenshots
    Source Diff vs 2.0.0
  65. 2.0.0
    • Changed plugin settings page. Added two new tabs – Data Layer and Webhooks.
    • Added integration with WooCommerce plugin.
    • Data Layer tab. Added the ability to track e-commerce events for the Data Layer – Login, SignUp, ViewItem, AddToCart, BeginCheckout. Including user data.
    • Webhooks tab. Added the ability to send Purchase or Refund data to a third-party URL.
    Source Diff vs 1.1.4
  66. 1.1.4
    • Added support for WordPress 6.1
    Source Diff vs 1.1.3
  67. 1.1.3
    • Added support for WordPress 6.0
    Source Diff vs 1.1.2
  68. 1.1.2
    • Improve security
    Source Diff vs 1.1.1
  69. 1.1.1
    • Added support for WordPress 5.9
    Source Diff vs 1.1.0
  70. 1.1.0
    • Added support of Stape custom loader.
    Source Diff vs 1.0.5
  71. 1.0.5
    • Update regarding Gtm Server to Stape rename.
    Source Diff vs 1.0.4
  72. 1.0.4
    • Fixed issues regarding GTM SS debugger
    Source Diff vs 1.0.3
  73. 1.0.3
    • Added support for WordPress 5.7
    • Added more links to how to setup instructions
    Source Diff vs 1.0.2
  74. 1.0.2
    • Added ecommerce events
    Source Diff vs 1.0.1
  75. 1.0.1
    • Assets and texts update.
    Source Diff vs 1.0.0
  76. 1.0.0
    • Init release.
    Source