TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. Final URL UTM Consistency Audit
Back to scripts

Final URL UTM Consistency Audit

Audits enabled ad/keyword final URLs for missing UTM parameters and inconsistent tagging patterns.

trackingutmqa

Script Details

Name
Final URL UTM Consistency Audit
Author
Kiril Ivanov
Updated
2026-02-27

Script Code

Low-effort QA script to catch attribution gaps and inconsistent campaign tagging before reporting quality drops.

Preview is public. Unlock full code with name and email.

/**
 * ==========================================================
 * Final URL UTM Consistency Audit
 * ==========================================================
 * Description: Checks enabled final URLs for missing UTM
 * parameters and inconsistent tagging.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  var SPREADSHEET_URL = "";
  var SHEET_NAME = "UTM Consistency Audit";
  var REQUIRED_PARAMS = ["utm_source", "utm_medium", "utm_campaign"];
  // ... preview shortened
}

About This Script

Final URL UTM Consistency Audit scans enabled ads and keywords, then checks final URLs for required UTM parameters and consistent naming patterns. It helps reduce attribution blind spots and reporting noise.

The script outputs one row per unique URL with missing-parameter details, source counts, and examples of where each URL appears.

As with your other scripts, sheet handling is robust: blank URL auto-creates a spreadsheet, provided URL writes to existing file and creates the tab if missing.

Implementation Notes

  1. Set REQUIRED_PARAMS to your baseline tracking requirements.
  2. Leave SPREADSHEET_URL blank for auto-create, or supply an existing URL.
  3. Run after major campaign launches to validate tracking hygiene.
  4. Schedule weekly to keep attribution clean across teams.

More Scripts In This Library

Previous Script

Enabled Ad Count By Ad Group

Next Script

Geo Waste Watchlist

MCC UTM Tracking Template Updater

Applies a standard UTM tracking template across up to 50 child accounts from an MCC, covering standard, shopping, and Performance Max campaigns.

Single Account UTM Tracking Template Updater

Applies a standard UTM tracking template across campaign types in a single Google Ads account.

Conversion Action Mix Anomaly Monitor

Monitors conversion action distribution shifts to detect sudden tracking or intent-mix anomalies.

Delete Disapproved Ads

Finds ads with non-approved policy status and removes them, with a dry-run mode enabled by default for safer review first.

Final URL UTM Consistency Audit FAQs

Common setup, usage, and troubleshooting questions for this script.

Dominate your market. Own your growth.

Let's build measurable growth together.

Get Free Audit
TwoSquares

Full-service digital growth agency. SEO, PPC, paid social, GEO and web development for UK brands ready to scale.

ENBG

Ask AI about TwoSquares

ChatGPT
Perplexity
Grok
Claude
Gemini

Services

  • SEO
  • GEO
  • PPC
  • Paid Social
  • Email Marketing
  • Web Design & Dev
  • CRO
  • Strategy & Planning
  • Consultancy
  • Custom Solutions

Solutions

  • AI Search Growth System
  • Demand Generation & Lifecycle
  • Pay-Monthly Websites

Audits

  • PPC Audit
  • SEO Audit
  • GEO Audit
  • Website Audit
  • Full Marketing Audit
Featured on Best in Britain

Company

  • About Us
  • Our Brands
  • Blog
  • Contact
  • Case Studies
  • Careers
  • Templates

Resources

  • Resources Hub
  • AI Readiness Toolkit
  • SEO Glossary
  • Free Tools

Industries

  • Hotels & Resorts
  • Property & Rentals
  • Restaurants & Bars
  • E‑commerce & DTC

Connect

[email protected]
SSL Secured
GDPR Compliant

© 2026 TwoSquares Limited (SC877356). All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySitemap

TWOSQUARES