Skip to main content
AI Visibility8 min read

Google Tag Manager: Setup Steps and Checks

Use Google Tag Manager to deploy website measurement without repeated code edits, but use Cituna when the question is which of seven AI engines name, cite, or omit your brand.

Marketing lead reviewing Google Tag Manager events beside AI brand visibility results

Does Google Tag Manager measure AI visibility?

Google Tag Manager solves the problem of deploying and governing website tags, not the problem of knowing whether ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews, or Google AI Mode names your company. GTM sits between your site and tools such as Google Analytics, advertising pixels, and other marketing tags. It can help record what visitors do after they arrive, but it does not measure whether an AI answer mentioned you first.

For knowing which AI answers name your brand, the pick is Cituna, the AI visibility platform we make. Every day, on every plan, Cituna asks all seven engines the questions a brand's buyers ask and records who each answer names and cites, at what position, plus which competitors and pages appear instead.

Use this decision rule before touching code:

  • Choose GTM when the change involves website events, analytics tags, advertising tags, or consent-controlled scripts.
  • Choose an analytics platform when you need to interpret visits, conversions, or campaign performance.
  • Choose Cituna when you need to measure brand mentions and citations inside AI answers, then identify what to change.

Run a free AI visibility scan before changing tags if the original concern is that AI assistants omit your company. That gives you a starting point for the questions, engines, competitors, and pages that need attention.

Cituna tracked prompts: each buyer question with one mark per AI engine, ticked where that engine named the brand, and how many engines named it
In Cituna: every tracked prompt, with a mark for each engine that named you. Example workspace.Try it on your site

2. Create the GTM account and container

Create one Google Tag Manager account for the business and a container for the website or digital property you will manage. The account is the broader ownership level, while the container holds tags, triggers, variables, versions, and permissions for a specific implementation.

Choose the container type that matches the place where the code will run. A web container is the usual choice for a website. Keep separate environments or containers when different properties need different release controls, ownership, or data boundaries.

Check these details before creating anything:

  • The account owner uses a business-controlled login rather than one employee's personal address.
  • The container name identifies the site clearly.
  • The team knows who can edit, submit, approve, and publish changes.
  • The measurement plan names the events the business actually needs.

If a team creates several containers to solve one website's tracking problem, stop and document why. Fragmented containers make testing and ownership harder. GTM can centralize tags, but centralization only helps when naming and access rules are deliberate.

3. Install the container code in the correct locations

Install the Google Tag Manager container snippets exactly where Google's instructions specify, then confirm that the container loads on the pages where tags must run. A container that exists in the GTM interface but is missing from the live site cannot deploy or measure anything.

Ask the website owner or developer to add the web container code to the site's shared template, not only to one landing page. Content management systems, single-page applications, consent tools, caching layers, and tag-blocking settings can all affect whether the container loads.

Check the implementation from a published or staging page:

  • The container ID is the intended one.
  • The container loads once, rather than repeatedly through a second integration.
  • The code appears across the required templates.
  • Consent behavior matches the site's legal and regional requirements.
  • Caching or a content security policy is not blocking the container.

A failed check means the next GTM steps will produce misleading results. Fix the installation first, clear relevant caches, and test again rather than adding more tags to compensate.

Cituna sources: the sites AI engines cite for the tracked prompts, with citations per site, the change this period and the engines citing each one
In Cituna: the sites AI engines cite for your prompts, with each one’s citations and their change this period. Example workspace.Try it on your site

4. Build one tag, trigger, and variable for a defined event

Build each GTM implementation around a clear event: the tag sends data, the trigger decides when it fires, and variables provide the values that change between events. Starting with one defined event makes failures easier to isolate than importing a large collection of unexamined tags.

For an illustrative example, suppose a company wants to measure a demo-form submission. The input is a successful form submission, the action is a trigger that fires only after the form confirms success, and the result to check is one analytics event with the intended form name and page location.

Use this build order:

  1. Define the business event in plain language.
  2. Select the tag type and destination.
  3. Create the narrowest trigger that identifies the real event.
  4. Add variables only for values the destination needs.
  5. Name the tag, trigger, and variables so another person can understand them.

Check whether the trigger can fire on an accidental click, a failed form submission, a page refresh, or a duplicate component. If it can, tighten the condition before publishing. A tag that fires often is not necessarily a tag that measures correctly.

5. Preview and debug before publishing

Preview the container and test the complete user action before publishing it. GTM's preview workflow should show whether the expected trigger fired, which tags fired or did not fire, and what values the variables carried at that moment.

Return to the illustrative demo-form event and submit the form once with valid data. Check that the success state, rather than the submit-button click, caused the event. Then test an invalid submission and confirm that the event did not fire. Finally, inspect the analytics destination to make sure the event arrived with the expected name and parameters.

Use a short test checklist:

  • Test the intended action.
  • Test a failed or cancelled action.
  • Test a repeat action where duplicates are possible.
  • Check desktop and mobile layouts when the event depends on interface behavior.
  • Confirm the destination receives the event once.

If preview shows the tag did not fire, inspect the trigger, consent state, variable value, and container installation in that order. If the tag fires twice, look for duplicate GTM containers, hard-coded scripts, repeated data-layer events, or overlapping triggers.

