Installing Google Analytics (M2) - from Fooman website

Note: These instructions apply to installing an extension downloaded from the Fooman website only. If you downloaded the extension from the Magento Marketplace, follow these installation instructions instead.

Option 1: Preferred Installation Method (Fooman-Hosted Repository)

Fooman will host your extension and will automatically push new extension updates to your repository, ready for you to pull/update in the future. Please note this service is only provided for customers who also own a license to one of our commercial extensions.

The advantages of this approach are:

  • Saves time installing future extension updates (you don’t need to manually download these from the Fooman website and repeat the installation process each time)
  • Helps to avoid common errors some people make when using the manual installation method

Fooman will host your extension and push new extension updates for as long as your support/update period is valid (currently 12 months from date of purchase). If your support period expires you can still install using the manual installation method.

1. Log into Your Account on the Fooman website, using your the login details you signed up with. On your account dashboard, you will see a custom command line. Copy the command line.

2. From a command line in your Magento root folder run

1. [The custom command line you copied from your Fooman Account dashboard]  
2. composer require fooman/googleanalyticsplus-m2
3. bin/magento module:enable --clear-static-content Fooman_GoogleAnalyticsPlus
4. bin/magento setup:upgrade

If you are using Production Mode please also run

5. bin/magento setup:static-content:deploy  
6. bin/magento setup:di:compile

Option 2: Manual Installation Method (Self-Hosted Repository)

1. Unzip the zip file you downloaded from our store into the following folder (please create this folder if it’s not already present):

MAGENTO_ROOT/vendor/fooman/packages

2. From a command line in your Magento root folder run

1. composer config repositories.foomanartifacts artifact $(pwd)/vendor/fooman/packages
2. composer require fooman/googleanalyticsplus-m2
3. bin/magento module:enable --clear-static-content Fooman_GoogleAnalyticsPlus
4. bin/magento setup:upgrade

If you are using Production Mode please also run

5. bin/magento setup:static-content:deploy
6. bin/magento setup:di:compile

NEXT STEP: SET UP IN GOOGLE ANALYTICS

Still need help? Contact Us Contact Us