Josh Betz
56a82a0b9d
lint
2021-10-14 09:48:55 -05:00
Josh Betz
55dd00852a
Fix function name
...
We were calling this function with a different name
2021-10-14 09:48:54 -05:00
Josh Betz
25bef4b55b
Add mobile data to WCTracker
...
Adds an endpoint to consolidate the data that is needed every time the
app is opened instead of relying on multiple endpoints.
This is also a good place to include some basic mobile data usage in
WCTracker. We track each platform independently, so we can see which
versions of the apps are used on a given site.
2021-10-14 09:48:53 -05:00
Roy Ho
a33f053598
Merge pull request #30514 from woocommerce/remove/wctracker-admin_user_agent
...
Remove tracking of admin User-Agent
2021-08-17 15:27:14 +01:00
mmmaia
804092507d
Remove Tracking of Admin User-Agent
2021-08-16 16:01:15 -03:00
Menaka S
2b79832553
Add base location's state and postcode for tracking
2021-08-12 07:06:27 +05:30
Menaka S
aa375b55a8
Add the setting checkout_login_reminder to be tracked
2021-07-22 13:03:12 +05:30
Rua Haszard
bcadf9d264
add a CLI command for dumping tracker data to terminal
2021-05-31 14:55:29 +12:00
Dan Wyman
721fee7064
Add periods to comments.
2021-05-12 14:23:07 -07:00
Menaka S
e20223f63e
Make the restored function private
2021-05-12 06:48:36 +05:30
Menaka S
ffd6bd4163
Make the new function private
2021-05-12 06:43:36 +05:30
Dan Wyman
d13ce85b66
Set default value for variable
2021-05-12 06:40:53 +05:30
Menaka S
5dfac89d80
Add function to get order details by gateway
2021-05-12 06:40:53 +05:30
Menaka S
20b39bedac
Restore direct SQL queries and functions from WC 5.0
2021-05-12 06:40:53 +05:30
Timmy Crawford
c7a19b538a
Updates per feedback.
2021-02-25 15:19:27 -08:00
Timmy Crawford
47a3d1bfb3
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-02-25 15:19:27 -08:00
Menaka S
778c4e2907
Typecast instead of using strval()
2021-01-27 20:39:41 +05:30
Menaka S
203e5ff2a8
Convert all values collected to string
2021-01-27 18:39:52 +05:30
Menaka S
3a53c31aea
Do not return default values for first/last order times
2021-01-22 10:31:22 +05:30
Peter Fabian
0d7e5d1596
Merge pull request #28584 from woocommerce/add_orders_count_by_gateway
...
Track order counts by payment method
2021-01-19 11:45:02 +01:00
Peter Fabian
31a3b6a7ba
Fixed the deprecation version
2021-01-19 11:10:58 +01:00
Menaka S
950bfcdf39
Deprecate public function and remove private functions
2021-01-11 18:38:17 +05:30
Menaka S
415e1e7bbf
Use site's posts_per_page size
2021-01-10 15:21:06 +05:30
Menaka S
003f4a0acb
Paginate while getting orders to calculate tracker data
2021-01-10 15:17:21 +05:30
Menaka S
baace44f19
Remove the functio to get orders count by payment method
2021-01-08 19:45:46 +05:30
budzanowski
29837c42ff
Refactor.
2021-01-06 11:33:28 +01:00
Menaka S
88dd6473d4
Some fixes for coding standards
2020-12-23 17:05:17 +05:30
Menaka S
092c36b71b
Get order total values
2020-12-23 17:05:10 +05:30
Menaka S
e9804ea717
Add order counts by gateway
2020-12-23 17:05:03 +05:30
Menaka S
1a6835019a
Add order counts by status
2020-12-23 17:04:54 +05:30
Menaka S
0aee0a0848
Use wc_get_orders() to add order dates for tracker
2020-12-23 17:04:32 +05:30
Menaka S
8d83b47c27
Check if post_type is shop_order
2020-12-23 17:04:14 +05:30
Menaka S
36d6ff4c52
Add a function to get order counts by payment method
2020-12-23 17:04:02 +05:30
Peter Fabian
ed9c1e2f93
Update includes/class-wc-tracker.php
...
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-18 14:30:39 +02:00
Peter Fabian
b8670162a7
Added environment type var to WC tracker.
2020-09-16 13:44:36 +02:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Rua Haszard
7b55096288
fix logic errors in get_blocks_from_page:
...
- declare closure use (dependency) on $block_name from surrounding func
- re-index the filtered array so $blocks[0] returns first filtered block
2020-04-07 10:23:03 +12:00
Rua Haszard
bc8553f3d5
refactor block tracker data into standard function:
...
- use parse_blocks to detect block instead of SQL match
- method is now generic, can get data about any block on any woo page
2020-04-07 09:40:22 +12:00
Rua Haszard
3f42fbbeba
remove stale/redundant comments
2020-04-06 12:10:35 +12:00
Rua Haszard
e93bb453e1
use anonymous functions for array_filter when finding cart etc blocks
2020-04-06 12:08:37 +12:00
Rua Haszard
029e27cc25
add customised cart & checkout block settings to wc-tracker snapshot
2020-04-06 11:59:31 +12:00
Rua Haszard
0b79a65829
fix various issues with post_contains_text:
...
- correct table name / prefix
- ensure search string has wildcards before & after
- return value is '0' or '1', fix return logic (was returning 'Yes' no
matter what)
2020-03-17 09:21:31 +13:00
Rua Haszard
8e6f5da2e1
add cart info to tracker:
...
- adds a new key 'cart_checkout'
- adds boolean props indicating if store cart & checkout use blocks or shortcodes
2020-03-16 17:21:58 +13:00
Peter Fabian
3dcb3e0106
Correct the fallback check logic for is_staging_site().
...
There are JP versions where \Automattic\Jetpack\Status exists, but does not
contain is_staging_site() function, so this commit should correctly handle
those cases as well.
2020-02-24 11:01:44 +01:00
Peter Fabian
88b8c006db
Extracted the test to a function and fixed is_callable call.
2020-02-19 14:44:16 +01:00
Peter Fabian
80a5ee087c
Replaced deprecated is_staging_site call.
2020-02-14 12:01:30 +01:00
Christopher Allford
6ad091a9b7
Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages
2020-01-28 21:21:29 -08:00
Gerhard
3581a6c578
Include tracker fields for processing order totals and dates.
2019-11-19 15:10:43 +02:00
Dan Wyman
3edd30757b
Tracker: apply coding standards.
2019-06-06 13:23:11 -07:00
Dan Wyman
7355fadfdd
Tracker: fix review count.
...
Fixes #23848
2019-05-30 12:45:47 -07:00