Download the PHP package gene/module-newrelic-rum-page-type without Composer

On this page you can find all versions of the php package gene/module-newrelic-rum-page-type. 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 module-newrelic-rum-page-type

gene/module-newrelic-rum-page-type

Install this module to easily monitor and improve customer experience by tracking Core Web Vitals in New Relic by page type and enhancing your RUM setup.

🎉 If you are hosted on Adobe Commerce Cloud you already have New Relic with browser monitoring available! 🎉

Why install it?

By default New Relic is already tracking LCP, INP, and CLS on page views. This is recorded and queryable within New Relic. However you can only filter by some default values like domain or pageUrl. This granularity is insufficient for tracking changes and making targeted improvements on your ecommerce site.

To be able to make impactful changes we need to tbe able to answer questions like

By adding this module you will have this level of detail and be able to make more informed decisions and stay ahead of any regressions.

Installation

How it works

This module adds a custom attribute to the New Relic PageViewTiming data to set the current request type as pageType.

This allows you to query the tracked data in segments like

How to use

1. Prepare a New Relic dashboard

It is best to view this data within a New Relic dashboard. We have prepared a dashboard template for you to get started with

  1. Copy the contents of dev/new-relic-cwv-dashboard.json into a text editor
  2. Replace the dummy 1234567 account ID with your actual New Relic account ID
  3. Replace www.example.com with your actual domain.
  4. Log into New Relic
  5. On the left panel click "Dashboards"
  6. On the top right click "Import Dashboard"
  7. Paste in the prepared JSON dashboard and import the "Core Web Vitals by PageType" dashboard.
  8. You will now see a dashboard highlighting your Core Web Vitals.

This LCP/INP/CLS charts have a horizontal target line, your web vitals for desktop and mobile should be below this target line.

2. Deploy this module to production

  1. Install this module on production. PageViewTiming metrics within New Relic will now have their pageType value attached.
  2. Give it at least 24 hours for data to start filtering through, depending on your site and setup you may find patterns that some periods are slower when imports/exports are being triggered.

3. Make improvements for specific pageTypes

  1. When no filter is applied you can see the overall scores for your website, as well as other key pageTypes.
  2. By filtering through catalog_product_view, catalog_category_view, etc you can identify areas for improvement and whether they are most significantly affecting desktop or mobile devices.
  3. Use the Chrome Performance Panel
    1. Compare your experience to the experience of real users
    2. Configure your environment to better match that of the real users
    3. Investigate the additional panels, in particular the "rendering panel" can be very useful in improving CLS
  4. After you deploy a fix it may take some time for it to become fully visible in your dashboard graphs.

4. Set up automated alerting

  1. After you have improved your web vitals you want to monitor them to prevent regression.
  2. From the dashboard click ... on the top right of CLS/INP/LCP
  3. Create an alert condition
  4. Follow instructions from https://docs.newrelic.com/docs/tutorial-create-alerts/create-an-alert/

Tips

  1. Alerting on a 24-hour rolling window seems to be the most stable.
  2. Have an alert for desktop, and one for mobile.
  3. Have alerts for specific page types, so that you are quickly alerted when something goes awry.
  4. Alerts can fire even when no deployments are made, changes in audience, third party tracking, or A/B testers may be the cause.

Caveats

New Relic RUM is not as complete as some other offerings, most notably it is missing LoAF. However, if you already have New Relic and are not currently looking at your RUM data then this module may be enough to get you kick-started on that journey and making targeted improvements.


All versions of module-newrelic-rum-page-type with dependencies

PHP Build Version
Package Version
Requires php Version ~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
magento/framework Version *
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 gene/module-newrelic-rum-page-type contains the following files

Loading the files please wait ...