Single Account UTM Tracking Template Updater
Applies a standard UTM tracking template across campaign types in a single Google Ads account.
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
- Review the template string and confirm it matches your analytics naming convention.
- Run once manually on a test account or a controlled campaign subset.
- Validate final URLs in the Google Ads interface after the update.
- Only then run at full account scope or schedule it for maintenance.
- Keep a backup of prior URL conventions if the account has legacy tracking dependencies.
More Scripts In This Library
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.