Conversion Action Mix Anomaly Monitor
Monitors conversion action distribution shifts to detect sudden tracking or intent-mix anomalies.
Script Code
Strong QA script for catching sudden conversion mix changes that can distort optimization decisions.
Preview is public. Unlock full code with name and email.
/**
* ==========================================================
* Conversion Action Mix Anomaly Monitor
* ==========================================================
* Description: Compares conversion action mix in recent vs
* prior periods to detect anomalies.
*
* Copyright (c) 2026 TwoSquares. All Rights Reserved.
* Developed by Kiril Ivanov
*/
function main() {
var SPREADSHEET_URL = "";
var SHEET_NAME = "Conversion Mix Anomalies";
var MIN_RECENT_CONVERSIONS = 5;
// ... preview shortened
}About This Script
Conversion Action Mix Anomaly Monitor compares conversion-action volume in recent vs prior periods to detect unusual distribution shifts.
It helps identify tracking breakage, form issues, call-tagging drift, or major intent changes before they affect strategic decisions.
As requested, sheet handling is resilient: blank URL auto-creates spreadsheet; provided URL writes to that file and creates tab if needed.
Implementation Notes
- Set MIN_RECENT_CONVERSIONS and MIN_SHARE_SHIFT_PTS for alert sensitivity.
- Run once manually to calibrate expected conversion mix behavior.
- Investigate high shift rows for tracking or funnel changes.
- Schedule daily or weekly based on account velocity.
More Scripts In This Library
Conversion Drop Detector
Compares last 7 days vs prior 7 days by campaign to flag significant conversion drops, with sheet output.
Campaign Spend Spike Monitor
Detects campaigns with unusual week-over-week spend spikes and low conversion support, helping catch waste quickly.
Final URL UTM Consistency Audit
Audits enabled ad/keyword final URLs for missing UTM parameters and inconsistent tagging patterns.
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.
Conversion Action Mix Anomaly Monitor FAQs
Common setup, usage, and troubleshooting questions for this script.