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.
Script Code
Use this when you want consistent campaign-level UTM tracking rolled out from a manager account without touching each child account manually.
Preview is public. Unlock full code with name and email.
/**
* ==========================================================
* MCC UTM Tracking Template Updater
* ==========================================================
* Description: Applies a UTM tracking template across child
* accounts from a manager account.
*
* Copyright (c) 2026 TwoSquares. All Rights Reserved.
* Developed by Kiril Ivanov
*/
function main() {
var ACCOUNT_LIMIT = 50;
// ... preview shortened
}About This Script
MCC UTM Tracking Template Updater is designed for agencies and in-house teams managing multiple Google Ads accounts from a single manager account. It applies a common tracking template and custom parameter pattern across campaign types so reporting stays consistent.
This updated version keeps the original intent but uses cleaner helper structure, safer logging, and current campaign iteration patterns. It also uses a capped account selector so the execution scope remains controlled.
Because tracking changes can affect reporting and landing-page behaviour, it is best used in a staged rollout. Start with a small account subset, validate URLs, and only then widen execution.
Implementation Notes
- Replace or adapt the TRACKING_TEMPLATE if your reporting team uses a different UTM convention.
- Set ACCOUNT_LIMIT to the number of child accounts you want to process in one run.
- Optionally add specific account IDs instead of relying on a simple limit.
- Run on a small test batch first and validate final URLs in the Google Ads UI.
- Schedule only after confirming your analytics platform parses the UTMs correctly.
More Scripts In This Library
Single Account UTM Tracking Template Updater
Applies a standard UTM tracking template across campaign types in a single Google Ads account.
Final URL UTM Consistency Audit
Audits enabled ad/keyword final URLs for missing UTM parameters and inconsistent tagging patterns.
Campaign Underspending Alert
Flags campaigns and shared budgets that are underspending against expected budget pace, with support for yesterday or intraday checks.
Conversion Action Mix Anomaly Monitor
Monitors conversion action distribution shifts to detect sudden tracking or intent-mix anomalies.
MCC UTM Tracking Template Updater FAQs
Common setup, usage, and troubleshooting questions for this script.