After July 2021, the 2.3.x release line no longer received quality updates or user guide updates. PHP 7.3 reached end of support in December 2021, and Adobe Commerce 2.3.x reached end of support in September 2022. We strongly recommend upgrading to Adobe Commerce 2.4.x to help maintain PCI compliance.

New Relic Reporting

This site contains archived merchant documentation for a version of Adobe Commerce and Magento Open Source that has reached end-of-support. The documentation available here is intended for historical reference only and is not maintained. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

New Relic is a software analytics service that helps you analyze and improve application interactions. Magento Commerce Cloud accounts include the software for the New Relic APM service. For more information, see New Relic services in our developer documentation.

Step 1: Sign Up for a New Relic Account

  1. Go to the New Relic website and sign up for an account.

    You can also sign up for a free trial account.

  2. Follow the instructions on the site. When prompted choose the product that you want to install first.

  3. While you are in your account, locate the following credentials that you will need to complete the configuration:

    Account ID From your New Relic account dashboard, the Account ID is the number in the URL after: /accounts
    Application ID From your New Relic account dashboard, click New Relic APM. In the menu, choose Applications. Then, choose your application. The Application ID is the number in the URL after: /applications/
    New Relic API Key From your New Relic account dashboard, click Account Settings. In the menu on the left under Integrations, choose Data Sharing. You can create, regenerate, or delete your API key from this page.
    Insights API Key From your New Relic account dashboard, click Insights. In the menu on the left under Administration, choose API Keys. Your Insights API Key(s) appear on this page. If necessary, click the plus sign (+) next to Insert Keys to generate a key.

Step 2: Install the New Relic Agent on Your Server

To use New Relic APM Pro to gather and transmit data, the PHP agent must be installed on your server.

  1. When prompted to choose a web agent, click PHP.

  2. Follow the instructions to set up the PHP agent on your server.

    If you need help, see New Relic for PHP.

  3. Make sure that cron is running on your server.

    To learn more, see Configure and run cron in our developer documentation.

Step 3: Configure Your Store

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel where General is expanded, choose New Relic Reporting and do the following:

    New Relic Reporting

    • Set Enable New Relic Integration to Yes.

    • In the Insights API URL, replace the percent (%) symbol with your New Relic Account ID.

    • Enter your New Relic Account ID.

    • Enter your New Relic Application ID.

    • Enter your New Relic API Key.

    • Enter you Insights API Key.

  3. In the New Relic Application Name field, enter a name to identify the configuration for internal reference.

  4. (Optional) For the Send Adminhtml and Frontend as Separate Apps field, select Yes to send collected data for the storefront and Admin as separate apps to New Relic.

    This option requires a name entered for the New Relic Application Name.

    Enabling this feature reduces the number of false positive New Relic alerts and allows for configured monitoring and alerts strictly for frontend performance. New Relic receives separate app data files with names of Application Name appended to Adminhtml and frontend. For example: MyStore_Adminhtml

  5. When complete, click Save Config.

Step 4: Enable Cron for New Relic Reporting

  1. Expand the Cron section.

    Cron

  2. Set Enable Cron to Yes.

  3. When complete, click Save Config.