Admin guide: Settings

Tracking & scripts

On this page

Menu group: Settings · Permission needed: settings

Add analytics and ad tracking to your website by pasting IDs from Google Analytics, Tag Manager, Meta Pixel and Microsoft Clarity. You can also add site verification codes and a cookie consent bar. Nothing is added to the website until you fill something in.

What you see on this page#

Five cards. Analytics and pixels, Site verification, Privacy options and Custom code are saved together by the Save tracking settings button at the bottom. The Google Analytics reporting card sits right after Analytics and pixels and has its own Save reporting connection button.

  • Analytics and pixels - Google Analytics 4 measurement ID, Google Tag Manager container ID, Meta (Facebook) Pixel ID and Microsoft Clarity project ID, each with its own on or off switch
  • Site verification - Google Search Console, Bing Webmaster and Meta domain verification; paste just the code or the whole meta tag
  • Privacy options - Do not track admin users or admin pages, and Only load after cookie consent
  • Custom code - header, body-start and footer code boxes, visible to Super Admin only

Google Analytics reporting card (second card, right after Analytics and pixels)#

Analytics and pixels sends visitor data from your store to Google. This card does the opposite: it reads your numbers back into the Website analytics page (left menu, after Sales reports). It is a separate card with its own buttons, and Save reporting connection saves only this card. Each Save button reloads the page, so unsaved text in the other part is lost (you are asked first). It feeds the Key metrics, Traffic and Content tabs (Google Analytics), the Search tab (Search Console) and the Speed tab (PageSpeed). It only reads: it adds nothing to the website and does not change what is sent to Google.

  • Search Console property (optional) - for the Search tab. Type it exactly as Search Console lists it: https://yourstore.example.com/ (with the final slash) or sc-domain:yourstore.example.com. In Search Console add the service account email under Settings > Users and permissions as Restricted (or Full). Search Console data runs about 2 days behind
  • Test Search Console - runs one tiny query and says Test passed or explains the problem (not configured, permission denied, property not found, quota, network)
  • PageSpeed API key (optional) - for the Speed tab. It works without a key at a low limit; a free key from Google Cloud (PageSpeed Insights API) raises it. Stored encrypted, never shown again; tick Remove the saved PageSpeed key to delete it
  • Pages to speed-test (optional) - one path or full address per line, on your own store only, at most 6. Empty means home, /shop, one live product and /combos when combos are on
  • GA4 Property ID - the number from Google Analytics > Admin > Property details (not the G- measurement ID)
  • Service account key - upload the .json file or paste its contents. After saving you only see Key saved and the service account email; the key is never shown again
  • Test connection - runs a tiny report and says Test passed or explains the problem in plain words
  • Disconnect - deletes the saved key (the Property ID stays)
  • The card lists the setup steps: create a Google Cloud project, enable the Google Analytics Data API, create a service account and key, then add the service account email as a Viewer under Admin > Property access management in Google Analytics
  • Connect, test and disconnect are recorded in the Audit log without any key

Good to know#

A few rules to avoid double counting and mistakes.

  • If both GA4 and Tag Manager are set, shop events (view item, add to cart, begin checkout, purchase) go through GA4 only
  • Only load after cookie consent shows a small consent bar; scripts load only after a visitor clicks Accept
  • Custom code is placed on every page exactly as written. Only paste code from sources you trust
  • Other roles cannot edit custom code; existing code stays active and is kept when they save

How to add Google Analytics#

Also asked as: google analytics; ga4; analytics; measurement id; add tracking; track visitors; g-; website statistics

Steps

  1. Open SETTINGS > Tracking & scripts.
  2. Under Analytics and pixels, paste your measurement ID (like G-XXXXXXXXXX) in the Google Analytics 4 box.
  3. Make sure the switch next to it is on.
  4. Optionally keep Do not track admin users or admin pages switched on so your own visits are not counted.
  5. Click Save tracking settings at the bottom of the page.

Tips

  • Data can take a day to show in Google Analytics.

How to connect Google Analytics so Website analytics can show traffic#

Also asked as: website analytics; data analytics; connect google analytics; service account; property id; analytics api; ga4 reporting; traffic report setup; google cloud; json key; read analytics; viewer

Steps

  1. Open console.cloud.google.com, create a project and go to APIs & Services > Library. Search for Google Analytics Data API and click Enable.
  2. Go to IAM & Admin > Service accounts > Create service account. Any name is fine; skip the optional roles.
  3. Open the service account, choose Keys > Add key > Create new key > JSON. A .json file downloads. Keep it private.
  4. Copy the service account email (name@project.iam.gserviceaccount.com).
  5. In Google Analytics open Admin > Property access management, click +, add that email and give it the Viewer role.
  6. In Admin > Property details copy the numeric Property ID.
  7. Open SETTINGS > Tracking & scripts, find the Google Analytics reporting card (right after Analytics and pixels), enter the Property ID, upload or paste the JSON key and click Save reporting connection.
  8. Click Test connection. When it says Test passed, open Website analytics in the left menu (it is right after Sales reports).

Tips

  • The key is stored encrypted and never shown again. Delete the downloaded .json from your computer afterwards. Disconnect removes it from the store.

Test connection says permission denied#

Also asked as: permission denied; test connection failed; 403; ga4 permission; not allowed; service account cannot read; property not found; api disabled; quota; google analytics error; test failed

Steps

  1. Permission denied means Google knows the key but the service account is not allowed on the property. In Google Analytics open Admin > Property access management and make sure the service account email (shown on the card) is listed as Viewer. Allow a few minutes after adding it.
  2. If the message says the Data API is switched off, open Google Cloud > APIs & Services > Library, search Google Analytics Data API and click Enable on the same project as the service account.
  3. If it says the property was not found, check the Property ID: it is a plain number from Admin > Property details, not the G- code.
  4. If it says the key was not accepted, create a new JSON key in Google Cloud and save it again.
  5. If it says Google asked us to slow down (quota), wait a few minutes. Press Test connection again.

Tips

  • Nothing on the website is affected by any of these errors. Ask Grokeeper if it still fails.

How to add the Facebook (Meta) Pixel or Tag Manager#

Also asked as: facebook pixel; meta pixel; tag manager; gtm; ads tracking; clarity; heatmap; instagram ads

Steps

  1. Open SETTINGS > Tracking & scripts.
  2. Paste the Meta (Facebook) Pixel ID, or the Google Tag Manager container ID (GTM-XXXXXXX), in its box.
  3. Switch it on.
  4. Click Save tracking settings at the bottom of the page.

Tips

  • If GA4 and Tag Manager are both on, events go through GA4 only to avoid double counting.

How to verify your site with Google Search Console#

Also asked as: search console; site verification; verify website; bing webmaster; google verification; meta tag; domain verification

Steps

  1. In Google Search Console choose the HTML tag verification method and copy the meta tag or its content value.
  2. Open SETTINGS > Tracking & scripts and find Site verification.
  3. Paste it into the Google Search Console box (the full tag is fine; only the content is kept).
  4. Click Save tracking settings, then press Verify in Google.

Also asked as: cookie consent; cookie banner; gdpr banner; accept cookies; privacy banner; consent

Steps

  1. Open SETTINGS > Tracking & scripts and find Privacy options.
  2. Switch on Only load after cookie consent.
  3. Click Save tracking settings.

Tips

  • Scripts, including custom code, then load only after a visitor clicks Accept. It is off by default so the website looks unchanged.