How to install the Extension? #
There are two methods by which you can install the Google Analytics and Google Shopping integration extension as mentioned below :
1. Install the extension using Composer #
(1) Update your composer.json file
- Add the extension’s name and version to your composer.json file.
- Navigate to your Magento project directory and update your composer.json file.
- Composer requires conversios/googleanalyticsandshoppingintegration
- Enter your authentication keys. The public key is your username, and the private key is your Magento Marketplace user account password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any Errors.
- Updating dependencies (including require-dev)
- Package operations: 1 install, 0 updates, 0 removals
- Installing conversios/googleanalyticsandshoppingintegration
- Writing lock file
- Generating autoload files
(2) Verify the extension
– Run the following command to verify that the extension is installed properly:
bin/magento module: status
By default, the extension is probably disabled: The module is disabled. The extension name is in the format Conversios_GoogleAnalyticsAndShoppingIntegration , this is a different
format from the composer’s name. Use this format to enable the extension.
– If you are unsure of the extension name, run:
bin/magento module:status
and look for the extension under “List of disabled modules”.
(3) Enable the extension
– Some extensions won’t work properly unless you clear Magento-generated static view files first.
– Use the –clear-static-content option to clear static view files when you’re enabling an extension.
– Enable the extension and clear static view files:
bin/magento module:enable Conversios_GoogleAnalyticsAndShoppingIntegration
–clear-static-content
– You should see the following output:
The following modules have been enabled:
Conversios_GoogleAnalyticsAndShoppingIntegration
– To make sure that the enabled modules are properly registered,
run 'bin/magento setup:upgrade
Cache cleared successfully. Generated classes cleared successfully.
Please run the 'bin/magento setup:di:compile' command to generate classes.
Generated static view files cleared successfully.
(4) Register the extension: Run the command bin/magento setup:upgrade
Recompile your Magento project: In Production mode, you may receive a message to “Please
rerun Magento compile command”. Magento does not prompt you to run the compile command in Developer mode.
bin/magento setup:di:compile
(5) Verify that the extension is enabled using the below command:
bin/magento module:status Conversios_GoogleAnalyticsAndShoppingIntegration
You should see output verifying that the extension is no longer disabled: Module is enabled
(6) Clean the cache using the command: bin/magento cache:clean
Below are the commands to configure the extension in Admin as needed.
-> Uninstall Conversios GoogleAnalyticsAndShoppingIntegration Extension
- bin/magento disable Conversios_GoogleAnalyticsAndShoppingIntegration
--clear-static-content
- Composer remove conversios/googleanalyticsandshoppingintegration
- bin/magento setup:upgrade
- bin/magento setup:di:compile
- bin/magento setup:static-content:deploy ( -f - if in developer or default deploy mode)
-> Upgrade/Update Conversios_GoogleAnalyticsAndShoppingIntegration Extension
- composer require conversios/googleanalyticsandshoppingintegration:*
--update-with-dependencies (* has latest version)
- bin/magento setup:upgrade
- bin/magento setup:di:compile
- bin/magento setup:static-content:deploy ( -f - if in developer or default deploy mode)
Reference links: https://docs.magento.com/user-guide/system/tools.html https://devdocs.magento.com/extensions/install/
2. Install the Extension using Zip Extraction #
1) Login to Magento with ssh
2) Enter the command ssh root@yourIP
3) Enter the password
4) Extract the extension folder to the app/code folder using the command – unzip Conversios.zip Note: unzip commands can vary in FTP, SSH, etc.
5) Run the below command to enable the extension
php bin/magento module:enable Conversios_GoogleAnalyticsAndShoppingIntegration –clear-static-content
6) Run the below commands in the project root path
php bin/magento setup: upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
chmod -R 755 generated/ pub/ var/
7) The extension will be installed, and you can verify the same at Magento2 admin, Store->Configuration->Conversios.
8) Configure the extension as per your requirements, and you will be good to start tracking the required data and doing product sync.
Once you perform the above steps, check whether our extension is working as expected or not, If not, please reach out to us at [email protected].