This chapter covers the core features and capabilities of CTA Optimizer.
# Analyze a CTA from a config file
python src/cta_optimizer.py --config examples/cta_config.json --analyze
# Quick inline analysis
python src/cta_optimizer.py --text "Start My Free Trial" --bg-color "#FF6B00" --fg-color "#FFFFFF"
# Contrast check only
python src/cta_optimizer.py --text "Sign Up" --bg-color "#FFAB00" --fg-color "#000000" --contrast-only
# JSON output
python src/cta_optimizer.py --config examples/cta_config.json --format jsonFollow this guide to get CTA Optimizer up and running in your environment.
| Flag | Description |
|---|---|
--config, -c | Path to CTA config JSON file |
--text, -t | CTA button text to analyze |
--bg-color | Button background colour (hex, default: #FF6B00) |
--fg-color | Button text colour (hex, default: #FFFFFF) |
--page-bg | Page background colour (hex, default: #FFFFFF) |
--placement | Button placement zone (default: above-fold) |
--industry | Industry for benchmarks: saas, ecommerce, lead_gen, newsletter, general |
--ctr | Current CTR percentage (for benchmarking) |
--analyze | Run full analysis |
--contrast-only | Only check colour contrast |
--format, -f | Output format: text or json |
--verbose, -v | Enable verbose logging |
See examples/cta_config.json for a complete example.
Get the full CTA Optimizer and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.