-
Notifications
You must be signed in to change notification settings - Fork 234
Description
We miss adding some attributes to the existing Mixpanel events for Rocket Insights feature, based on the following document:
https://group-one.atlassian.net/wiki/spaces/PB1/pages/34022227987/Rocket+Insights+usage+data
Event: Rocket Insights Page Added
Code:
wp-rocket/inc/Engine/Tracking/Tracking.php
Lines 236 to 243 in 632aae2
| $this->mixpanel->track( | |
| 'Rocket Insights Page Added', | |
| [ | |
| 'context' => 'wp_plugin', | |
| 'plan_type' => $plan, | |
| 'tracked_pages' => $urls_count, | |
| ] | |
| ); |
Needed attributes:
- Source: From where this page is being added, possible values (need confirmation from @wp-media/product on the name itself because I can see that @nicomollet suggestion to be Page instead of Source):
- dashboard: Homepage button in global score
- post type listing: new column in posts/pages/custom post types (need confirmation from @wp-media/product on the name structure here to have a generic structure to work with all possible values)
- add-on page: The Rocket Insights addons tab (URL form)
- auto-added homepage: Homepage added automatically after the fresh install
Event: Rocket Insights Performance Test
Code:
wp-rocket/inc/Engine/Tracking/Tracking.php
Lines 266 to 276 in 632aae2
| $this->mixpanel->track( | |
| 'Rocket Insights Performance Test', | |
| [ | |
| 'context' => 'wp_plugin', | |
| 'status' => $row_details->status, | |
| 'score' => $row_details->score, | |
| 'retest' => $row_details->data['is_retest'], | |
| 'duration' => time() - $row_details->data['start_time'], | |
| 'plan_type' => $plan, | |
| ] | |
| ); |
Needed attributes:
- Source: What was the source of the test, possible values (need confirmation from @wp-media/product on the name itself because I can see that @nicomollet suggestion to be Page instead of Source):
- dashboard: Homepage button in global score
- post type listing: Test and Re-Test being done from the column view
- add-on page: Test and Re-Test from the Rocket Insights addons tab
- auto-added homepage: Test on homepage added automatically after the fresh install
- performance monitoring: Scheduled test from the Performance Monitoring option
(note that there's already property Is-Retest that we should use when the customer is using Re-Test feature.
I'm trying to check the document to see if we can track any other thing from the plugin side, plz update the issue if u see more.