Commit Graph

32 Commits

Author SHA1 Message Date
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
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
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 a4e6b48aa3 Track when a coupon is created/updated 2020-03-24 11:49:00 +10:00
Rebecca Scott 928529880d Track viewing an order 2020-03-18 13:14:31 +10:00
Timmy Crawford 5d4e3ced65 Convert js filter to underscores too, to match wc-admin 2020-03-17 16:09:37 -07:00
Timmy Crawford 356e5a562f Protect _ui and _ut props, move JS filter below product count 2020-03-16 17:00:25 -07:00
Timmy Crawford 2c8195ca8a remove console.log 2020-03-13 17:09:13 -07:00
Timmy Crawford 5880ef902d Add ability to filter props for js-based tracks. 2020-03-13 16:31:06 -07:00
Rodrigo Primo f06ad5d78a Replace removed WordPress.Security.NonceVerification.NoNonceVerification
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:

```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```

(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31))

This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Paul Sealock 7af9d1813d Tracks: Add coupons view events 2019-07-05 16:46:58 +12:00
Rodrigo Primo 9325e233d7
Merge pull request #23190 from woocommerce/tracks/status-events
Tracks: Status page events
2019-07-04 15:21:07 -03:00
Claudio Sanches 91a8592ebb Fixed conditional logic 2019-05-22 20:16:10 -03:00
Paul Sealock c74d5b30ca Tracks: use woocommerce_apply_user_tracking and woocommerce_apply_tracking 2019-05-22 09:18:34 +12:00
Jeff Stieler 13e40cdee7 Remove total revenue from Tracks events.
Query to calculate is far too expensive and doesn’t seem to ever get cached with large datasets.
2019-04-15 09:37:34 +02:00
Paul Sealock 2d244a8047 Tracks: Status page events 2019-04-02 16:51:48 +13:00
Jeff Stieler 7caba832f6
Refactor Tracks classes to remove singletons and static methods. (#22930) 2019-03-04 17:30:01 -07:00
Jeff Stieler c22c3aafa2
Track settings changes. (#22810)
* Track settings changes.
2019-03-04 15:37:59 -07:00
Joshua T Flowers 17b786e500 Tracks: Move tracking script to make available on page load (#22914)
* Filter wc queued js to add tracking script outside of jQuery

* Add tracking script directly to footer

* Move empty tracking function to admin footer hook
2019-03-04 14:16:05 +08:00
Paul Sealock 37d3fff3d6
Merge pull request #22807 from woocommerce/add/tracks-gross-revenue
Add gross revenue to Tracks base data.
2019-03-04 09:35:37 +13:00
Joshua T Flowers e53724832d
Tracks: Add tracking event when OBW is started (#22877)
* Check if current step matches event before firing

* Move step check to switch statement

* Track when the OBW has started

* Rename Jetpack activation tracking method

* Remove duplicate tracking optin check

* Track when option to track is udpated in OBW

* Check if tracking is actively being opted into in is_tracking_enabled()

* Move tracking start check into WC_Admin_Setup_Wizard_Tracking

* Clean up tracking opt-in check logic
2019-03-01 11:12:30 +08:00
Joshua T Flowers 9f1b111692
Tracks: Add store setup event in OBW (#22860)
* Add tracking to store setup OBW

* Check if current step matches event before firing

* Move step check to switch statement

* Extract save events into separate method
2019-02-28 11:28:07 +08:00
Jeff Stieler fe841ecc0b Add gross revenue to Tracks base data. 2019-02-26 16:31:26 +13:00
Jeff Stieler 41e79ace80 Add Tracks events for product import start and finish. 2019-02-25 11:36:39 +13:00
Jeff Stieler 5c414507f9
Add Tracks events for product import start and finish. (#22787)
* Add Tracks events for product import start and finish.

* Move tracks event firing code into classes grouped by category/kind.

* Fix PHPCS warnings/errors with product and importer event tracking.

* Include products count in base Tracks data. (#22791)

* Add extensions page view tracking. (#22803)

* Add extensions page view tracking.

* Add tracking for extension searches. (#22804)
2019-02-21 15:45:43 -07:00
Claudio Sanches 9ca8f97de3
Merge pull request #22792 from woocommerce/fix/product_edit-name
Fixt product_edit to match the event in the spreadsheet
2019-02-21 19:37:15 -03:00
Paul Sealock 49f601cc75 Tracks: Add a PHP client 2019-02-22 10:11:39 +13:00
Paul Sealock e4cf8a632b Fixt product_edit to match the event in the spreadsheet 2019-02-21 14:05:35 +13:00
Paul Sealock 1b62228faf Tracks: Add a PHP client 2019-02-20 11:15:33 +13:00