Skip to content

Commit

Permalink
Boost: Add tracks event to clickable events on settings page (#40246)
Browse files Browse the repository at this point in the history
* Add tracks event to clicking of speed score refresh

* changelog

* Add critical_css_regenerate_clicked Tracks event

* Add Tracks events for page cache module

* Add tracking to Image CDN adjust quality click

* Add tracks event to "Contact Us" button

* Add the tracksEventName to the quality settings story too

* Update projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.tsx

Co-authored-by: Peter Petrov <peter.petrov89@gmail.com>

* Update projects/plugins/boost/app/assets/src/js/features/image-cdn/quality-settings/quality-settings.tsx

Co-authored-by: Peter Petrov <peter.petrov89@gmail.com>

* Record boost even when speed score alert shown

* Updates to Tracks are general

* Record clicks on "Contact Support" in CCCS

* Add tracking on back button

* add changelog

* Revert changes done by prettier

* Add Tracks record of Critical CSS link clicks

* Track clicks on "advanced recommendations" link

* Record clicks on css error links

* Record clicks on the defer js link

* Change it for ESLint

* Fix renamed tracks prop

* Record clicks on tip links

* Links open themselves, not JS. Remove the window.open

* Typo fix to changelog

* Call the correct function to track C CSS clicks

* Replace with neater code. props @dilirity

* Record the scores and direction of change

* Update projects/plugins/boost/changelog/update-boost-add-tracks-events

Actions take^h^h^h^htook place in the past.

Co-authored-by: Adnan Haque <3737780+haqadn@users.noreply.github.com>

* Don't track scores

* Add tracks event on "see logs" click

* Remove this as it's needed now. eslint update?

---------

Co-authored-by: Peter Petrov <peter.petrov89@gmail.com>
Co-authored-by: Adnan Haque <3737780+haqadn@users.noreply.github.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12357298949

Upstream-Ref: Automattic/jetpack@7f0e83e
  • Loading branch information
donnchawp authored and matticbot committed Dec 16, 2024
1 parent 907e616 commit d8cd8c3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
This is an alpha version! The changes listed here are not final.

### Added
- General: Added tracks events to clickable elements on the settings page.
- General: Add WordPress filters to allow Cornerstone Pages list and Image Size Analyzer source data to be updated.

### Changed
Expand Down
2 changes: 1 addition & 1 deletion app/assets/dist/jetpack-boost.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'e51655c9570fd6a6fb7c');
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '08c5bd634baa19957f03');
40 changes: 20 additions & 20 deletions app/assets/dist/jetpack-boost.js

Large diffs are not rendered by default.

0 comments on commit d8cd8c3

Please sign in to comment.