Commit Graph

155 Commits

Author SHA1 Message Date
Daniel Rey López 1fc1b604b9
IE 11 compatibility for the site tracking enable function 2021-03-10 11:52:01 +00:00
Rasmy Nguyen 7a4b54ad38 Add section to tracks event props
This adds the Extenstions tab to the event props so we can determine
which tab merchants are installing wcpay from.
2021-02-23 12:25:40 +09:00
Rasmy Nguyen cbb1a540bd Change hook name and add id param to track method
This changes the addon install hook to match the other hooks in the
extensions tracking class. This also adds an addon_id param to the
callback associated with this hook so we can extend this to other
plugins in the future.
2021-02-23 11:34:28 +09:00
Rasmy Nguyen 4ad1465fe3 Add tracks event for WCPay install via addons page
This adds a tracks event for WooCommerce Payments installs via the
wc-addons page.
2021-02-23 11:34:28 +09:00
Timmy Crawford dc6b44fc6f Add woo version as global track prop. 2020-12-18 09:37:10 -08:00
Rodrigo Primo 8ebead165e Replace usages of depracted jQuery.fn.click() event shorthand
This commit replaces all instances in WooCommerce codebase (except included third-party libraries) where jQuery.fn.click( handler ) event shorthand was used. This shorthand was deprecated in jQuery 3.3 (see https://github.com/jquery/jquery/issues/3214). The jQuery documentation was not updated yet (see https://github.com/jquery/jquery-migrate/issues/288 and https://github.com/jquery/api.jquery.com/issues/972).

jQuery.click() was not deprecated and so it was not replaced.
2020-11-18 15:27:46 -03:00
Nestor Soriano 52eed70f04 Add a 'NumberUtil' class with a 'round' method.
There's a number of places in the WooCommerce codebase where the
built-in function 'round' is executed passing a non-numeric value
(not a number and not a string that can be parsed as a number),
for example round(''). In PHP 7 this yields a value of 0, but in
PHP 8 this throws an error.

This commit adds a 'NumberUtil' class with a static 'round' method,
this method checks if the passed value is numeric and if so it just
executes the built-in function, otherwise it returns 0. And all the
calls to 'round' in the codebase are replaced with 'NumberUtil::round'.
2020-10-01 11:08:51 +02:00
Nestor Soriano b1e81d02da Fix code style/sniffer errors in a few files. 2020-10-01 11:08:51 +02:00
Ron Rennick 9ae1ba92c6 remove WC_Admin_Setup_Wizard_Tracking from tracking classes 2020-09-18 15:26:18 -03:00
Ron Rennick 43051a0950 update deprecation versions to 4.6.0 2020-09-18 13:16:46 -03:00
Ron Rennick 8fe3bcb90e rebase to current master 2020-08-28 10:59:43 -03:00
Claudio Sanches 5240682f38 Improve choice of words 2020-08-25 18:03:03 -03:00
Ron Rennick 72df8aecfa updated deprecated version to 4.5.0 2020-08-13 14:46:12 -03:00
Ron Rennick f0ad8a01be merge current master 2020-08-13 14:33:07 -03:00
Claudio Sanches 0d9b6786fd [Tracker] Added order_total to orders_edit_status_change 2020-07-01 18:24:47 -03:00
Ron Rennick aaae319a65 deprecate wc-setup 2020-06-23 15:29:58 -03:00
Claudio Sanches f2be9c7365
Fixed coding standards 2020-06-02 00:01:26 -03:00
Zack Katz 7a7f33f2a1
Fix undefined index PHP warning
![](https://i.gravityview.co/gtGvNE+)
2020-06-01 14:32:19 -06:00
Joshua Flowers b7bca44beb Call callback on tracking script load error 2020-05-19 18:19:19 +03:00
Joshua Flowers 07b1887c2b Use var instead of const 2020-05-18 19:11:29 +03:00
Joshua Flowers ef131029a5 Add function to enable tracking client-side 2020-05-13 17:44:26 +03:00
Joshua Flowers 3f9db6a558 Add property to check if wcTracks is enabled 2020-05-13 16:53:57 +03:00
Joshua Flowers 07087c79a7 Always show tracks function in footer 2020-05-13 16:49:54 +03:00
Christopher Allford 37f0ed27f9
Merge pull request #26409 from woocommerce/add/26381/order-search-tracks
Add tracking event on order search.
2020-05-11 20:04:55 -07:00
Matt Sherman c6fb4aefbc Add `wcadmin_categories_view`, `wcadmin_categories_seach`, `wcadmin_tags_view`, and `wcadmin_tags_search` Tracks events. 2020-05-08 14:08:33 -04:00
Matt Sherman da1dd76a68 Only log `products_search` event if search query is non-empty 2020-05-08 11:20:28 -04:00
Matt Sherman b1a32f4144 Add `wcadmin_products_search` Tracks event. 2020-05-07 21:24:17 -04:00
Matt Sherman df97b1f74e Add `wcadmin_products_view` Tracks event 2020-05-07 18:39:19 -04:00
Timmy Crawford 94bf2eb518 Updates per feedback. 2020-05-07 13:32:45 -07:00
Timmy Crawford 2420b8013d Add tracking event on order search. 2020-05-07 12:05:11 -07:00
vedanshujain fcd4057218 More preventive check for order object in tracks. 2020-04-08 11:43:20 +00:00
vedanshujain e573390356 Add protective checks around order to prevent issues when order is drafted. 2020-04-08 09:56:18 +00:00
Vedanshu Jain 46caa40854
Merge pull request #26085 from woocommerce/add/25849-implement-additional-tracks-take-2
Implement additional tracks take 2
2020-04-07 14:48:19 +05:30
Claudio Sanches e95f34e81e Fixed coding standards and hooks priority 2020-04-06 17:10:09 -03:00
Rebecca Scott 3807b809b4 Localise edit product header in products tracking 2020-04-06 11:22:24 +10:00
Rebecca Scott b8c2ce48b8 Revert "Revert "Implement additional tracks""
This reverts commit c24b565477.
2020-04-06 10:27:45 +10:00
Claudio Sanches c24b565477
Revert "Implement additional tracks" 2020-04-01 11:34:54 -03:00
Rebecca Scott e998cc963c Remove stock level set tracking as this is done in JS now 2020-03-27 15:23:51 +10:00
Rebecca Scott 4136a42e1e Just include the ISO8601 date instead of the full WC_DateTime object 2020-03-27 15:19:18 +10:00
Rebecca Scott 39f654124c Fix event name 2020-03-27 14:54:48 +10:00
Rebecca Scott b31878440e Revert function event 2020-03-27 14:52:24 +10:00
Rebecca Scott 5a45d6a3f2 Use var instead of const/let because IE11 2020-03-27 14:51:26 +10:00
Rebecca Scott 17d5f42228 remove order id from order tracking as it isn't required 2020-03-26 11:12:26 +10:00
Rebecca Scott db6a4c630f fix coupon tracking method name 2020-03-26 11:09:37 +10:00
Rebecca Scott 768a3a3f4f Track product updates using client side scripting to avoid double bouncing on the server 2020-03-26 10:55:31 +10:00
Rebecca Scott 75a9971e9d Fix single_order_view event name 2020-03-25 13:04:54 +10:00
Rebecca Scott 496b602eb4 Remove commented out stock quantity value 2020-03-24 12:09:32 +10:00
Rebecca Scott f580b34aa7 Add tracks for quantity updates 2020-03-24 12:03:36 +10:00
Rebecca Scott a4e6b48aa3 Track when a coupon is created/updated 2020-03-24 11:49:00 +10:00
Rebecca Scott 5eab1cbdba Get product type instead of category IDs and split out virtual and downloadable 2020-03-24 11:48:38 +10:00