Skip to content
CS-Cart · User manual

Google Marketing Tools

Version 3.2.0 Product page
Chapter 6

GTM workspace

In the Workspace tab you choose the tags your store uses, type their IDs and receive the Google Tag Manager container file that makes them work for the current storefront. This chapter also explains how to import and publish it.

How the tab works

The tab opens with a list of situations the add-on is not designed for, followed by the Generate Google Tag Manager Workspace button and one section per tag. Each tag has a switch and, where needed, the fields for its IDs.

  1. Fill in GTM Container ID and the general Google fields.
  2. Switch on every tag you want and fill in its fields.
  3. Press the save button at the top right so your choices are stored for next time.
  4. Press Generate Google Tag Manager Workspace.
  5. A message confirms the email address the file was sent to: the address of your licence. Wait about a minute and check your spam folder.
  6. Import the file into Google Tag Manager and publish it (see below).

A tag whose switch is off is left out of the file, even if its fields are filled in.

Rules for a working setup

The add-on and the generated workspace are designed to work together. Tracking does not work correctly, and we cannot support the setup, in these cases:

  • the workspace was created by hand or with another tool;
  • the generated workspace was later edited by hand or with another tool;
  • the generated workspace was merged with an older workspace not generated by the add-on;
  • another add-on also loads Google Tag Manager in your store;
  • another add-on modifies the dataLayer printed by this add-on.

Google General

SettingWhat it does
GTM Container IDRequired. The container the workspace is prepared for, in the format GTM-XXXXXXX. It is pre-filled with the ID of the General tab.
Google AnalyticsYour Google Analytics ID: a GA4 measurement ID (G-XXXXXXXXXX) or a Universal Analytics tracking ID (UA-XXXXXXXX-X).
Google OptimizeYour Google Optimize container ID, in the format GTM-XXXXXXX.
Google Analytics Enhanced E-CommerceAdds the ecommerce events to Google Analytics: product lists, product clicks, product details, add to and remove from cart, checkout steps, purchases and promotions. It needs the Google Analytics field filled in.

AdWords Conversion

Tracks purchases as Google Ads conversions.

SettingWhat it does
AdWords ConversionEnables the conversion tag.
Adwords conversion IDThe conversion ID of your Google Ads conversion action: the number, without the AW- prefix.
Adwords conversion labelThe conversion label of the same conversion action.

In Google Ads, create a conversion action of the Purchase type, choose to install the tag with Google Tag Manager and copy the two values shown.

Standard/Dynamic Remarketing

SettingWhat it does
Standard/Dynamic RemarketingEnables the Google Ads remarketing tag on all pages, with the products the visitor sees.
Standard/Dynamic Remarketing conversion IDThe conversion ID of your Google Ads remarketing tag.
Standard/Dynamic Remarketing labelThe label of the remarketing tag, if Google Ads gives you one.
Prefix IDOptional. Text added before each product ID, so the IDs match those of your Merchant Center feed, for example es_59.
Sufix IDOptional. Text added after each product ID, for example 59_es.
Dynx compatibilityAlso sends the product IDs in the dynx_ parameters that Google Ads uses for dynamic remarketing outside retail. Leave it off unless your Google Ads account uses them.

Rich Snippets

Rich Snippets adds structured product data to your product pages, so search engines can show price, availability and ratings in their results. It has no fields here. The product identifier it uses is set in the RichSnippets section of the General settings.

VK

The VK switch enables the VK (VKontakte) pixel.

SettingWhat it does
VK Pixel CodeYour pixel code. Find it in the Retargeting section of your VK advertising account.
PRICE_LIST_IDThe ID of your price list in VK. You get it after you upload your price list file to VK.

Other tags

Each of these tags has a switch and one or two fields:

TagFields and where to find them
HotjarHotjar site ID: in Hotjar, under the settings of your site.
Pinterest PixelPinterest ID: the tag ID shown in the conversion tag section of your Pinterest Ads account.
Crazyegg TrackingCrazyegg ID: your Crazyegg account number.
Criteo OneTagCriteo ID: your Criteo partner ID, a number.
Facebook PixelFacebook Pixel ID: only the numeric ID of your pixel, not the whole code.
Bing AdsBing Ads tag ID: your Microsoft Advertising UET tag ID.
Native & Search DotProject ID and Pixel ID given by Yahoo Native & Search.

Importing the file into Google Tag Manager

The email contains a file named workspace.json. Save it without opening or editing it.

  1. Sign in to Google Tag Manager and open the container whose ID you used.
  2. Open Admin and choose Import Container.
  3. Press Choose container file and select workspace.json.
  4. Under Choose workspace, select your existing default workspace.
  5. Choose Overwrite as the import option.
  6. Review the summary and press Confirm.

Publishing and testing

The imported workspace is a draft until you publish it:

  1. Press Submit at the top right of the workspace.
  2. Name the version, for example the date, and press Publish.
  3. In the add-on, check that Marketing Tools status is on and that the General tab uses the same GTM Container ID.

To test, press Preview in Google Tag Manager, enter the address of your storefront and browse it: view a product, add it to the cart and place a test order. The preview shows which tags fire on each step.

Still need help?

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