---
title: How to install the ProfitMetrics module in Magento 2
description: Follow these steps to install the ProfitMetrics module in Magento 2
---

[Skip to content](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#main-content)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png)](https://knowledge.profitmetrics.io/?hsLang=en)

Open main navigation

Close main navigation

- [Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new)

[Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new?hsLang=en)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge base](https://knowledge.profitmetrics.io/?hsLang=en)
2. [E-commerce Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en)
3. [Magento](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#magento)

# How to install the ProfitMetrics module in Magento 2

## Follow these steps to install the ProfitMetrics module in Magento 2

---

Additional Magento Resources:

[How to Activate Headless Mode in Magento 2](https://knowledge.profitmetrics.io/how-to-activate-headless-mode-in-magento-2?hsLang=en)

[How to add the ProfitMetrics Public ID in Magento 2](https://knowledge.profitmetrics.io/how-to-add-the-pm-public-id-in-magento-2?hsLang=en)

[How to Export Customers in Magento 2](https://knowledge.profitmetrics.io/how-to-export-customers-in-magento-2?hsLang=en)

---

[Part 1: Download module](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#Part1)

[Part 2: Installation with Composer](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#Part2)

[Part 3: Installation with the module package](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#Part3)

[Part 4: Configuration](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#part4)

[Part 5: Select the correct order statuses](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#part5)

[Part 6: Configure ProfitMetrics in the Cron tab](https://knowledge.profitmetrics.io/how-to-install-profitmetrics-for-magento-2#part6)

---

### Part 1: Download Module

1. Navigate to [https://my.profitmetrics.io/customer/integrations\_magento2.php](https://my.profitmetrics.io/customer/integrations_magento2.php)
2. Download the current version of the module  
   ![step2](https://knowledge.profitmetrics.io/hs-fs/hubfs/step2.png?width=670&height=376&name=step2.png)

### Part 2: Installation with composer

```
# In this example the magento 2 root is /var/www/magento2$ cd /var/www/magento2/ $ composer config repositories.profitmetrics '{"type": "composer", "url": "https://release.profitmetrics.io"}'$ composer require profitmetrics/magento2$ bin/magento setup:upgrade$ bin/magento setup:di:compile# Replace en_US with locales, used on Magento instance, Magento/luma with the theme used:$ bin/magento setup:static-content:deploy en_US-f-a frontend--theme Magento/luma--jobs=4$ bin/magento setup:static-content:deploy en_US-f-a adminhtml--jobs=4$ bin/magento deploy:mode:set production--skip-compilation$ bin/magento cache:enable$ bin/magento cache:clean$ bin/magento cache:flush
```

### Part 3: Installation with the module package

1. Connect to the Magento 2 server using any FTP client (FileZilla, etc).
2. Upload the module to the Magento 2 root folder. The app/code/DV/ProfitMetrics folder should appear. ![Screenshot 2024-09-09 at 2.22.31 PM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-09-09%20at%202.22.31%20PM.png?width=623&height=157&name=Screenshot%202024-09-09%20at%202.22.31%20PM.png)
3. Connect to the Magento 2 server using an SSH client (Putty, etc).
4. Run the following commands from the console:
   
   ```
   $ bin/magento deploy:mode:set default$ bin/magento setup:upgrade$ bin/magento setup:di:compile# Replace en_US with locales, used on Magento instance, Magento/luma with the theme used:$ bin/magento setup:static-content:deploy en_US-f-a frontend--theme Magento/luma--jobs=4$ bin/magento setup:static-content:deploy en_US-f-a adminhtml--jobs=4$ bin/magento deploy:mode:set production--skip-compilation$ bin/magento cache:enable$ bin/magento cache:clean$ bin/magento cache:flush
   ```

### Part 4: Configuration

1. Open the Magento 2 admin panel.
2. Goto: Stores-\> Configuration. Click on the DV EXTENSIONS tab, then click on ProfitMetrics.  
   ![Screenshot 2024-09-09 at 2.24.41 PM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-09-09%20at%202.24.41%20PM.png?width=465&height=511&name=Screenshot%202024-09-09%20at%202.24.41%20PM.png)
3. Configure ProfitMetrics in the General tab:
   
   NOTE: If you have multiple scopes, do NOT add the public ID in the default scope; each scope/website will have it's own public ID 

    
   
   ![Screenshot 2024-09-09 at 2.25.55 PM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-09-09%20at%202.25.55%20PM.png?width=599&height=472&name=Screenshot%202024-09-09%20at%202.25.55%20PM.png)
4. | Enable | Is module enabled |
   | --- | --- |
   | Store Public ID | Store ID from ProfitMetrics \> Websites |
   | Source for the configurable products price | There are two options for configurable price determination:  1\) get from the configurable product 2\) retrieve the minimal price of related simple options |
   | Price Buy Attribute Code | Attribute code for price\_buy  There is a default attribute created by this module called 'price\_buy' |
   | Secret Code | This code is required to secure access to feed data. Please generate the random value, save, and click generate |
   | Generate Random Secret Code | This button will generate a random Secret Code for the field above |
   | Feed Filename | Feeds are stored in the server in the path var/profitmetrics/products\_.xml, where is the store code and is accessible by the URL: file path: magento\_root/var/profitmetrics/products\_default.xml URL: https://magento-2.com/profitmetrics/feed/index/code/0z8zpifbg2a04oo6wj0h/store/1 Please select the specific file name in your store scope in order to modify the feed name for a specific store. Please find below the link to ProfitMetrics feed for the necessary store. The link should contain the correct secret code (please check the parameter value above). Please provide this link to ProfitMetrics team for products data synchronization. |
   | Generate Feed Now | This button will generate a feed |
   | Order Statuses to send to ProfitMetrics | This option allows selection of order statuses to send to ProfitMetrics |
   | "Send Orders Now" button | This button allows sending order data to ProfitMetrics immediately |
   | "Script to include on all pages except for order confirmation" field | Allows input of script to any page except Order Confirmation. Typically used for GA4 script |

### Part 5: Select the correct order statuses

1. Select the correct order statuses
   
   **Please note:** Select only order statuses from when an order is “authorised” until it is “completed”. Exclude any cancelled or returned statuses.  
   ![3-Sep-09-2024-06-31-46-5536-PM](https://knowledge.profitmetrics.io/hs-fs/hubfs/3-Sep-09-2024-06-31-46-5536-PM.png?width=630&height=324&name=3-Sep-09-2024-06-31-46-5536-PM.png)

### Part 6: Configure ProfitMetrics in the Cron tab

1. Configure ProfitMetrics in the Cron tab  
   ![Screenshot 2024-09-09 at 2.36.16 PM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-09-09%20at%202.36.16%20PM.png?width=589&height=384&name=Screenshot%202024-09-09%20at%202.36.16%20PM.png)
2. After configuration, go to System-\> Cache Management-\> Flush Magento Cache

- [Getting Started](https://knowledge.profitmetrics.io/getting-started?hsLang=en#main-content)

    - [Learn the Basics](https://knowledge.profitmetrics.io/getting-started?hsLang=en#learn-the-basics)
    - [Prepare for Onboarding](https://knowledge.profitmetrics.io/getting-started?hsLang=en#prepare-for-onboarding)
    - [Account Setup](https://knowledge.profitmetrics.io/getting-started?hsLang=en#account-setup)
- [E-commerce Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#main-content)

    - [Shopify](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopify)
    - [WooCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#woocommerce)
    - [Magento](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#magento)
    - [PrestaShop](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#prestashop)
    - [BigCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#bigcommerce)
    - [Shopware](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopware)
    - [DanDomain & Related](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#dandomain-related)
    - [Universal Integration (Clientside)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-clientside)
    - [Universal Integration (Server-side Hybrid)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-server-side-hybrid)
    - [Other Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#other-platforms)
    - [Developer Documentation](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#developer-documentation)
- [Ad Channels](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#main-content)

    - [Google Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-ads)
    - [Meta (Facebook/Instagram)](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#meta-facebook-instagram)
    - [Microsoft Bing Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#microsoft-bing-ads)
    - [Google Analytics 4](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-analytics-4)
    - [Partner-ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#partner-ads)
    - [Other Channel Configuration](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#other-channel-configuration)
- [Tracking & Conversion Setup](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#main-content)

    - [Overview](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#overview)
    - [Conversion Booster for Google Ads](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-google-ads)
    - [Conversion Booster for Meta](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-meta)
    - [Conversion Booster Custom Pixels](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-custom-pixels)
    - [Enhanced Conversions](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#enhanced-conversions)
- [Shopping Booster](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#main-content)

    - [Overview & Setup](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#overview-setup)
    - [Supplemental Feeds](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#supplemental-feeds)
    - [Campaigns & Labels](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#campaigns-labels)
    - [Troubleshooting](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#troubleshooting)
- [Product Feed & Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#main-content)

    - [Product Feed](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#product-feed)
    - [Shipping & Payment Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#shipping-payment-costs)
    - [Expenses](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#expenses)
- [Dashboard, Orders & Reporting](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#main-content)

    - [Dashboard & Orders](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#dashboard-orders)
    - [Looker Studio](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#looker-studio)
    - [Google BigQuery](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#google-bigquery)
- [Account & Billing](https://knowledge.profitmetrics.io/account-billing?hsLang=en#main-content)

    - [Users & Access](https://knowledge.profitmetrics.io/account-billing?hsLang=en#users-access)
    - [Billing & Invoices](https://knowledge.profitmetrics.io/account-billing?hsLang=en#billing-invoices)
- [Privacy & Consent](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#main-content)

    - [GDPR](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#gdpr)
    - [Consent Management Platforms](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#consent-management-platforms)
    - [Google Consent Mode](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#google-consent-mode)
- [For Agencies](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#main-content)

    - [Getting Started as an Agency](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#getting-started-as-an-agency)
    - [Agency Certification](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#agency-certification)
- [Shopify](https://knowledge.profitmetrics.io/shopify?hsLang=en)
- [PrestaShop](https://knowledge.profitmetrics.io/prestashop?hsLang=en)
- [Google Ads](https://knowledge.profitmetrics.io/google-ads?hsLang=en#main-content)

    - [troubleshoot](https://knowledge.profitmetrics.io/google-ads?hsLang=en#troubleshoot)
- [Meta (Facebook / Instagram)](https://knowledge.profitmetrics.io/meta-facebook-instagram?hsLang=en)
- [Uncategorized](https://knowledge.profitmetrics.io/uncategorized?hsLang=en)
- [Billing](https://knowledge.profitmetrics.io/billing?hsLang=en)
- [Google Sheets](https://knowledge.profitmetrics.io/google-sheets?hsLang=en)
- [Account](https://knowledge.profitmetrics.io/account?hsLang=en)
- [Ideal Shop](https://knowledge.profitmetrics.io/ideal-shop?hsLang=en)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png "ProfitMetrics logo black version")](https://profitmetrics.io)

<https://www.facebook.com/ProfitMetrics/> <https://podcasts.apple.com/> [mailto:support@profitmetrics.io](mailto:support@profitmetrics.io)

Copyright © 2026, ProfitMetrics ApS