Skip to content
OpenCart · User manual

Google Marketing Tools

Version 13.25.0 Product page
Chapter 2

Installation

How to install Google Marketing Tools on OpenCart 1.5, 2.x, 3.x and 4.x, update it to a newer version and uninstall it.

Before you start

Download the latest package from the download centre. The main ZIP file contains one folder per OpenCart family:

FolderFile to install
Opencart 1.5.X to 2.2.0.01.5.X-to-2.2.0.0-google_marketing_tools.ocmod.zip and, for OpenCart 1.5 only, devmanextensions_google_marketing_tools_oc15x.xml
Opencart 2.3.X2.3.X-google_marketing_tools.ocmod.zip
Opencart 3.X3.X-google_marketing_tools.ocmod.zip
Opencart 4.Xdevman_google_marketing_tools.ocmod.zip

Extract the main ZIP on your computer and use only the file for your OpenCart version. Do not rename it. The package also includes Install tutorial.txt.

OpenCart 2.x and 3.x

  1. In your OpenCart administration open the extension installer (Extensions > Installer, named Extensions > Extension Installer in OpenCart 2.x) and upload the ZIP file for your version.
  2. Go to Extensions > Modifications and press the blue refresh button.
  3. Go to Extensions > Extensions, choose Modules in the filter, find Google Marketing Tools and press the install button.
  4. Press the edit button to open the extension.

If the upload stops with a message saying that the file could not be uploaded, your server limits the size of uploaded files. Ask your hosting provider to raise the PHP upload limit and try again.

Extra step for OpenCart 2.0.0.0 to 2.1.0.2

Open the file index.php in the root of your shop and add this line just before the line // Front Controller:

require_once(DIR_SYSTEM.'library/google_marketing_tools/includes/startup_libraries.php');

OpenCart 4.x

  1. Go to Extensions > Installer and upload devman_google_marketing_tools.ocmod.zip.
  2. In the list of installed packages on the same page, press the install button of Google Marketing Tools.
  3. Go to Extensions > Extensions, choose Modules, find Google Marketing Tools and press the install button.
  4. Press the edit button to open the extension.

OpenCart 4 does not need OCMOD refreshes for this extension. It registers its own events when you install the module.

OpenCart 1.5.x

  1. Install VQMod in your shop if it is not installed yet.
  2. Upload devmanextensions_google_marketing_tools_oc15x.xml to the folder /vqmod/xml/ of your shop.
  3. Extract 1.5.X-to-2.2.0.0-google_marketing_tools.ocmod.zip and upload everything inside its upload folder to the root of your shop by FTP.
  4. Open the file index.php in the root of your shop and add this line just before the line // Front Controller:
require_once(VQMod::modCheck(DIR_SYSTEM.'library/google_marketing_tools/includes/startup_libraries.php'));
  1. Go to Extensions > Modules, install Google Marketing Tools and open it.

Add the line only once. If an earlier version left a line that loads startup_libraries.php, replace it instead of adding a second one.

First opening

The first time you open the extension it asks for your licence. Follow Licence activation.

When you open the Feeds tab for the first time, a window named Download libraries may appear. The feed generator needs some additional libraries. Press the green Download libraries button and wait. If the automatic download fails because of server limits, the same window explains how to do it by hand:

  1. Download the library ZIP from the link shown in the window.
  2. Extract it. It contains a folder named library.
  3. Upload that folder inside the system folder of your shop.
  4. Reload the page. The window does not appear again when the files are in place.

Updating to a newer version

  1. Download the latest package from the download centre.
  2. Install the file for your OpenCart version over the existing one, with the same steps you used for the first installation. On OpenCart 1.5 upload the new XML file to /vqmod/xml/ as well.
  3. On OpenCart 2.x and 3.x refresh Extensions > Modifications.
  4. Open the extension once. Database changes for the new version are applied when the administration opens.
  5. Check your settings and press Save.

Your settings, feeds and order data are kept. If the new version adds or changes tags you use, generate and import a new workspace as explained in GTM Workspace Generator.

If you are updating from a version older than 10.0, some old files and modifications must be removed first. The steps are listed on the install page.

Uninstalling

  1. Go to the list of modules and press the uninstall button of Google Marketing Tools.
  2. On OpenCart 2.x and 3.x, delete the Google Marketing Tools entry in Extensions > Modifications and press refresh. On OpenCart 1.5, delete the XML file from /vqmod/xml/ and remove the line you added to index.php.

Step 2 matters: it removes the code that the extension adds to the storefront. The database tables that hold feed profiles, order tracking data and GDPR requests are not deleted, so an accidental uninstall does not destroy them.

Still need help?

Open a support ticket from your account and our team will look at your store with you.