Redirect Chain Depth Audit
Checks enabled final URLs for redirect chain depth and flags long chains likely to hurt speed and conversion performance.
Script code
Easy technical QA script for catching slow or risky redirect paths in paid traffic destinations.
Preview is public. Unlock full code with name and email.
/**
* ==========================================================
* Redirect Chain Depth Audit
* ==========================================================
* Description: Audits redirect depth for active destination
* URLs and flags long chains.
*
* Copyright (c) 2026 TwoSquares. All Rights Reserved.
* Developed by Kiril Ivanov
*/
function main() {
var SPREADSHEET_URL = "";
var SHEET_NAME = "Redirect Depth Audit";
var MAX_ALLOWED_REDIRECTS = 2;
// ... preview shortened
}За този script
Redirect Chain Depth Audit evaluates destination URLs used by active ads and keywords, then estimates redirect depth to flag potentially inefficient chains.
Long redirect chains can reduce page speed, create tracking fragility, and hurt conversion rate. This script helps surface those risks quickly.
Output follows your standard sheet behavior: blank URL auto-creates spreadsheet, provided URL writes to existing sheet and creates missing tab.
Implementation notes
- Set MAX_ALLOWED_REDIRECTS and MAX_URLS_TO_CHECK for workload control.
- Run manually and review rows with highest redirect depth first.
- Coordinate with dev team to simplify chains at source.
- Schedule monthly or after major site migrations.
Още scripts в библиотеката
Landing Page Domain Checker
Exports final URLs and extracted domains so you can quickly spot mixed-domain usage across campaigns, ads, and keywords.
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.
Account Anomaly Detector
Compares today’s account performance against the same weekday across previous weeks and alerts when impressions, clicks, conversions, or cost move outside expected bounds.
Redirect Chain Depth Audit FAQs
Чести setup, usage и troubleshooting въпроси за този script.