Check Links & UTMs

command

Scan campaign URLs for broken links and malformed UTM parameters.

Download .md

Check Links & UTMs

Verify all campaign URLs are live and UTM parameters conform to naming standards.

Inputs

  • Campaign Name — short identifier of the campaign to audit (e.g., "launch-wave-2").
  • URL List — comma-separated or newline-separated URLs, including landing page and tracking links.
  • UTM Schema — reference naming convention for source/medium/campaign/content (e.g., "source=direct|email, medium=organic|paid").
  • Alert Email — recipient for the final report (optional).
  • Timeout (seconds) — maximum wait per request; default 10.

Steps

  1. Parse {url_list} and extract all unique URLs and embedded UTM parameters.
  2. Validate each UTM parameter against {utm_schema}; flag any non-standard keys or missing required fields.
  3. Check each URL for availability (HTTP status 2xx = live, 3xx = redirect, 4xx/5xx = error).
  4. Categorize results: live URLs, redirects, broken links (4xx/5xx), timeouts, DNS failures.
  5. For each UTM violation, record the URL, parameter name, and expected format.
  6. Generate a summary: total URLs checked, live count, broken count, UTM violations.
  7. If enabled, create monitoring tasks for broken links and forward the report to {alert_email}.

Constraints

  • Rate-limit requests to avoid bot detection; check no more than 1 URL per second per domain.
  • Test headers only; do not click links, execute scripts, or interact with page content.
  • Exclude staging/test domains from live-link requirements unless explicitly specified.

Done when: all campaign URLs are classified as live or broken, UTM parameters are validated against schema, and a summary report is available for review.