How to integrate with Magento 2

This extension currently supports CE/EE 2.0, 2.1, 2.2, 2.3 and 2.4 versions. See instructions for Magento 1.

AdRoll has integrated with Magento to help you solve shopping cart abandonment and drive more sales. Connect your Magento 2 store to your AdRoll account and start running campaigns across our extensive inventory, without any developer resources.


  • Tag your site — Places the AdRoll pixel on all pages of your Magento store.
  • Access high-performing dynamic ads — Generates a product feed for you to run dynamic ads.
  • Create key audiences — Creates audiences for you to target based on how visitors interact with your Magento store.
  • Enable conversion and ROAS tracking — Track the number of sales and amount of revenue driven by the AdRoll campaign using an automatically-created conversion segment that passes back exact conversion values.

How to Install

  1. Log into your AdRoll account at
  2. If a prior adroll directory exists in app/code, "app/code/adroll1231231234", remove it:
    rm -rf app/code/adroll123123124
  3. Enable maintenance mode
    php bin/magento maintenance:enable
  4. Install the pixel via composer
    composer require adroll123123124/pixel
  5. Enable the pixel in magento
    php bin/magento module:enable Adroll_Pixel
  6. Run the following commands from the Magento 2 application directory to enable the AdRoll Pixel module:
    php bin/magento setup:upgrade;
    php bin/magento cache:flush;
    php bin/magento setup:di:compile;
    php bin/magento indexer:reindex;
  7. Disable maintenance mode php bin/magento maintenance:disable.
  8. If the installation is successful, you'll be prompted to Connect Magento 2 Store.

    Note: You'll need to be signed in to your Magento Admin Panel to connect your store.
  9. Select the store you want to connect to and click Continue.
  10. You will then be directed back to AdRoll. Click Continue.
  11. Congratulations! Your Magento store is setup and you are ready to launch your first campaign.

Note: If you had previously placed the AdRoll pixel on your Magento store manually, then you must:

  • Remove the manually placed pixel.
  • Delete any conversion audiences to avoid duplicate conversions.
  • Update your campaign targeting settings to use the new audiences created from the Magento 2 integration.

The Magento 2 integration that you just configured automatically places the pixel and creates audiences.

Was this article helpful?

We're sorry to hear that!

Please tell us why.