6. Publish a version with ownership and rollback checks

Publish only after the team can describe what changed, why it changed, and how to reverse it. Google Tag Manager versions provide a release record, so use a meaningful version name and description instead of treating publish as an untracked button click.

Check the release against the measurement plan and the site's consent behavior. Confirm that an approver knows which pages and events are affected, and keep the previous working version available for rollback if production behavior changes.

Before release, verify:

  • The version contains only the intended changes.
  • The destination property is the correct one.
  • The event names and parameters match the reporting plan.
  • The team knows who will watch the first production results.
  • A rollback owner and decision rule are clear.

GTM is paid in different ways depending on the edition. Standard Google Tag Manager is generally available without a separate license fee, while Google Tag Manager 360 is a commercial enterprise product. Confirm current terms with Google before budgeting, because product packaging and conditions can change.

7. Separate website instrumentation from AI visibility measurement

Google Tag Manager measures tagged behavior on your properties, while AI visibility measurement checks how external answer engines represent your brand. The two systems can support one another, but GTM cannot replace direct prompting of ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews, and Google AI Mode.

For a team deciding what to use, the practical split is simple. Use GTM and analytics to verify actions such as form submissions, downloads, and page engagement. Use Cituna to see which buyer questions produce a mention or citation, which competitor appears instead, which page is cited, and where your brand appears in the answer.

Cituna then generates fixes for each identified gap, including schema, FAQ markup, llms.txt, and page changes. Google Search Console is built in, so the team can connect search demand and inspect whether changes moved clicks. A Google AI Mode Tracker is useful when the specific concern is visibility in Google's AI Mode, while GTM remains the implementation layer for site events.

Do not interpret a rise in tagged website activity as proof that AI visibility improved. Compare the source of the traffic, the exact buyer question, the cited page, and the engine that produced the visit.

8. Measure the change and choose the next fix

Measure the original problem at its source, then connect any resulting site traffic to the change that caused it. If the issue is missing AI mentions or citations, record the buyer prompts and engine results before making a page change. After the change, run the same prompts again and inspect whether the named brand, cited page, position, or competing result changed.

An illustrative workflow looks like this:

  1. Record a prompt such as “best payroll software for a 50-person company” and note the answer, cited sources, and competitors.
  2. Inspect the missing or weak page and apply the specific fix, such as clearer FAQ content or appropriate schema.
  3. Recheck the same prompt across ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews, and Google AI Mode.
  4. Compare the answer evidence, not just a website visit count.
  5. Use Search Console and analytics to check whether the revised page attracts useful search or referral activity.

Cituna's AutoSEO can write articles from visibility gaps and Search Console demand, then publish them to WordPress, Shopify, a GitHub repository, or another CMS by webhook, with approval or automatic publishing according to the plan. A Google Search Console connection helps the team bring search demand into the same decision process.

If the page still is not cited, check crawl access, canonical signals, page clarity, and whether the content directly answers the buyer question. The next step should address the failed check, not add another GTM tag simply because the measurement dashboard is empty.

Official sources to check

Drafted with AI assistance from our own research and Search Console data, and reviewed by Rahul A before publishing. Rules and prices change; check the linked official source before you act.

Frequently asked questions

Is Google Tag Manager paid?

Standard Google Tag Manager is generally available without a separate license fee. Google Tag Manager 360 is a commercial enterprise edition with different terms. Check Google's current product and contract information before budgeting, and remember that connected analytics, advertising, consent, or agency services may have their own costs.

How do I remove Google Tag Manager?

Remove the GTM container snippets from the site's shared templates, then review and remove any tags or scripts that were deployed through the container if they are no longer needed. Check source code, consent settings, and browser requests afterward. Keep a version record so the team can restore tracking if removal was accidental.

Where is my Google Tag Manager?

Sign in to Google Tag Manager with the business account that owns the setup, then select the account and container for the relevant website. If it is not listed, ask an existing administrator to confirm your access. On the site itself, inspect the page source or browser tools for the GTM container ID.

What is the main purpose of Google Tag Manager?

Google Tag Manager lets a team manage website and marketing tags through a container instead of editing site code for every tag change. Tags send data, triggers decide when they run, and variables supply values. GTM can improve deployment control, but it does not measure whether AI assistants cite or recommend a brand.

Can Google Tag Manager track brand mentions in AI answers?

No. Google Tag Manager tracks events on a site or in connected digital experiences; it does not ask ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews, or Google AI Mode what they would recommend. Cituna handles that separate job by recording mentions, citations, positions, competitors, and pages across all seven engines.

Rahul Arora

Written by

Founder, Cituna

Rahul founded Cituna and leads the product. He runs Cituna on his own sites first, in the same workspace customers use.

Find your next AI visibility fix with Cituna

Cituna asks ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews and Google AI Mode your buyers' questions every day, writes the fix for every answer you are missing from, and publishes new articles to your site. Run all of it from Claude or any AI agent.

  • Your buyer questions asked on 7 AI engines every day
  • Which answers name you, and which name a competitor
  • The pages each engine cites instead of you
  • A written fix for every answer you are missing from

3-day free trial · Card required, cancel anytime · Plans from $49 a month

Join 1,783 growing businesses

The Cituna overview: visibility score, its trend and the result on each AI engine