Download the PHP package xwp/site-performance-tracker without Composer

On this page you can find all versions of the php package xwp/site-performance-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package site-performance-tracker

Site Performance Tracker

Test and Build

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:

Google Analytics (analytics.js) is supported, requires passing the ID using ga_id:

Global Site Tag is supported, requires passing the Analytics ID (starting with UA- not GTM-) using gtag_id:

GA4 Analytics is supported, requires passing the ID using ga4_id:

If you need to override the Google Analytics dimensions (defaults to dimensions1 through dimension3) to store these under, pass them along on the add theme support initialisation:

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:

Contribute

All contributions are welcome! Please create an issue for bugs and feature requests, and use pull requests for code contributions.

Project Setup

Changelog

1.3.2 - October 30th, 2023

1.3.1 - July 18th, 2023

1.3 - February 24th, 2023

1.2 - December 5, 2022

1.1.7 - July 5, 2022

1.1.6 - May 18, 2022

1.1.5 - March 17, 2022

1.1.4 - March 10, 2022

1.1.3 - March 9, 2022

1.1.2 - March 4, 2022

1.1.1 - March 3, 2022

1.1.0 - January 6, 2022

1.0.0 - October 4, 2021

0.9.1 - July 9, 2021

0.9 - June 16, 2021

0.8 - May 28, 2021

0.7 - May 26, 2021

0.6 - May 25, 2021

0.5 - April 13, 2021

0.3.1 - March 11, 2020

0.3.0 - March 11, 2020

0.2.0 - February 22, 2019

0.1.1 - February 18, 2019

0.1.0 - February 15, 2019

Contribute

Please follow the contribution guide.

Credits

Created by XWP and contributors. Licensed under GNU General Public License v2.0 or later.


All versions of site-performance-tracker with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xwp/site-performance-tracker contains the following files

Loading the files please wait ....