TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. Single Account UTM Tracking Template Updater
Back to scripts

Single Account UTM Tracking Template Updater

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

utmtrackingurls

Script Details

Name
Single Account UTM Tracking Template Updater
Author
Kiril Ivanov
Updated
2026-03-19

Script Code

Use this when you want a simple single-account script for normalising campaign-level tracking templates.

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

/**
 * ==========================================================
 * Single Account UTM Tracking Template Updater
 * ==========================================================
 * Description: Applies a campaign-level UTM tracking
 * template inside one Google Ads account.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  Logger.log("Processing account: " + AdsApp.currentAccount().getCustomerId());
  // ... preview shortened
}

About This Script

Single Account UTM Tracking Template Updater is the account-level version of the MCC workflow. It applies a common UTM template across standard, shopping, and Performance Max campaigns so reporting remains consistent.

This updated version keeps the original logic but adds cleaner helper functions and safer campaign-name sanitisation for custom parameters. It is intentionally simple so it can be adapted quickly.

As with any bulk URL template change, it should be tested carefully in a non-critical subset first. If your account already uses bespoke landing-page logic, validate before broad rollout.

Implementation Notes

  1. Review the template string and confirm it matches your analytics naming convention.
  2. Run once manually on a test account or a controlled campaign subset.
  3. Validate final URLs in the Google Ads interface after the update.
  4. Only then run at full account scope or schedule it for maintenance.
  5. Keep a backup of prior URL conventions if the account has legacy tracking dependencies.

More Scripts In This Library

Previous Script

Search Term Waste Finder

Next Script

Week-over-Week Query Growth Waste Alert

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.

Final URL UTM Consistency Audit

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

Conversion Action Mix Anomaly Monitor

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

Landing Page Domain Checker

Exports final URLs and extracted domains so you can quickly spot mixed-domain usage across campaigns, ads, and keywords.

Single Account UTM Tracking Template Updater 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