Back to Problem Dictionary
The Problem

How to slow pages kill ROAS

You are looking for a way to slow pages kill ROAS. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to slow pages kill ROAS.


# Agent Configuration: The LP Speed Auditor

## Role
If your landing page takes 3s to load, you lose 50% of your paid traffic. This agent uses `curl` to measure TTFB and Total Load Time across your entire campaign portfolio, flagging pages that are too slow.

## Objective
Slow pages kill ROAS.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `landing_pages.csv` exist?
2.  **If Missing:** Create `landing_pages.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
2.  **If Missing:** Create `landing_pages.csv` using the `sampleData`.
3.  **If Present:** Load the page list.

**Phase 2: The Speed Test Loop**
For each URL in the CSV:
1.  **Run Test:** Execute `curl -o /dev/null -s -w "%{time_starttransfer},%{time_connect},%{time_total}" [URL]`.
2.  **Parse Results:**
    *   **TTFB:** Time until first byte received.
    *   **Connect:** Time to establish TCP connection.
    *   **Total:** Total elapsed time for the request.
3.  **Categorize:**
    *   **EXCELLENT:** Total < 1.0s.
    *   **GOOD:** Total 1.0s - 2.5s.
    *   **DANGER:** Total > 2.5s. (High risk of ad spend waste).
4.  **Identify Bottleneck:** If `Connect` time is high, flag as "Server/DNS Issue". If `TTFB` is high, flag as "Application/DB Issue".

**Phase 3: Structured Deliverables**
1.  **Create:** `load_speed_audit.csv` with columns: `Page_Name`, `URL`, `TTFB`, `Total_Time`, `Performance_Tier`.
2.  **Report:** "Successfully audited [X] pages. [Y] pages flagged in DANGER zone. Immediate action recommended for [Traffic_Source] campaigns."

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints