{"repo":"xwp/site-performance-tracker","free":true,"listed":false,"github":"https://github.com/xwp/site-performance-tracker","clone":"git clone https://github.com/xwp/site-performance-tracker.git","description":"Allows you to detect and track site performance metrics","language":"PHP","stars":99,"topics":["wordpress-plugin","composer-package","wordpress","performance","frontend","analytics","performance-monitoring","performance-metrics"],"license":"GPL-2.0","category":"analytics","readme_excerpt":"Site Performance Tracker This WordPress plugin sends Core Web Vitals data to Google Analytics. It is compatible with Web Vitals Report Installation This plugin can be installed as a Composer dependency: or by downloading a plugin ZIP file from the releases page. Usage The plugin must be configured by setting the site performance tracker vitals theme feature with your Analytics IDs. Collected data will be available in Web Vitals Report in a few days. To send Web Vitals metrics to Google Analytics in a format compatible with the Web Vitals Report, enable the following theme support and passing in the ID: GA4 Analytics is supported, requires passing the ID using ga4 id : The following hooks can be added to a theme or a custom plugin to configure the plugin, alternatively you can configure the plugin through the settings screen, in case of duplication, plugin will take programmatically set settings. To confirm they were applied look for the webVitalsAnalyticsData global variable in the page source. Limit the number of events sent The following filter can be used to limit the number of tracking events to a percentage of your traffic. For example, to limit the tracking events to 5% of requests, use the following logic: Disable the tracking Programmatically disable the plugin. Delay script loading Programmatically delay web vitals tracking to minimise impact on interactivity. By default, an idle callback request is postponed by 5000ms, a value which can be adjusted via a filter: Con","default_branch":null,"files":null,"tree":[],"storefront":"/r/xwp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xwp/site-performance-tracker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}