TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. Conversion Drop Detector
Back to scripts

Conversion Drop Detector

Compares last 7 days vs prior 7 days by campaign to flag significant conversion drops, with sheet output.

anomaly-detectionconversionsmonitoring

Script Details

Name
Conversion Drop Detector
Author
Kiril Ivanov
Updated
2026-02-27

Script Code

Simple weekly health-check that catches conversion declines early so teams can investigate before bigger losses.

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

/**
 * ==========================================================
 * Conversion Drop Detector
 * ==========================================================
 * Description: Compares last 7 days vs prior 7 days and flags
 * campaigns with significant conversion declines.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  var SPREADSHEET_URL = "";
  var SHEET_NAME = "Conversion Drop Detector";
  var MIN_PREV_CONVERSIONS = 3;
  // ... preview shortened
}

About This Script

Conversion Drop Detector compares campaign conversion volume between the last 7 days and the previous 7 days. It highlights statistically meaningful drops so teams can react faster to broken tracking, creative fatigue, auction shifts, or site issues.

The script calculates drop percent and includes spend context for both windows to avoid overreacting to low-volume noise.

It writes outputs to Google Sheets with the same resilient behavior: blank URL creates a new sheet, provided URL writes into existing sheet and creates missing tab.

Implementation Notes

  1. Set MIN_PREV_CONVERSIONS and MIN_DROP_PERCENT to reduce false positives.
  2. Leave SPREADSHEET_URL blank to auto-create, or provide an existing URL.
  3. Run manually first to verify signal quality for your account size.
  4. Schedule daily or 2-3x weekly for early decline detection.

More Scripts In This Library

Previous Script

Conversion Action Mix Anomaly Monitor

Next Script

Day-of-Week Waste Finder

Campaign Spend Spike Monitor

Detects campaigns with unusual week-over-week spend spikes and low conversion support, helping catch waste quickly.

Conversion Action Mix Anomaly Monitor

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

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.

Broken Final URL Checker

Checks enabled ad and keyword final URLs for 4xx/5xx errors, with optional sheet logging and daily alerting.

Conversion Drop Detector 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