-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional properties to WC Analytics events (#20812)
* Save WC checkout data to WC session for createaccount variable * Support array property * Support returning properties instead of printing it * Add additional properties for woocommerceanalytics_product_checkout event * Add changelog * Remove unnecessary {} * Remove unnecessary device variable * Fix a bug where create_account value is not saved to session -- call save_data * Skip saving the session data when createaccount value is false * Add WC Pay version compatibility check -- action is only available on version 2.9.0+ * Small typo fix * Use Yoda condition * Ensure the object is an instance of WC_Payment_Gateway since the returned data can be changed by a filter * Make sure create_account and guest_account values are Yes or No * Extract out process_event_properties method * Use null as string Co-authored-by: Brandon Kraft <[email protected]>
- Loading branch information
Showing
2 changed files
with
155 additions
and
21 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/update-7301-add-new-wc-analytic-events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: other | ||
|
||
Added additional event properties to woocommerceanalytics_product_checkout and woocommerceanalytics_product_purchase events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters