Help Desk
العربية
Go to dashboard

Connect Google Analytics and Tag Manager to your Zid store

Google Analytics tells you who visits your store and how they found it, and Google Tag Manager lets you add tracking codes and widgets to your store without touching your theme. Each has a free app in the App market; search for its name or open the Tracking & Attribution category.

ToolWhat it does for your storeWhat you add in Zid
Google AnalyticsReports on visitors, traffic sources, devices, behavior and salesYour measurement ID, which starts with G-
Google Tag ManagerAdds and manages tags, such as tracking codes and widgets, from one Google accountYour container ID, which starts with GTM-

Use a Google account that belongs to your business, and the same one for every Google tool, so they can link to each other. Two related guides use the same account: List your products on Google with Merchant Center and Verify your store in Google Search Console.

Connect Google Analytics

Google Analytics is a free Google service that shows you:

  • Performance and sales: visitor numbers, sales and your best-selling products.

  • Customer behavior: how customers interact with your store.

  • Marketing results: the effect of your campaigns.

  • Conversion rates: where shoppers drop out before they buy.

  • Custom reports built around what you need to know.

  • Your audience: visitors' locations and demographics.

  • Where your store can improve.

The Google screens below are in Arabic; Google shows the same steps in English when your account is set to English.

  1. Sign in to Google Analytics and create an account, preferably named after your store. Under Account details, enter the account name and choose the data sharing settings.

The Create account page in Google Analytics with the account name field and the data sharing settings
Personal details are covered.
  1. Under Property creation, enter your store's name as the property name, then choose its time zone, country and currency.

The property creation step in Google Analytics with the property name, time zone and currency fields
Personal details are covered.
  1. Under Business details, choose your business category and size.

The business details step in Google Analytics with the industry category and business size options
Personal details are covered.
  1. Choose your business objectives for using Google Analytics, then click Create.

The business objectives step in Google Analytics with a list of objectives to tick and the Create button
Personal details are covered.
  1. In the Google Analytics terms of service, choose your country and click I Accept.

The Google Analytics terms of service dialog with the country list and the I Accept button
Personal details are covered.
  1. Choose Web as the platform you collect data from.

The start collecting data step in Google Analytics with the Web, Android app and iOS app options
Personal details are covered.
  1. Enter your store address and a name for the data stream, then create the stream. Enter the address without https://, since the field already starts with it.

The set up a web stream panel in Google Analytics with the website URL and stream name fields
Personal details are covered.
  1. Copy the measurement ID shown in the stream's details. It starts with G-.

The web stream details in Google Analytics with the measurement ID highlighted
Personal details are covered.
  1. In your Zid dashboard, open Apps > App Market and search for Google Analytics. Open the app and click Activate.

  2. Paste the ID in Account code on the App activation card and click Activate.

Analytics starts collecting data from your next visitor. Open its real-time report and visit your store from another device to see the visit arrive.

Connect Google Tag Manager

Tag Manager holds your tracking codes in a container. Once the container is on your store, you add, change or remove codes in Tag Manager without changing anything in Zid.

  1. Sign in to Google Tag Manager and click Create Account.

The Accounts page in Google Tag Manager with the Create Account button
Personal details are covered.
  1. Under Account Setup, enter the account name and country. Under Container Setup, enter a container name, such as your store address, and choose Web as the target platform.

The Account Setup and Container Setup sections in Google Tag Manager with the account name, country and container name fields
Personal details are covered.
  1. Click Create.

The Container Setup section with Web selected as the target platform and the Create button
Personal details are covered.
  1. Read the Google Tag Manager terms of service, tick the box to accept the data processing terms, then click Yes.

The Google Tag Manager Terms of Service Agreement with the data processing terms box ticked and the Yes button
Personal details are covered.
  1. Your container opens. Copy the container ID at the top of the workspace. It starts with GTM-.

The Google Tag Manager workspace with the container ID at the top, next to Workspace Changes
The container ID appears at the top of the workspace.Personal details are covered.
  1. In Zid, open the Google Tag Manager app from the App Market and click Activate.

  2. Paste the ID in Account code and click Activate.

Everything you publish in Tag Manager loads on your storefront and shows to customers right away. For example, a WhatsApp button or a live chat window you add through Tag Manager appears on your store's pages without any other change. Tag Manager needs some technical knowledge, so use it with care: every code loads each time a page opens, and too many, unneeded or heavy codes slow your store down. Remove tags you no longer use. For Snapchat and TikTok, use their apps in Zid instead of Tag Manager: they track more accurately. See Connect Meta, TikTok, Snapchat and X pixels.

Tags, triggers and variables

ElementWhat it is
TagA piece of code that sends information to another system, for example to track what visitors do or to add a button to your storefront.
TriggerA rule that decides when a tag runs. It watches for events, such as clicks, and runs every tag linked to it when an event matches its conditions.
VariableA named value that fills in automatically when the code runs, such as the page address. Tags and triggers use variables to decide what to do.

Add a tag to your store

This example adds a WhatsApp button by pasting the code a chat tool gives you. Any other tool works the same way.

  1. In your workspace, click Add a new tag.

The Google Tag Manager workspace with the New Tag card and its Add a new tag link
Personal details are covered.
  1. Click the pencil on Tag Configuration.

An untitled tag with the Tag Configuration and Triggering sections
Personal details are covered.
  1. Choose the tag type. If the tool you're adding is in the list, choose it; otherwise choose Custom HTML.

The Choose tag type panel with Custom HTML under Custom
Personal details are covered.
  1. Paste the tool's code in the HTML box.

The Custom HTML tag with a chat button code pasted in the HTML box
Personal details are covered.
  1. To show the tool on every page of your store, click the pencil on Triggering.

The Triggering section with its pencil icon
Personal details are covered.
  1. Tick All Pages and click Add.

The Choose a trigger panel with All Pages ticked and the Add button
Personal details are covered.
  1. Click Save.

The tag with its code and the All Pages firing trigger, and the Save button
Personal details are covered.
  1. Name the tag after the tool and click Save.

The Rename Tag dialog with the tag name field and the Save button
Personal details are covered.
  1. Click Submit.

The workspace showing one workspace change and the Submit button
Personal details are covered.
  1. Add a name and description for this version if you like, then click Continue, or Skip.

The Container Version Description dialog with the Name and Description fields and the Continue button
Personal details are covered.
  1. Click Publish.

The Submit Changes panel with Publish and Create Version selected and the Publish button
Personal details are covered.

The tool appears in your store 10 to 15 minutes after you publish.

Find your way around Tag Manager

Tag Manager has three tabs: Workspace, Versions and Admin.

The Workspace, Versions and Admin tabs in Google Tag Manager
Personal details are covered.

Workspace is where you build your container:

SectionWhat it holds
OverviewA summary of the latest changes to your tags.
TagsYour tags, to add, edit or delete them.
TriggersYour triggers, to add, edit or delete them.
VariablesBuilt-In Variables, ready-made by Google and common in tags, and User-Defined Variables that you create.
FoldersGroups that keep your tags, triggers and variables organized.
TemplatesYour own tag and variable definitions, which your team can use alongside Tag Manager's ready-made templates.
The Overview section of the Tag Manager workspace with the container quality, New Tag, Now Editing and Live Version cards
Personal details are covered.

Versions lists every version you published, with how many tags, triggers and variables each has and when it went live.

The Versions tab in Google Tag Manager with the live version and its tag, trigger and variable counts
Personal details are covered.

Admin manages the account and the container: their settings, recent activity, and the people who can use them.

The Admin tab in Google Tag Manager with the account and container settings, activity and User Management
Personal details are covered.

Give your team access to Tag Manager

  1. In the Admin tab, click User Management. The list shows everyone who can access your Tag Manager.

  2. Click + to add a user.

The Account permissions list in Google Tag Manager with the plus button to add a user
Personal details are covered.
  1. Enter the new user's email address.

The Send invitations panel with the email address field and the account permissions
Personal details are covered.
  1. Choose their permissions, then click Invite.

The container permissions Publish, Approve, Edit and Read, all ticked
Personal details are covered.

The four container permissions build on each other:

PermissionWhat the person can do
ReadView tags, triggers and variables without changing them.
EditAlso create workspaces and edit tags, triggers and variables.
ApproveAlso create container versions, ready to publish.
PublishAlso publish versions to your store. It includes all the other permissions.

The person you invite accepts the invitation from the email Google sends them.

If the data doesn't appear

ProblemWhat to check
Analytics shows no visitsThe ID in Zid starts with G- and belongs to the stream for your store address. Click Edit to fix it.
A Tag Manager tag doesn't runThe latest version of the container is published, and the tag has a trigger.
Your store got slowerRemove tags you no longer use, and check heavy codes, such as chat widgets, one by one.

Did this article solve your problem?
Your answer helps us see what needs improving.

Still need help?

Our customer service team is ready to help, or find quick answers in the FAQ.

Contact usRead the FAQ