Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Enhance tool documentation and add new calculators

Bill Yangaa5176333e8f
diff --git a/docs/src/app/(home)/tools/CLAUDE.md b/docs/src/app/(home)/tools/CLAUDE.md
index ffa694cb0..eb17643ee 100644
--- a/docs/src/app/(home)/tools/CLAUDE.md
+++ b/docs/src/app/(home)/tools/CLAUDE.md
@@ -282,6 +282,35 @@ The `educationalContent` section should be comprehensive and helpful:
- Keep paragraphs concise and scannable
- Add examples to illustrate concepts
+### **IMPORTANT: List Item Formatting**
+
+**DO NOT** add manual bullet points (`•`) to list items. The ToolPageLayout component automatically styles list items with bullets.
+
+❌ **WRONG:**
+```tsx
+<ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+ <span className="text-emerald-500 mr-2">•</span>
+ <span>
+ <strong>Item:</strong> Description
+ </span>
+ </li>
+</ul>
+```
+
+✅ **CORRECT:**
+```tsx
+<ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+ <span>
+ <strong>Item:</strong> Description
+ </span>
+ </li>
+</ul>
+```
+
+The component's CSS handles bullet styling automatically, so adding `<span className="text-emerald-500 mr-2">•</span>` creates duplicate bullets.
+
## FAQ Guidelines
Aim for 4-6 FAQs that cover:
diff --git a/docs/src/app/(home)/tools/conversion-rate-calculator/ConversionRateForm.tsx b/docs/src/app/(home)/tools/conversion-rate-calculator/ConversionRateForm.tsx
new file mode 100644
index 000000000..26cab0922
--- /dev/null
+++ b/docs/src/app/(home)/tools/conversion-rate-calculator/ConversionRateForm.tsx
@@ -0,0 +1,215 @@
+"use client";
+
+import { useState } from "react";
+
+export function ConversionRateForm() {
+ const [visitors, setVisitors] = useState("");
+ const [conversions, setConversions] = useState("");
+ const [selectedSource, setSelectedSource] = useState("Overall Website");
+ const [conversionRate, setConversionRate] = useState<number | null>(null);
+
+ const sourceBenchmarks: Record<string, number> = {
+ "Overall Website": 2.35,
+ "E-commerce": 2.86,
+ "B2B": 2.23,
+ "SaaS": 3.0,
+ "Landing Pages": 4.02,
+ "Email Campaigns": 3.2,
+ "Social Media": 1.85,
+ "Paid Search": 3.75,
+ "Organic Search": 2.4,
+ "Display Ads": 0.77,
+ };
+
+ const calculateConversionRate = () => {
+ const visitorsNum = parseFloat(visitors);
+ const conversionsNum = parseFloat(conversions);
+
+ if (isNaN(visitorsNum) || isNaN(conversionsNum) || visitorsNum === 0) {
+ setConversionRate(null);
+ return;
+ }
+
+ const result = (conversionsNum / visitorsNum) * 100;
+ setConversionRate(result);
+ };
+
+ const clearForm = () => {
+ setVisitors("");
+ setConversions("");
+ setSelectedSource("Overall Website");
+ setConversionRate(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (conversionRate === null) return null;
+ const benchmark = sourceBenchmarks[selectedSource];
+ const difference = conversionRate - benchmark;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Visitors <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={visitors}
+ onChange={(e) => setVisitors(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateConversionRate()}
+ placeholder="10000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total number of visitors or sessions
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Conversions <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={conversions}
+ onChange={(e) => setConversions(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateConversionRate()}
+ placeholder="235"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of successful conversions (purchases, sign-ups, etc.)
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Traffic Source / Type
+ </label>
+ <select
+ value={selectedSource}
+ onChange={(e) => setSelectedSource(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(sourceBenchmarks).map((source) => (
+ <option key={source} value={source}>
+ {source}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select traffic source to compare against benchmarks
+ </p>
+ </div>
+
+ {conversionRate !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Conversion Rate
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ {conversionRate.toFixed(2)}%
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference >= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference >= -0.5
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Benchmark: {selectedSource}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ {comparison.benchmark.toFixed(2)}%
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference >= 0 ? (
+ <>
+ Your conversion rate is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {comparison.difference.toFixed(2)}%
+ </span>{" "}
+ above the benchmark
+ </>
+ ) : (
+ <>
+ Your conversion rate is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {Math.abs(comparison.difference).toFixed(2)}%
+ </span>{" "}
+ below the benchmark
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Visitors
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(visitors).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Conversions
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(conversions).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Non-Conversions
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {(parseFloat(visitors) - parseFloat(conversions)).toLocaleString()}
+ </div>
+ </div>
+ </div>
+
+ {conversionRate < 1 && (
+ <div className="px-4 py-3 bg-orange-50 dark:bg-orange-950/30 border border-orange-200 dark:border-orange-900 rounded-lg">
+ <div className="text-sm font-medium text-orange-900 dark:text-orange-200 mb-1">
+ Low Conversion Rate
+ </div>
+ <div className="text-xs text-orange-700 dark:text-orange-300">
+ Consider optimizing your landing page, improving your value proposition, or
+ refining your targeting to improve conversions.
+ </div>
+ </div>
+ )}
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateConversionRate}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate Conversion Rate
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/conversion-rate-calculator/page.tsx b/docs/src/app/(home)/tools/conversion-rate-calculator/page.tsx
new file mode 100644
index 000000000..37e34754d
--- /dev/null
+++ b/docs/src/app/(home)/tools/conversion-rate-calculator/page.tsx
@@ -0,0 +1,358 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { ConversionRateForm } from "./ConversionRateForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Conversion Rate Calculator | Optimize Your Marketing Funnel",
+ description:
+ "Calculate conversion rates instantly with our free calculator. Compare against industry benchmarks, identify optimization opportunities, and improve ROI across all channels.",
+ openGraph: {
+ title: "Free Conversion Rate Calculator",
+ description:
+ "Calculate and optimize your conversion rates with industry benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/conversion-rate-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free Conversion Rate Calculator",
+ description: "Calculate your conversion rate and compare against industry benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/conversion-rate-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Conversion Rate Calculator",
+ description:
+ "Free conversion rate calculator to measure marketing effectiveness and compare against industry benchmarks",
+ url: "https://rybbit.com/tools/conversion-rate-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is conversion rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Conversion rate is the percentage of visitors who complete a desired action, such as making a purchase or signing up. It's calculated by dividing conversions by total visitors and multiplying by 100.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate conversion rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Conversion Rate = (Total Conversions ÷ Total Visitors) × 100. For example, if you had 10,000 visitors and 235 conversions, your conversion rate would be 2.35%.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good conversion rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good conversion rate varies by industry and traffic source. Overall website averages are around 2.35%, e-commerce is 2.86%, SaaS is 3%, and landing pages average 4.02%. Top performers often achieve 5-10% or higher.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I improve my conversion rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Improve conversion rates by optimizing page speed, clarifying your value proposition, simplifying forms, adding social proof, using clear CTAs, A/B testing elements, and improving mobile experience.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Conversion Rate?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Conversion rate is the percentage of visitors who complete a desired action on your
+ website or landing page. This could be making a purchase, signing up for a newsletter,
+ downloading a resource, or any other goal that moves prospects through your marketing
+ funnel.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ It's one of the most critical metrics in digital marketing because it directly measures
+ how effectively you turn traffic into valuable outcomes. Even small improvements in
+ conversion rate can significantly impact revenue and ROI.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate Conversion Rate
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ Conversion Rate = (Conversions ÷ Visitors) × 100
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Example:</strong> If you had 10,000 visitors and 235 conversions:
+ </p>
+ <p className="text-center font-mono">
+ Conversion Rate = (235 ÷ 10,000) × 100 = 2.35%
+ </p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Industry Benchmarks by Source
+ </h3>
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
+ <div>
+ <h4 className="font-semibold text-neutral-900 dark:text-white mb-2">
+ By Industry
+ </h4>
+ <ul className="space-y-2">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Landing Pages:</strong> 4.02%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SaaS:</strong> 3.0%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>E-commerce:</strong> 2.86%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Overall Website:</strong> 2.35%
+ </span>
+ </li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="font-semibold text-neutral-900 dark:text-white mb-2">
+ By Traffic Source
+ </h4>
+ <ul className="space-y-2">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Paid Search:</strong> 3.75%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Email Campaigns:</strong> 3.2%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Organic Search:</strong> 2.4%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Display Ads:</strong> 0.77%
+ </span>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why Conversion Rate Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Maximize ROI:</strong> Get more value from existing traffic without
+ increasing ad spend
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Identify issues:</strong> Low conversion rates signal problems with user
+ experience or messaging
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Benchmark performance:</strong> Compare effectiveness across channels and
+ campaigns
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Guide optimization:</strong> Focus efforts on high-impact improvements
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Improve Your Conversion Rate
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Optimize page speed:</strong> Every second of load time reduces conversions by
+ 7%
+ </li>
+ <li>
+ <strong>Clarify value proposition:</strong> Make benefits immediately clear and
+ compelling
+ </li>
+ <li>
+ <strong>Simplify forms:</strong> Only ask for essential information to reduce friction
+ </li>
+ <li>
+ <strong>Add social proof:</strong> Include testimonials, reviews, and trust badges
+ </li>
+ <li>
+ <strong>Use clear CTAs:</strong> Make call-to-action buttons prominent and
+ action-oriented
+ </li>
+ <li>
+ <strong>A/B test elements:</strong> Continuously test headlines, images, copy, and
+ layouts
+ </li>
+ <li>
+ <strong>Improve mobile experience:</strong> Ensure responsive design and fast mobile
+ load times
+ </li>
+ <li>
+ <strong>Remove distractions:</strong> Eliminate unnecessary navigation and competing
+ calls-to-action
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Micro vs Macro Conversions
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Understanding different conversion types helps optimize the entire funnel:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Macro conversions:</strong> Primary goals like purchases, subscriptions, or
+ qualified leads
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Micro conversions:</strong> Smaller actions like email sign-ups, content
+ downloads, or video views that indicate progress
+ </span>
+ </li>
+ </ul>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is conversion rate?",
+ answer:
+ "Conversion rate is the percentage of visitors who complete a desired action, such as making a purchase, signing up for a newsletter, or downloading a resource. It's calculated by dividing the number of conversions by total visitors and multiplying by 100.",
+ },
+ {
+ question: "How do I calculate conversion rate?",
+ answer:
+ "Conversion Rate = (Total Conversions ÷ Total Visitors) × 100. For example, if you had 10,000 visitors and 235 conversions, your conversion rate would be 2.35%.",
+ },
+ {
+ question: "What is a good conversion rate?",
+ answer:
+ "A good conversion rate varies by industry and traffic source. Overall website averages are around 2.35%, e-commerce is 2.86%, SaaS is 3%, and landing pages average 4.02%. Top-performing pages often achieve 5-10% or higher. The key is to continuously improve your own baseline.",
+ },
+ {
+ question: "How is conversion rate different from click-through rate?",
+ answer: (
+ <>
+ Click-through rate (CTR) measures the percentage of people who click on an ad or link,
+ while conversion rate measures the percentage who complete a desired action after
+ clicking. CTR measures initial engagement, while conversion rate measures final
+ outcomes. Calculate your{" "}
+ <Link
+ href="/tools/ctr-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ CTR here
+ </Link>
+ .
+ </>
+ ),
+ },
+ {
+ question: "How can I improve my conversion rate?",
+ answer:
+ "Improve conversion rates by optimizing page speed, clarifying your value proposition, simplifying forms, adding social proof (testimonials, reviews), using clear and prominent CTAs, A/B testing different elements, improving mobile experience, and removing unnecessary distractions.",
+ },
+ {
+ question: "What's the relationship between conversion rate and cost per acquisition?",
+ answer: (
+ <>
+ Conversion rate and CPA are inversely related. Higher conversion rates typically lead
+ to lower cost per acquisition because you're converting more of your existing traffic.
+ A 1% improvement in conversion rate can significantly reduce your{" "}
+ <Link
+ href="/tools/cost-per-acquisition-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ cost per acquisition
+ </Link>
+ .
+ </>
+ ),
+ },
+];
+
+export default function ConversionRatePage() {
+ return (
+ <ToolPageLayout
+ toolSlug="conversion-rate-calculator"
+ title="Conversion Rate Calculator"
+ description="Calculate conversion rates and compare against industry benchmarks to optimize your marketing funnel and maximize ROI"
+ badge="Free Tool"
+ toolComponent={<ConversionRateForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track conversion rates with Rybbit"
+ ctaDescription="Monitor conversion rates across pages, campaigns, and channels in real-time with Rybbit's analytics platform."
+ ctaEventLocation="conversion_rate_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-acquisition-calculator/CostPerAcquisitionForm.tsx b/docs/src/app/(home)/tools/cost-per-acquisition-calculator/CostPerAcquisitionForm.tsx
new file mode 100644
index 000000000..046f8bc97
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-acquisition-calculator/CostPerAcquisitionForm.tsx
@@ -0,0 +1,195 @@
+"use client";
+
+import { useState } from "react";
+
+export function CostPerAcquisitionForm() {
+ const [spend, setSpend] = useState("");
+ const [conversions, setConversions] = useState("");
+ const [selectedIndustry, setSelectedIndustry] = useState("E-commerce");
+ const [cpa, setCpa] = useState<number | null>(null);
+
+ const industryBenchmarks: Record<string, number> = {
+ "E-commerce": 45.27,
+ "SaaS": 205,
+ "B2B": 197,
+ "Finance": 44,
+ "Healthcare": 189,
+ "Education": 116,
+ "Real Estate": 213,
+ "Travel": 7.19,
+ "Legal Services": 135,
+ "Home Services": 81,
+ };
+
+ const calculateCPA = () => {
+ const spendNum = parseFloat(spend);
+ const conversionsNum = parseFloat(conversions);
+
+ if (isNaN(spendNum) || isNaN(conversionsNum) || conversionsNum === 0) {
+ setCpa(null);
+ return;
+ }
+
+ const result = spendNum / conversionsNum;
+ setCpa(result);
+ };
+
+ const clearForm = () => {
+ setSpend("");
+ setConversions("");
+ setSelectedIndustry("E-commerce");
+ setCpa(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (cpa === null) return null;
+ const benchmark = industryBenchmarks[selectedIndustry];
+ const difference = ((cpa - benchmark) / benchmark) * 100;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Marketing Spend ($) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={spend}
+ onChange={(e) => setSpend(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPA()}
+ placeholder="10000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total amount spent on marketing campaigns
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Number of Conversions <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={conversions}
+ onChange={(e) => setConversions(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPA()}
+ placeholder="150"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total number of acquisitions or conversions achieved
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Industry
+ </label>
+ <select
+ value={selectedIndustry}
+ onChange={(e) => setSelectedIndustry(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(industryBenchmarks).map((industry) => (
+ <option key={industry} value={industry}>
+ {industry}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select your industry to compare against benchmarks
+ </p>
+ </div>
+
+ {cpa !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Cost Per Acquisition
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ ${cpa.toFixed(2)}
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference <= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference <= 20
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Industry Benchmark: {selectedIndustry}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ ${comparison.benchmark.toFixed(2)}
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference <= 0 ? (
+ <>
+ Your CPA is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {Math.abs(comparison.difference).toFixed(1)}% below
+ </span>{" "}
+ the industry average
+ </>
+ ) : (
+ <>
+ Your CPA is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {comparison.difference.toFixed(1)}% above
+ </span>{" "}
+ the industry average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Spend
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ ${parseFloat(spend).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Conversions
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(conversions).toLocaleString()}
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateCPA}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate CPA
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-acquisition-calculator/page.tsx b/docs/src/app/(home)/tools/cost-per-acquisition-calculator/page.tsx
new file mode 100644
index 000000000..f3533a469
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-acquisition-calculator/page.tsx
@@ -0,0 +1,292 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { CostPerAcquisitionForm } from "./CostPerAcquisitionForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Cost Per Acquisition (CPA) Calculator | Measure Campaign Efficiency",
+ description:
+ "Calculate your cost per acquisition instantly with our free CPA calculator. Compare against industry benchmarks, optimize your marketing spend, and improve campaign ROI.",
+ openGraph: {
+ title: "Free Cost Per Acquisition (CPA) Calculator",
+ description:
+ "Calculate and optimize your customer acquisition costs with industry benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/cost-per-acquisition-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free CPA Calculator",
+ description: "Calculate your cost per acquisition and compare against industry benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/cost-per-acquisition-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Cost Per Acquisition Calculator",
+ description:
+ "Free CPA calculator to measure customer acquisition costs and compare against industry benchmarks",
+ url: "https://rybbit.com/tools/cost-per-acquisition-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is Cost Per Acquisition (CPA)?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Cost Per Acquisition (CPA) is a marketing metric that measures the total cost of acquiring one paying customer. It's calculated by dividing total marketing spend by the number of conversions or acquisitions.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate CPA?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CPA = Total Marketing Spend ÷ Number of Conversions. For example, if you spent $10,000 and acquired 150 customers, your CPA would be $66.67.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good CPA?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good CPA varies by industry and business model. E-commerce averages $45, SaaS around $205, and B2B approximately $197. The key is that your CPA should be significantly lower than your customer lifetime value (CLV).",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I lower my CPA?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Lower your CPA by improving targeting, optimizing landing pages, A/B testing ad creatives, refining audience segments, improving conversion rates, and focusing on high-performing channels.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Cost Per Acquisition (CPA)?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Cost Per Acquisition (CPA) is a critical marketing metric that measures how much it costs
+ your business to acquire one paying customer through your marketing efforts. It's
+ calculated by dividing your total marketing spend by the number of conversions or
+ acquisitions during a specific period.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ Understanding your CPA is essential for evaluating marketing campaign effectiveness,
+ allocating budgets efficiently, and ensuring your customer acquisition strategy is
+ profitable and sustainable.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate CPA
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ CPA = Total Marketing Spend ÷ Number of Conversions
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Example:</strong> If you spent $10,000 on a campaign and acquired 150
+ customers:
+ </p>
+ <p className="text-center font-mono">CPA = $10,000 ÷ 150 = $66.67 per customer</p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Industry Benchmarks
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>E-commerce:</strong> $45.27 average CPA
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SaaS:</strong> $205 average CPA
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>B2B:</strong> $197 average CPA
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Finance:</strong> $44 average CPA
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Travel:</strong> $7.19 average CPA
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why CPA Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Profitability:</strong> Ensures acquisition costs don't exceed customer value
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Budget optimization:</strong> Identifies which channels deliver the best ROI
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Campaign performance:</strong> Measures effectiveness of marketing initiatives
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Strategic planning:</strong> Informs scaling decisions and growth strategies
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Reduce Your CPA
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Improve targeting:</strong> Focus on high-intent audiences with precise
+ demographic and behavioral targeting
+ </li>
+ <li>
+ <strong>Optimize landing pages:</strong> Increase conversion rates with clear CTAs, fast
+ load times, and compelling copy
+ </li>
+ <li>
+ <strong>A/B test creatives:</strong> Continuously test ad variations to improve
+ click-through and conversion rates
+ </li>
+ <li>
+ <strong>Refine audience segments:</strong> Exclude low-performing segments and double
+ down on converters
+ </li>
+ <li>
+ <strong>Improve quality scores:</strong> Higher ad relevance reduces costs on platforms
+ like Google Ads
+ </li>
+ <li>
+ <strong>Leverage retargeting:</strong> Re-engage warm audiences who are more likely to
+ convert at lower costs
+ </li>
+ </ol>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is Cost Per Acquisition (CPA)?",
+ answer:
+ "Cost Per Acquisition (CPA) is a marketing metric that measures the total cost of acquiring one paying customer. It's calculated by dividing total marketing spend by the number of conversions or acquisitions.",
+ },
+ {
+ question: "How do I calculate CPA?",
+ answer:
+ "CPA = Total Marketing Spend ÷ Number of Conversions. For example, if you spent $10,000 and acquired 150 customers, your CPA would be $66.67.",
+ },
+ {
+ question: "What is a good CPA?",
+ answer:
+ "A good CPA varies by industry and business model. E-commerce averages $45, SaaS around $205, and B2B approximately $197. The key is that your CPA should be significantly lower than your customer lifetime value (CLV) to ensure profitability.",
+ },
+ {
+ question: "How is CPA different from CPL (Cost Per Lead)?",
+ answer: (
+ <>
+ CPA measures the cost to acquire a paying customer, while CPL measures the cost to
+ acquire a lead (who may or may not convert). CPA is typically higher than CPL because
+ it accounts for the full conversion funnel. Learn more with our{" "}
+ <Link
+ href="/tools/cost-per-lead-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ Cost Per Lead Calculator
+ </Link>
+ .
+ </>
+ ),
+ },
+ {
+ question: "How can I lower my CPA?",
+ answer:
+ "Lower your CPA by improving targeting, optimizing landing pages, A/B testing ad creatives, refining audience segments, improving conversion rates, and focusing on high-performing channels. Also consider improving your quality scores on ad platforms to reduce costs.",
+ },
+ {
+ question: "What's the relationship between CPA and CLV?",
+ answer: (
+ <>
+ Your CPA should be significantly lower than your Customer Lifetime Value (CLV) to ensure
+ profitability. A common rule is that CLV should be at least 3x your CPA. Calculate your
+ CLV with our{" "}
+ <Link
+ href="/tools/customer-lifetime-value-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ Customer Lifetime Value Calculator
+ </Link>
+ .
+ </>
+ ),
+ },
+];
+
+export default function CostPerAcquisitionPage() {
+ return (
+ <ToolPageLayout
+ toolSlug="cost-per-acquisition-calculator"
+ title="Cost Per Acquisition (CPA) Calculator"
+ description="Calculate your customer acquisition costs and compare against industry benchmarks to optimize your marketing ROI"
+ badge="Free Tool"
+ toolComponent={<CostPerAcquisitionForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track your acquisition costs with Rybbit"
+ ctaDescription="Monitor CPA, conversion rates, and campaign performance in real-time with Rybbit's analytics platform."
+ ctaEventLocation="cost_per_acquisition_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-lead-calculator/CostPerLeadForm.tsx b/docs/src/app/(home)/tools/cost-per-lead-calculator/CostPerLeadForm.tsx
new file mode 100644
index 000000000..4e4c16922
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-lead-calculator/CostPerLeadForm.tsx
@@ -0,0 +1,207 @@
+"use client";
+
+import { useState } from "react";
+
+export function CostPerLeadForm() {
+ const [spend, setSpend] = useState("");
+ const [leads, setLeads] = useState("");
+ const [selectedChannel, setSelectedChannel] = useState("Overall");
+ const [cpl, setCpl] = useState<number | null>(null);
+
+ const channelBenchmarks: Record<string, number> = {
+ "Overall": 198,
+ "Google Ads": 116,
+ "Facebook Ads": 97,
+ "LinkedIn Ads": 75,
+ "Instagram Ads": 94,
+ "Content Marketing": 92,
+ "Email Marketing": 53,
+ "SEO/Organic": 31,
+ "Webinars": 72,
+ "Trade Shows": 811,
+ };
+
+ const calculateCPL = () => {
+ const spendNum = parseFloat(spend);
+ const leadsNum = parseFloat(leads);
+
+ if (isNaN(spendNum) || isNaN(leadsNum) || leadsNum === 0) {
+ setCpl(null);
+ return;
+ }
+
+ const result = spendNum / leadsNum;
+ setCpl(result);
+ };
+
+ const clearForm = () => {
+ setSpend("");
+ setLeads("");
+ setSelectedChannel("Overall");
+ setCpl(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (cpl === null) return null;
+ const benchmark = channelBenchmarks[selectedChannel];
+ const difference = ((cpl - benchmark) / benchmark) * 100;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Marketing Spend ($) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={spend}
+ onChange={(e) => setSpend(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPL()}
+ placeholder="5000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total amount spent on lead generation
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Number of Leads Generated <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={leads}
+ onChange={(e) => setLeads(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPL()}
+ placeholder="50"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total number of qualified leads acquired
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Marketing Channel
+ </label>
+ <select
+ value={selectedChannel}
+ onChange={(e) => setSelectedChannel(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(channelBenchmarks).map((channel) => (
+ <option key={channel} value={channel}>
+ {channel}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select channel to compare against benchmarks
+ </p>
+ </div>
+
+ {cpl !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Cost Per Lead
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ ${cpl.toFixed(2)}
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference <= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference <= 20
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Channel Benchmark: {selectedChannel}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ ${comparison.benchmark.toFixed(2)}
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference <= 0 ? (
+ <>
+ Your CPL is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {Math.abs(comparison.difference).toFixed(1)}% below
+ </span>{" "}
+ the channel average
+ </>
+ ) : (
+ <>
+ Your CPL is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {comparison.difference.toFixed(1)}% above
+ </span>{" "}
+ the channel average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Spend
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ ${parseFloat(spend).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Leads Generated
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(leads).toLocaleString()}
+ </div>
+ </div>
+ </div>
+
+ <div className="px-4 py-3 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-900 rounded-lg">
+ <div className="text-sm font-medium text-blue-900 dark:text-blue-200 mb-1">
+ Lead to Customer Conversion
+ </div>
+ <div className="text-xs text-blue-700 dark:text-blue-300">
+ If your lead-to-customer conversion rate is <strong>20%</strong>, your cost per
+ acquisition would be approximately{" "}
+ <strong>${(cpl / 0.2).toFixed(2)}</strong>. Improving your conversion rate
+ directly reduces acquisition costs.
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateCPL}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate CPL
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-lead-calculator/page.tsx b/docs/src/app/(home)/tools/cost-per-lead-calculator/page.tsx
new file mode 100644
index 000000000..b23f0563b
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-lead-calculator/page.tsx
@@ -0,0 +1,373 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { CostPerLeadForm } from "./CostPerLeadForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Cost Per Lead (CPL) Calculator | Measure Lead Generation Efficiency",
+ description:
+ "Calculate cost per lead instantly with our free CPL calculator. Compare across channels, optimize marketing spend, and improve lead generation ROI.",
+ openGraph: {
+ title: "Free Cost Per Lead (CPL) Calculator",
+ description:
+ "Calculate and optimize your cost per lead with channel-specific benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/cost-per-lead-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free CPL Calculator",
+ description: "Calculate your cost per lead and compare against channel benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/cost-per-lead-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Cost Per Lead Calculator",
+ description:
+ "Free CPL calculator to measure lead generation costs and compare against channel benchmarks",
+ url: "https://rybbit.com/tools/cost-per-lead-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is Cost Per Lead (CPL)?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Cost Per Lead (CPL) is the total cost of generating one qualified lead through marketing efforts. It's calculated by dividing total marketing spend by the number of leads generated.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate CPL?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CPL = Total Marketing Spend ÷ Number of Leads. For example, if you spent $5,000 and generated 50 leads, your CPL would be $100.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good CPL?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good CPL varies by channel and industry. SEO/Organic averages $31, Email Marketing $53, Facebook Ads $97, and LinkedIn Ads $75. The key is that your CPL should be low enough to maintain profitable customer acquisition when factoring in lead-to-customer conversion rates.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I lower my CPL?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Lower CPL by improving targeting, optimizing landing pages, refining ad copy, testing different channels, improving lead quality filters, and enhancing conversion paths.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Cost Per Lead (CPL)?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Cost Per Lead (CPL) measures how much it costs to generate one qualified lead through
+ your marketing efforts. Unlike CPA (Cost Per Acquisition), which measures the cost to
+ acquire a paying customer, CPL focuses on the earlier stage of getting potential
+ customers into your sales funnel.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ Understanding CPL is essential for evaluating lead generation campaigns, comparing
+ channel effectiveness, and optimizing marketing budgets. It's particularly important for
+ B2B businesses and companies with longer sales cycles where leads require nurturing
+ before conversion.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate CPL
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ CPL = Total Marketing Spend ÷ Number of Leads
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Example:</strong> If you spent $5,000 on a campaign and generated 50 leads:
+ </p>
+ <p className="text-center font-mono">CPL = $5,000 ÷ 50 = $100 per lead</p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Channel Benchmarks
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SEO/Organic:</strong> $31 (highest ROI long-term)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Email Marketing:</strong> $53 (low cost, existing audience)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Webinars:</strong> $72 (high engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>LinkedIn Ads:</strong> $75 (B2B targeting)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Content Marketing:</strong> $92 (builds authority)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Instagram Ads:</strong> $94 (visual engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Facebook Ads:</strong> $97 (broad reach)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Google Ads:</strong> $116 (high intent traffic)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Overall Average:</strong> $198
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Trade Shows:</strong> $811 (high cost, face-to-face)
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why CPL Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Channel comparison:</strong> Identify which marketing channels deliver the
+ most cost-effective leads
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Budget optimization:</strong> Allocate resources to the highest-performing
+ channels
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Campaign evaluation:</strong> Measure effectiveness of specific campaigns or
+ tactics
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Sales forecasting:</strong> Predict pipeline growth based on lead generation
+ costs
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ CPL vs CPA: Understanding the Difference
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ CPL and CPA represent different stages of the customer journey:
+ </p>
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="font-semibold text-neutral-900 dark:text-white mb-2">
+ Cost Per Lead (CPL)
+ </div>
+ <ul className="text-sm text-neutral-700 dark:text-neutral-300 space-y-1">
+ <li>Measures lead generation cost</li>
+ <li>Top of funnel metric</li>
+ <li>Typically lower cost</li>
+ <li>Focus on volume and quality</li>
+ </ul>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="font-semibold text-neutral-900 dark:text-white mb-2">
+ Cost Per Acquisition (CPA)
+ </div>
+ <ul className="text-sm text-neutral-700 dark:text-neutral-300 space-y-1">
+ <li>Measures customer acquisition cost</li>
+ <li>Bottom of funnel metric</li>
+ <li>Typically higher cost</li>
+ <li>Focus on conversions and ROI</li>
+ </ul>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Lower Your CPL
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Improve targeting:</strong> Focus on audiences most likely to become qualified
+ leads
+ </li>
+ <li>
+ <strong>Optimize landing pages:</strong> Increase conversion rates with clear value
+ propositions and simple forms
+ </li>
+ <li>
+ <strong>Refine ad copy:</strong> Test different messages to improve click-through and
+ conversion rates
+ </li>
+ <li>
+ <strong>Test different channels:</strong> Experiment to find the most cost-effective
+ lead sources for your business
+ </li>
+ <li>
+ <strong>Improve lead quality filters:</strong> Define clear qualification criteria to
+ avoid wasting budget on poor-fit leads
+ </li>
+ <li>
+ <strong>Leverage organic channels:</strong> Invest in SEO and content marketing for
+ long-term low-CPL lead generation
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Calculating True Customer Acquisition Cost
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ To understand your full customer acquisition cost, you need to factor in your
+ lead-to-customer conversion rate:
+ </p>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-4 mb-6">
+ <div className="text-center text-neutral-900 dark:text-white font-mono text-sm">
+ CPA = CPL ÷ Lead-to-Customer Conversion Rate
+ </div>
+ <p className="text-xs text-neutral-600 dark:text-neutral-400 text-center mt-2">
+ Example: $100 CPL ÷ 20% conversion = $500 CPA
+ </p>
+ </div>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is Cost Per Lead (CPL)?",
+ answer:
+ "Cost Per Lead (CPL) is the total cost of generating one qualified lead through marketing efforts. It's calculated by dividing total marketing spend by the number of leads generated, helping businesses measure the efficiency of their lead generation campaigns.",
+ },
+ {
+ question: "How do I calculate CPL?",
+ answer:
+ "CPL = Total Marketing Spend ÷ Number of Leads. For example, if you spent $5,000 and generated 50 leads, your CPL would be $100.",
+ },
+ {
+ question: "What is a good CPL?",
+ answer:
+ "A good CPL varies by channel and industry. SEO/Organic averages $31, Email Marketing $53, Facebook Ads $97, and LinkedIn Ads $75. The key is that your CPL should be low enough to maintain profitable customer acquisition when factoring in your lead-to-customer conversion rate.",
+ },
+ {
+ question: "How is CPL different from CPA?",
+ answer: (
+ <>
+ CPL measures the cost to generate a lead (top of funnel), while{" "}
+ <Link
+ href="/tools/cost-per-acquisition-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ CPA
+ </Link>{" "}
+ measures the cost to acquire a paying customer (bottom of funnel). CPA is typically
+ higher since not all leads convert to customers. CPA = CPL ÷ Lead-to-Customer
+ Conversion Rate.
+ </>
+ ),
+ },
+ {
+ question: "How can I lower my CPL?",
+ answer:
+ "Lower CPL by improving audience targeting, optimizing landing pages for better conversion rates, refining ad copy and creative, testing different marketing channels, implementing better lead quality filters, and investing in organic channels like SEO and content marketing.",
+ },
+ {
+ question: "What's the relationship between CPL and conversion rate?",
+ answer: (
+ <>
+ Your{" "}
+ <Link
+ href="/tools/conversion-rate-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ conversion rate
+ </Link>{" "}
+ from visitor to lead directly impacts CPL. If you double your landing page conversion
+ rate, you can cut your CPL in half with the same ad spend. Focus on both reducing
+ traffic costs AND improving conversion rates to minimize CPL.
+ </>
+ ),
+ },
+];
+
+export default function CostPerLeadPage() {
+ return (
+ <ToolPageLayout
+ toolSlug="cost-per-lead-calculator"
+ title="Cost Per Lead (CPL) Calculator"
+ description="Calculate cost per lead and compare across marketing channels to optimize your lead generation strategy and maximize ROI"
+ badge="Free Tool"
+ toolComponent={<CostPerLeadForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track CPL and lead metrics with Rybbit"
+ ctaDescription="Monitor cost per lead, lead quality, and channel performance in real-time with Rybbit's analytics platform."
+ ctaEventLocation="cost_per_lead_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-mille-calculator/CostPerMilleForm.tsx b/docs/src/app/(home)/tools/cost-per-mille-calculator/CostPerMilleForm.tsx
new file mode 100644
index 000000000..1fbfc3c36
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-mille-calculator/CostPerMilleForm.tsx
@@ -0,0 +1,210 @@
+"use client";
+
+import { useState } from "react";
+
+export function CostPerMilleForm() {
+ const [spend, setSpend] = useState("");
+ const [impressions, setImpressions] = useState("");
+ const [selectedPlatform, setSelectedPlatform] = useState("Google Display");
+ const [cpm, setCpm] = useState<number | null>(null);
+
+ const platformBenchmarks: Record<string, number> = {
+ "Google Display": 2.8,
+ "Google Search": 38.4,
+ "Facebook Feed": 11.2,
+ "Instagram Feed": 7.91,
+ "Instagram Stories": 6.7,
+ "LinkedIn": 33.8,
+ "Twitter": 6.46,
+ "TikTok": 9.42,
+ "YouTube": 9.68,
+ "Pinterest": 30,
+ };
+
+ const calculateCPM = () => {
+ const spendNum = parseFloat(spend);
+ const impressionsNum = parseFloat(impressions);
+
+ if (isNaN(spendNum) || isNaN(impressionsNum) || impressionsNum === 0) {
+ setCpm(null);
+ return;
+ }
+
+ const result = (spendNum / impressionsNum) * 1000;
+ setCpm(result);
+ };
+
+ const clearForm = () => {
+ setSpend("");
+ setImpressions("");
+ setSelectedPlatform("Google Display");
+ setCpm(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (cpm === null) return null;
+ const benchmark = platformBenchmarks[selectedPlatform];
+ const difference = ((cpm - benchmark) / benchmark) * 100;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Ad Spend ($) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={spend}
+ onChange={(e) => setSpend(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPM()}
+ placeholder="5000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total amount spent on advertising
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Impressions <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={impressions}
+ onChange={(e) => setImpressions(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPM()}
+ placeholder="500000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of times your ad was displayed
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Platform
+ </label>
+ <select
+ value={selectedPlatform}
+ onChange={(e) => setSelectedPlatform(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(platformBenchmarks).map((platform) => (
+ <option key={platform} value={platform}>
+ {platform}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select advertising platform to compare against benchmarks
+ </p>
+ </div>
+
+ {cpm !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Cost Per Mille (CPM)
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ ${cpm.toFixed(2)}
+ </div>
+ <div className="text-xs text-emerald-700 dark:text-emerald-300 mt-2">
+ Cost per 1,000 impressions
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference <= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference <= 20
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Platform Benchmark: {selectedPlatform}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ ${comparison.benchmark.toFixed(2)}
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference <= 0 ? (
+ <>
+ Your CPM is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {Math.abs(comparison.difference).toFixed(1)}% below
+ </span>{" "}
+ the platform average
+ </>
+ ) : (
+ <>
+ Your CPM is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {comparison.difference.toFixed(1)}% above
+ </span>{" "}
+ the platform average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Spend
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ ${parseFloat(spend).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Impressions
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(impressions).toLocaleString()}
+ </div>
+ </div>
+ </div>
+
+ <div className="px-4 py-3 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-900 rounded-lg">
+ <div className="text-sm font-medium text-blue-900 dark:text-blue-200 mb-1">
+ Estimated Reach
+ </div>
+ <div className="text-xs text-blue-700 dark:text-blue-300">
+ At an average frequency of 3, your {parseFloat(impressions).toLocaleString()}{" "}
+ impressions reached approximately{" "}
+ <strong>{Math.round(parseFloat(impressions) / 3).toLocaleString()}</strong>{" "}
+ unique users.
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateCPM}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate CPM
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-mille-calculator/page.tsx b/docs/src/app/(home)/tools/cost-per-mille-calculator/page.tsx
new file mode 100644
index 000000000..eff8d7f8b
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-mille-calculator/page.tsx
@@ -0,0 +1,344 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { CostPerMilleForm } from "./CostPerMilleForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free CPM Calculator | Cost Per Mille (Thousand Impressions)",
+ description:
+ "Calculate CPM (cost per thousand impressions) instantly with our free calculator. Compare across platforms, optimize ad spend, and improve campaign efficiency.",
+ openGraph: {
+ title: "Free CPM Calculator (Cost Per Mille)",
+ description:
+ "Calculate and optimize your CPM with platform-specific benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/cost-per-mille-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free CPM Calculator",
+ description: "Calculate your CPM and compare against platform benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/cost-per-mille-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "CPM Calculator",
+ description:
+ "Free CPM calculator to measure cost per thousand impressions and compare against platform benchmarks",
+ url: "https://rybbit.com/tools/cost-per-mille-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is CPM (Cost Per Mille)?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CPM (Cost Per Mille) is the cost of 1,000 advertising impressions. 'Mille' is Latin for thousand. It's calculated by dividing total ad spend by total impressions and multiplying by 1,000.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate CPM?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CPM = (Total Ad Spend ÷ Total Impressions) × 1,000. For example, if you spent $5,000 and received 500,000 impressions, your CPM would be $10.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good CPM?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good CPM varies by platform. Google Display averages $2.80, Facebook Feed around $11.20, Instagram Stories $6.70, and LinkedIn $33.80. Lower CPMs indicate more efficient reach, but should be balanced with engagement and conversion quality.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I lower my CPM?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Lower CPM by improving ad quality scores, refining audience targeting, testing different ad formats, optimizing bid strategies, and focusing on platforms with naturally lower CPMs for your audience.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is CPM (Cost Per Mille)?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ CPM, or Cost Per Mille, measures the cost of 1,000 advertising impressions. The term
+ "mille" comes from Latin, meaning "thousand." It's a fundamental metric in display
+ advertising that helps marketers understand how efficiently they're reaching their
+ audience.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ CPM is particularly useful for brand awareness campaigns where the goal is maximum
+ visibility rather than immediate conversions. It allows you to compare costs across
+ different platforms, ad formats, and campaigns on an apples-to-apples basis.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate CPM
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ CPM = (Total Ad Spend ÷ Total Impressions) × 1,000
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Example:</strong> If you spent $5,000 and received 500,000 impressions:
+ </p>
+ <p className="text-center font-mono">CPM = ($5,000 ÷ 500,000) × 1,000 = $10</p>
+ <p className="pt-2">This means you paid $10 for every 1,000 times your ad was shown.</p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Platform Benchmarks
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Google Search:</strong> $38.40 (high intent, competitive)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>LinkedIn:</strong> $33.80 (B2B targeting premium)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Pinterest:</strong> $30.00 (visual discovery)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Facebook Feed:</strong> $11.20 (broad reach)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>YouTube:</strong> $9.68 (video content)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>TikTok:</strong> $9.42 (younger demographics)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Instagram Feed:</strong> $7.91 (visual engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Instagram Stories:</strong> $6.70 (ephemeral content)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Twitter:</strong> $6.46 (real-time engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Google Display:</strong> $2.80 (broad awareness)
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why CPM Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Compare platforms:</strong> Evaluate cost efficiency across different
+ advertising channels
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Budget allocation:</strong> Determine where to invest for maximum reach
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Campaign planning:</strong> Forecast impressions and reach for given budgets
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Performance tracking:</strong> Monitor how costs change over time and across
+ campaigns
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Lower Your CPM
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Improve ad quality:</strong> Higher relevance scores on platforms like Facebook
+ and Google reduce CPM
+ </li>
+ <li>
+ <strong>Refine targeting:</strong> Narrow audiences to more engaged, relevant users
+ </li>
+ <li>
+ <strong>Test ad formats:</strong> Some formats (Stories, Reels) often have lower CPMs
+ than feed placements
+ </li>
+ <li>
+ <strong>Optimize bid strategy:</strong> Use automatic bidding or target CPM bidding to
+ find efficiency
+ </li>
+ <li>
+ <strong>Choose the right platform:</strong> Match platforms to your audience
+ demographics and campaign goals
+ </li>
+ <li>
+ <strong>Avoid peak times:</strong> Run ads during less competitive hours or seasons
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ CPM vs Other Pricing Models
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Understanding different ad pricing models helps choose the right approach:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CPM (Cost Per Mille):</strong> Best for brand awareness and reach campaigns
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CPC (Cost Per Click):</strong> Better for traffic and engagement-focused
+ campaigns
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CPA (Cost Per Acquisition):</strong> Ideal for conversion-focused campaigns
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CPV (Cost Per View):</strong> Specifically for video advertising campaigns
+ </span>
+ </li>
+ </ul>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is CPM (Cost Per Mille)?",
+ answer:
+ "CPM (Cost Per Mille) is the cost of 1,000 advertising impressions. 'Mille' is Latin for thousand. It's calculated by dividing total ad spend by total impressions and multiplying by 1,000. CPM is a standard metric for comparing advertising costs across platforms and campaigns.",
+ },
+ {
+ question: "How do I calculate CPM?",
+ answer:
+ "CPM = (Total Ad Spend ÷ Total Impressions) × 1,000. For example, if you spent $5,000 and received 500,000 impressions, your CPM would be $10.",
+ },
+ {
+ question: "What is a good CPM?",
+ answer:
+ "A good CPM varies significantly by platform and industry. Google Display averages $2.80, Facebook Feed around $11.20, Instagram Stories $6.70, and LinkedIn $33.80. Lower CPMs indicate more efficient reach, but remember that cheaper impressions don't always mean better results—consider engagement and conversion quality too.",
+ },
+ {
+ question: "What's the difference between CPM and CPC?",
+ answer:
+ "CPM (Cost Per Mille) charges per 1,000 impressions regardless of clicks, while CPC (Cost Per Click) charges only when someone clicks your ad. CPM is better for brand awareness campaigns focused on reach, while CPC is better for performance campaigns focused on driving traffic or conversions.",
+ },
+ {
+ question: "How can I lower my CPM?",
+ answer:
+ "Lower CPM by improving ad quality and relevance scores, refining audience targeting to more engaged users, testing different ad formats (Stories/Reels often have lower CPMs), optimizing bid strategies, choosing appropriate platforms for your audience, and avoiding peak competitive times.",
+ },
+ {
+ question: "When should I use CPM bidding?",
+ answer: (
+ <>
+ Use CPM bidding for brand awareness campaigns where your goal is maximum visibility and
+ reach rather than immediate clicks or conversions. For conversion-focused campaigns,
+ consider{" "}
+ <Link
+ href="/tools/cost-per-acquisition-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ CPA
+ </Link>{" "}
+ or CPC bidding instead.
+ </>
+ ),
+ },
+];
+
+export default function CostPerMillePage() {
+ return (
+ <ToolPageLayout
+ toolSlug="cost-per-mille-calculator"
+ title="CPM Calculator (Cost Per Mille)"
+ description="Calculate cost per thousand impressions and compare across advertising platforms to optimize your media spend"
+ badge="Free Tool"
+ toolComponent={<CostPerMilleForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track CPM and ad performance with Rybbit"
+ ctaDescription="Monitor CPM, impressions, and campaign metrics across all platforms in real-time with Rybbit's analytics."
+ ctaEventLocation="cost_per_mille_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-view-calculator/CostPerViewForm.tsx b/docs/src/app/(home)/tools/cost-per-view-calculator/CostPerViewForm.tsx
new file mode 100644
index 000000000..cda73f7e0
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-view-calculator/CostPerViewForm.tsx
@@ -0,0 +1,213 @@
+"use client";
+
+import { useState } from "react";
+
+export function CostPerViewForm() {
+ const [spend, setSpend] = useState("");
+ const [views, setViews] = useState("");
+ const [selectedPlatform, setSelectedPlatform] = useState("YouTube");
+ const [cpv, setCpv] = useState<number | null>(null);
+
+ const platformBenchmarks: Record<string, number> = {
+ "YouTube": 0.06,
+ "Facebook Video": 0.02,
+ "Instagram Video": 0.05,
+ "TikTok": 0.07,
+ "LinkedIn Video": 0.15,
+ "Twitter Video": 0.03,
+ "Pinterest Video": 0.04,
+ "Snapchat": 0.08,
+ };
+
+ const calculateCPV = () => {
+ const spendNum = parseFloat(spend);
+ const viewsNum = parseFloat(views);
+
+ if (isNaN(spendNum) || isNaN(viewsNum) || viewsNum === 0) {
+ setCpv(null);
+ return;
+ }
+
+ const result = spendNum / viewsNum;
+ setCpv(result);
+ };
+
+ const clearForm = () => {
+ setSpend("");
+ setViews("");
+ setSelectedPlatform("YouTube");
+ setCpv(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (cpv === null) return null;
+ const benchmark = platformBenchmarks[selectedPlatform];
+ const difference = ((cpv - benchmark) / benchmark) * 100;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Ad Spend ($) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={spend}
+ onChange={(e) => setSpend(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPV()}
+ placeholder="1000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Total amount spent on video advertising
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Total Video Views <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={views}
+ onChange={(e) => setViews(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCPV()}
+ placeholder="15000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of times your video ad was viewed
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Platform
+ </label>
+ <select
+ value={selectedPlatform}
+ onChange={(e) => setSelectedPlatform(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(platformBenchmarks).map((platform) => (
+ <option key={platform} value={platform}>
+ {platform}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select platform to compare against benchmarks
+ </p>
+ </div>
+
+ {cpv !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Cost Per View
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ ${cpv.toFixed(3)}
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference <= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference <= 20
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Platform Benchmark: {selectedPlatform}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ ${comparison.benchmark.toFixed(3)}
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference <= 0 ? (
+ <>
+ Your CPV is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {Math.abs(comparison.difference).toFixed(1)}% below
+ </span>{" "}
+ the platform average
+ </>
+ ) : (
+ <>
+ Your CPV is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {comparison.difference.toFixed(1)}% above
+ </span>{" "}
+ the platform average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Spend
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ ${parseFloat(spend).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Views
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(views).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Cost Per 1K Views
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ ${(cpv * 1000).toFixed(2)}
+ </div>
+ </div>
+ </div>
+
+ <div className="px-4 py-3 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-900 rounded-lg">
+ <div className="text-sm font-medium text-blue-900 dark:text-blue-200 mb-1">
+ View-Through Rate (VTR)
+ </div>
+ <div className="text-xs text-blue-700 dark:text-blue-300">
+ If you received {parseFloat(views).toLocaleString()} views from{" "}
+ {Math.round(parseFloat(views) * 2).toLocaleString()} impressions, your
+ view-through rate would be <strong>50%</strong>. Higher VTR indicates more
+ engaging content and better targeting.
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateCPV}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate CPV
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/cost-per-view-calculator/page.tsx b/docs/src/app/(home)/tools/cost-per-view-calculator/page.tsx
new file mode 100644
index 000000000..c7bc32181
--- /dev/null
+++ b/docs/src/app/(home)/tools/cost-per-view-calculator/page.tsx
@@ -0,0 +1,406 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { CostPerViewForm } from "./CostPerViewForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Cost Per View (CPV) Calculator | Video Advertising ROI",
+ description:
+ "Calculate cost per view for video ads instantly with our free CPV calculator. Compare across platforms, optimize video ad spend, and improve engagement.",
+ openGraph: {
+ title: "Free Cost Per View (CPV) Calculator",
+ description:
+ "Calculate and optimize your video advertising CPV with platform-specific benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/cost-per-view-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free CPV Calculator",
+ description: "Calculate your cost per view and compare against platform benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/cost-per-view-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Cost Per View Calculator",
+ description:
+ "Free CPV calculator to measure video advertising costs and compare against platform benchmarks",
+ url: "https://rybbit.com/tools/cost-per-view-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is Cost Per View (CPV)?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Cost Per View (CPV) is the amount you pay each time someone views your video ad. It's calculated by dividing total video ad spend by the number of views received.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate CPV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CPV = Total Ad Spend ÷ Total Video Views. For example, if you spent $1,000 and received 15,000 views, your CPV would be $0.067 (6.7 cents per view).",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good CPV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good CPV varies by platform. Facebook Video averages $0.02, YouTube $0.06, Instagram Video $0.05, and TikTok $0.07. Lower CPV indicates more cost-efficient video advertising.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I lower my CPV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Lower CPV by creating more engaging video content, improving targeting, optimizing video length, testing different formats, and choosing cost-effective platforms for your audience.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Cost Per View (CPV)?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Cost Per View (CPV) is a video advertising metric that measures how much you pay each
+ time someone views your video ad. It's the primary pricing model for video advertising
+ campaigns on platforms like YouTube, Facebook, TikTok, and other social media networks.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ Understanding CPV is essential for evaluating video ad campaign efficiency, comparing
+ platform performance, and optimizing your video marketing budget. Unlike impressions
+ (which count displays), views indicate actual engagement with your video content.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate CPV
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ CPV = Total Ad Spend ÷ Total Video Views
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Example:</strong> If you spent $1,000 and received 15,000 video views:
+ </p>
+ <p className="text-center font-mono">
+ CPV = $1,000 ÷ 15,000 = $0.067 (6.7 cents per view)
+ </p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Platform Benchmarks
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Facebook Video:</strong> $0.02 (lowest CPV, broad reach)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Twitter Video:</strong> $0.03 (real-time engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Pinterest Video:</strong> $0.04 (visual discovery)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Instagram Video:</strong> $0.05 (high engagement)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>YouTube:</strong> $0.06 (search and discovery)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>TikTok:</strong> $0.07 (younger demographics)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Snapchat:</strong> $0.08 (Gen Z focused)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>LinkedIn Video:</strong> $0.15 (B2B targeting premium)
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why CPV Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Measure engagement:</strong> Views indicate actual interest, not just ad
+ exposure
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Platform comparison:</strong> Identify which platforms deliver the most
+ cost-effective video engagement
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Budget optimization:</strong> Allocate video ad spend to highest-performing
+ platforms
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Content effectiveness:</strong> Lower CPV suggests more engaging,
+ well-targeted video content
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ What Counts as a View?
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ View definitions vary by platform:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>YouTube:</strong> 30 seconds (or full video if shorter) or when user
+ interacts
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Facebook/Instagram:</strong> 3 seconds of continuous play (for reach), 10
+ seconds for ThruPlay
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>TikTok:</strong> 6 seconds or full video if shorter, with video 50%+ on
+ screen
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>LinkedIn:</strong> 2 seconds with at least 50% of video on screen
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Lower Your CPV
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Create engaging content:</strong> Hook viewers in the first 3 seconds with
+ compelling visuals and messaging
+ </li>
+ <li>
+ <strong>Improve targeting:</strong> Reach audiences more likely to watch and engage
+ with your content
+ </li>
+ <li>
+ <strong>Optimize video length:</strong> Test different durations to find the sweet
+ spot for your audience
+ </li>
+ <li>
+ <strong>Test formats:</strong> Try different aspect ratios, styles, and placements
+ (feed vs. stories)
+ </li>
+ <li>
+ <strong>Choose cost-effective platforms:</strong> Match platforms to your target
+ demographic and budget
+ </li>
+ <li>
+ <strong>Use captions:</strong> 85% of Facebook video is watched without sound—make
+ content accessible
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ CPV vs Other Video Metrics
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Understanding related video advertising metrics provides a complete picture:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CPV (Cost Per View):</strong> Cost for someone to watch your video
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>VTR (View-Through Rate):</strong> Percentage of impressions that become
+ views
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Video Completion Rate:</strong> Percentage of viewers who watch the entire
+ video
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Engagement Rate:</strong> Likes, comments, shares relative to views
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ When to Use CPV Bidding
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ CPV bidding works best for:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Brand awareness campaigns:</strong> Maximize video views and brand exposure
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Product launches:</strong> Introduce new products with engaging video content
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Educational content:</strong> Share tutorials, demos, or explainer videos
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Storytelling:</strong> Build emotional connections through narrative content
+ </span>
+ </li>
+ </ul>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is Cost Per View (CPV)?",
+ answer:
+ "Cost Per View (CPV) is the amount you pay each time someone views your video ad. It's calculated by dividing total video ad spend by the number of views received, and it's the primary pricing model for video advertising on platforms like YouTube, Facebook, TikTok, and Instagram.",
+ },
+ {
+ question: "How do I calculate CPV?",
+ answer:
+ "CPV = Total Ad Spend ÷ Total Video Views. For example, if you spent $1,000 and received 15,000 views, your CPV would be $0.067 (about 6.7 cents per view).",
+ },
+ {
+ question: "What is a good CPV?",
+ answer:
+ "A good CPV varies by platform. Facebook Video averages $0.02, YouTube $0.06, Instagram Video $0.05, TikTok $0.07, and LinkedIn Video $0.15. Lower CPV indicates more cost-efficient video advertising, but should be balanced with view quality and engagement.",
+ },
+ {
+ question: "What counts as a view?",
+ answer:
+ "View definitions vary by platform. YouTube counts views at 30 seconds or full video if shorter. Facebook/Instagram count views at 3 seconds of continuous play. TikTok requires 6 seconds with 50%+ of video on screen. LinkedIn counts views at 2 seconds with 50%+ visibility. Always check platform-specific definitions.",
+ },
+ {
+ question: "How can I lower my CPV?",
+ answer:
+ "Lower CPV by creating more engaging content that hooks viewers in the first 3 seconds, improving audience targeting, optimizing video length, testing different formats and placements, choosing cost-effective platforms, and using captions (85% of Facebook video is watched without sound).",
+ },
+ {
+ question: "How is CPV different from CPM?",
+ answer: (
+ <>
+ CPV (Cost Per View) charges when someone actually watches your video, while{" "}
+ <Link
+ href="/tools/cost-per-mille-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ CPM
+ </Link>{" "}
+ (Cost Per Mille) charges per 1,000 impressions regardless of whether viewers watch.
+ CPV is better for engagement-focused campaigns, while CPM is better for broad
+ awareness.
+ </>
+ ),
+ },
+];
+
+export default function CostPerViewPage() {
+ return (
+ <ToolPageLayout
+ toolSlug="cost-per-view-calculator"
+ title="Cost Per View (CPV) Calculator"
+ description="Calculate cost per view for video ads and compare across platforms to optimize your video advertising strategy and maximize engagement"
+ badge="Free Tool"
+ toolComponent={<CostPerViewForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track CPV and video metrics with Rybbit"
+ ctaDescription="Monitor cost per view, video engagement, and campaign performance across all platforms in real-time with Rybbit."
+ ctaEventLocation="cost_per_view_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/customer-lifetime-value-calculator/CustomerLifetimeValueForm.tsx b/docs/src/app/(home)/tools/customer-lifetime-value-calculator/CustomerLifetimeValueForm.tsx
new file mode 100644
index 000000000..152ae3037
--- /dev/null
+++ b/docs/src/app/(home)/tools/customer-lifetime-value-calculator/CustomerLifetimeValueForm.tsx
@@ -0,0 +1,290 @@
+"use client";
+
+import { useState } from "react";
+
+export function CustomerLifetimeValueForm() {
+ const [averageValue, setAverageValue] = useState("");
+ const [purchaseFrequency, setPurchaseFrequency] = useState("");
+ const [customerLifespan, setCustomerLifespan] = useState("");
+ const [profitMargin, setProfitMargin] = useState("");
+ const [retentionRate, setRetentionRate] = useState("");
+ const [selectedIndustry, setSelectedIndustry] = useState("SaaS");
+ const [clv, setClv] = useState<number | null>(null);
+
+ const industryBenchmarks: Record<string, number> = {
+ "SaaS": 1200,
+ "E-commerce": 168,
+ "Subscription Box": 420,
+ "Financial Services": 5000,
+ "Telecommunications": 3600,
+ "Insurance": 7200,
+ "Fitness/Gym": 1800,
+ "Streaming Services": 850,
+ };
+
+ const calculateCLV = () => {
+ const valueNum = parseFloat(averageValue);
+ const frequencyNum = parseFloat(purchaseFrequency);
+ const lifespanNum = parseFloat(customerLifespan);
+ const marginNum = parseFloat(profitMargin) / 100;
+ const retentionNum = parseFloat(retentionRate) / 100;
+
+ if (
+ isNaN(valueNum) ||
+ isNaN(frequencyNum) ||
+ isNaN(lifespanNum) ||
+ isNaN(marginNum) ||
+ isNaN(retentionNum)
+ ) {
+ setClv(null);
+ return;
+ }
+
+ // Advanced CLV formula with retention rate adjustment
+ // CLV = (Average Purchase Value × Purchase Frequency × Customer Lifespan × Profit Margin) × Retention Factor
+ const retentionFactor = retentionNum > 0 ? 1 / (1 - retentionNum) : 1;
+ const baseClv = valueNum * frequencyNum * lifespanNum * marginNum;
+ const adjustedClv = baseClv * Math.min(retentionFactor, 3); // Cap retention multiplier at 3x
+
+ setClv(adjustedClv);
+ };
+
+ const clearForm = () => {
+ setAverageValue("");
+ setPurchaseFrequency("");
+ setCustomerLifespan("");
+ setProfitMargin("");
+ setRetentionRate("");
+ setSelectedIndustry("SaaS");
+ setClv(null);
+ };
+
+ const getBenchmarkComparison = () => {
+ if (clv === null) return null;
+ const benchmark = industryBenchmarks[selectedIndustry];
+ const difference = ((clv - benchmark) / benchmark) * 100;
+ return { benchmark, difference };
+ };
+
+ const comparison = getBenchmarkComparison();
+
+ // Calculate churn rate for display
+ const churnRate = retentionRate ? (100 - parseFloat(retentionRate)).toFixed(1) : null;
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Average Purchase Value ($) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={averageValue}
+ onChange={(e) => setAverageValue(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCLV()}
+ placeholder="100"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Average amount a customer spends per purchase
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Purchase Frequency (per year) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={purchaseFrequency}
+ onChange={(e) => setPurchaseFrequency(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCLV()}
+ placeholder="12"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of purchases per customer per year
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Customer Lifespan (years) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={customerLifespan}
+ onChange={(e) => setCustomerLifespan(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCLV()}
+ placeholder="3"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Average number of years a customer stays with you
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Profit Margin (%) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={profitMargin}
+ onChange={(e) => setProfitMargin(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCLV()}
+ placeholder="20"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Average profit margin percentage
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Retention Rate (%) <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={retentionRate}
+ onChange={(e) => setRetentionRate(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateCLV()}
+ placeholder="85"
+ max="100"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Percentage of customers retained annually
+ {churnRate && ` (Churn rate: ${churnRate}%)`}
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Industry
+ </label>
+ <select
+ value={selectedIndustry}
+ onChange={(e) => setSelectedIndustry(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(industryBenchmarks).map((industry) => (
+ <option key={industry} value={industry}>
+ {industry}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select your industry to compare against benchmarks
+ </p>
+ </div>
+
+ {clv !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Customer Lifetime Value
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ ${clv.toFixed(2)}
+ </div>
+ </div>
+
+ {comparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ comparison.difference >= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : comparison.difference >= -20
+ ? "bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Industry Benchmark: {selectedIndustry}
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ ${comparison.benchmark.toLocaleString()}
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {comparison.difference >= 0 ? (
+ <>
+ Your CLV is{" "}
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {comparison.difference.toFixed(1)}% above
+ </span>{" "}
+ the industry average
+ </>
+ ) : (
+ <>
+ Your CLV is{" "}
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {Math.abs(comparison.difference).toFixed(1)}% below
+ </span>{" "}
+ the industry average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Annual Customer Value
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ $
+ {(
+ parseFloat(averageValue) *
+ parseFloat(purchaseFrequency) *
+ (parseFloat(profitMargin) / 100)
+ ).toFixed(2)}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Total Revenue Potential
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ $
+ {(
+ parseFloat(averageValue) *
+ parseFloat(purchaseFrequency) *
+ parseFloat(customerLifespan)
+ ).toFixed(2)}
+ </div>
+ </div>
+ </div>
+
+ <div className="px-4 py-3 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-900 rounded-lg">
+ <div className="text-sm font-medium text-blue-900 dark:text-blue-200 mb-1">
+ CLV:CAC Ratio Guidance
+ </div>
+ <div className="text-xs text-blue-700 dark:text-blue-300">
+ A healthy business should have a CLV that's at least <strong>3x</strong> your
+ Customer Acquisition Cost (CAC). With a CLV of ${clv.toFixed(2)}, your maximum
+ sustainable CAC is approximately <strong>${(clv / 3).toFixed(2)}</strong>.
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateCLV}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate CLV
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/customer-lifetime-value-calculator/page.tsx b/docs/src/app/(home)/tools/customer-lifetime-value-calculator/page.tsx
new file mode 100644
index 000000000..1b3e282f8
--- /dev/null
+++ b/docs/src/app/(home)/tools/customer-lifetime-value-calculator/page.tsx
@@ -0,0 +1,375 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { CustomerLifetimeValueForm } from "./CustomerLifetimeValueForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Customer Lifetime Value (CLV) Calculator | Predict Revenue Per Customer",
+ description:
+ "Calculate customer lifetime value with our advanced CLV calculator. Include retention rates, profit margins, and compare against industry benchmarks to optimize customer acquisition.",
+ openGraph: {
+ title: "Free Customer Lifetime Value (CLV) Calculator",
+ description:
+ "Calculate CLV with retention rates and profit margins, compare against industry benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/customer-lifetime-value-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free CLV Calculator",
+ description: "Calculate customer lifetime value with retention rate analysis",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/customer-lifetime-value-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Customer Lifetime Value Calculator",
+ description:
+ "Free CLV calculator with retention rate analysis to predict customer revenue and compare against industry benchmarks",
+ url: "https://rybbit.com/tools/customer-lifetime-value-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is Customer Lifetime Value (CLV)?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Customer Lifetime Value (CLV) is the total revenue a business can expect from a single customer over the entire duration of their relationship. It helps businesses determine how much to invest in customer acquisition and retention.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate CLV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "CLV = (Average Purchase Value × Purchase Frequency × Customer Lifespan × Profit Margin) × Retention Factor. For example, if a customer spends $100 per purchase, buys 12 times per year, stays for 3 years, with a 20% margin and 85% retention, the CLV would be calculated using these values.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good CLV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good CLV varies by industry. SaaS averages $1,200, e-commerce $168, financial services $5,000, and insurance $7,200. More importantly, your CLV should be at least 3x your Customer Acquisition Cost (CAC) for sustainable growth.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I increase CLV?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Increase CLV by improving retention rates, increasing purchase frequency through upsells and cross-sells, raising average order values, extending customer lifespans, and improving profit margins through operational efficiency.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Customer Lifetime Value (CLV)?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Customer Lifetime Value (CLV or LTV) represents the total revenue a business can
+ reasonably expect from a single customer account throughout their entire relationship.
+ It's one of the most important metrics for understanding profitability and guiding
+ strategic decisions around customer acquisition and retention.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ By understanding CLV, businesses can determine how much they should invest to acquire new
+ customers, which customer segments are most valuable, and where to focus retention
+ efforts for maximum ROI.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate CLV
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-lg font-bold text-emerald-600 dark:text-emerald-400">
+ CLV = (Avg Purchase Value × Purchase Frequency × Customer Lifespan × Profit Margin) ×
+ Retention Factor
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Where:</strong>
+ </p>
+ <ul className="list-disc list-inside space-y-1 ml-4">
+ <li>Avg Purchase Value = Average amount per transaction</li>
+ <li>Purchase Frequency = Number of purchases per year</li>
+ <li>Customer Lifespan = Average years as a customer</li>
+ <li>Profit Margin = Percentage of revenue retained as profit</li>
+ <li>Retention Factor = Adjustment based on retention rate (1 ÷ (1 - Retention%))</li>
+ </ul>
+ <p className="pt-2">
+ <strong>Example:</strong> $100 avg purchase × 12 purchases/year × 3 years × 20%
+ margin × 1.18 retention factor = ~$850 CLV
+ </p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Industry Benchmarks
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Insurance:</strong> $7,200 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Financial Services:</strong> $5,000 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Telecommunications:</strong> $3,600 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Fitness/Gym:</strong> $1,800 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SaaS:</strong> $1,200 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Streaming Services:</strong> $850 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Subscription Box:</strong> $420 average CLV
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>E-commerce:</strong> $168 average CLV
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why CLV Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Inform acquisition spending:</strong> Determines how much you can afford to
+ spend on customer acquisition
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Identify valuable segments:</strong> Shows which customer types are most
+ profitable
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Prioritize retention:</strong> Highlights the value of keeping existing
+ customers
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Forecast revenue:</strong> Helps predict long-term revenue and business
+ health
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ The CLV:CAC Ratio
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ One of the most critical business metrics is the ratio between Customer Lifetime Value
+ and Customer Acquisition Cost (CAC):
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CLV:CAC &lt; 1:</strong> You're losing money on every customer (unsustainable)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CLV:CAC = 1-3:</strong> Marginal profitability (risky)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CLV:CAC = 3-4:</strong> Healthy and sustainable business model (ideal)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>CLV:CAC &gt; 4:</strong> Possibly under-investing in growth opportunities
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Increase CLV
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Improve retention rates:</strong> Reduce churn through better onboarding,
+ support, and engagement
+ </li>
+ <li>
+ <strong>Increase purchase frequency:</strong> Implement subscription models, loyalty
+ programs, and regular communication
+ </li>
+ <li>
+ <strong>Raise average order value:</strong> Use upselling, cross-selling, and bundling
+ strategies
+ </li>
+ <li>
+ <strong>Extend customer lifespan:</strong> Build strong relationships and continuously
+ deliver value
+ </li>
+ <li>
+ <strong>Optimize profit margins:</strong> Improve operational efficiency and reduce
+ cost of goods sold
+ </li>
+ <li>
+ <strong>Focus on high-value segments:</strong> Invest more in acquiring and retaining
+ your most profitable customers
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Simple vs Advanced CLV Models
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ There are different approaches to calculating CLV:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Simple CLV:</strong> Average purchase value × purchase frequency × customer
+ lifespan (quick estimate)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Advanced CLV:</strong> Includes profit margins, retention rates, and discount
+ rates (more accurate)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Predictive CLV:</strong> Uses machine learning to predict future value based
+ on behavior patterns
+ </span>
+ </li>
+ </ul>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is Customer Lifetime Value (CLV)?",
+ answer:
+ "Customer Lifetime Value (CLV or LTV) is the total revenue a business can expect from a single customer over the entire duration of their relationship. It helps businesses determine how much to invest in customer acquisition and retention strategies.",
+ },
+ {
+ question: "How do I calculate CLV?",
+ answer:
+ "CLV = (Average Purchase Value × Purchase Frequency × Customer Lifespan × Profit Margin) × Retention Factor. The retention factor is calculated as 1 ÷ (1 - Retention Rate) to account for customer churn and loyalty.",
+ },
+ {
+ question: "What is a good CLV?",
+ answer:
+ "A good CLV varies by industry. SaaS averages $1,200, e-commerce $168, financial services $5,000, and insurance $7,200. More importantly, your CLV should be at least 3x your Customer Acquisition Cost (CAC) for sustainable, profitable growth.",
+ },
+ {
+ question: "What's the difference between CLV and LTV?",
+ answer:
+ "CLV (Customer Lifetime Value) and LTV (Lifetime Value) are the same metric with different acronyms. Both measure the total value a customer brings to your business over their entire relationship. The terms are used interchangeably.",
+ },
+ {
+ question: "How can I increase my CLV?",
+ answer:
+ "Increase CLV by improving retention rates (reduce churn), increasing purchase frequency through upsells and cross-sells, raising average order values, extending customer lifespans through better relationships, and improving profit margins through operational efficiency.",
+ },
+ {
+ question: "What is the CLV:CAC ratio and why does it matter?",
+ answer: (
+ <>
+ The CLV:CAC ratio compares Customer Lifetime Value to{" "}
+ <Link
+ href="/tools/cost-per-acquisition-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ Customer Acquisition Cost
+ </Link>
+ . A healthy ratio is 3:1 or higher, meaning each customer generates at least 3x what
+ you spent to acquire them. Ratios below 3:1 indicate unsustainable unit economics.
+ </>
+ ),
+ },
+];
+
+export default function CustomerLifetimeValuePage() {
+ return (
+ <ToolPageLayout
+ toolSlug="customer-lifetime-value-calculator"
+ title="Customer Lifetime Value (CLV) Calculator"
+ description="Calculate customer lifetime value with retention analysis and profit margins to optimize acquisition spending and maximize long-term revenue"
+ badge="Free Tool"
+ toolComponent={<CustomerLifetimeValueForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track CLV and customer metrics with Rybbit"
+ ctaDescription="Monitor customer lifetime value, retention cohorts, and revenue trends in real-time with Rybbit's analytics platform."
+ ctaEventLocation="customer_lifetime_value_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/marketing-roi-calculator/page.tsx b/docs/src/app/(home)/tools/marketing-roi-calculator/page.tsx
index b65e78b9f..593202b8e 100644
--- a/docs/src/app/(home)/tools/marketing-roi-calculator/page.tsx
+++ b/docs/src/app/(home)/tools/marketing-roi-calculator/page.tsx
@@ -118,31 +118,31 @@ const educationalContent = (
<p>Tracking marketing ROI is essential for sustainable business growth. It helps you:</p>
<ul className="space-y-3 mt-4">
<li className="flex gap-3">
- <span className="text-emerald-600 dark:text-emerald-400 font-bold">•</span>
+
<span>
<strong>Justify marketing budgets</strong> to stakeholders with clear financial metrics
</span>
</li>
<li className="flex gap-3">
- <span className="text-emerald-600 dark:text-emerald-400 font-bold">•</span>
+
<span>
<strong>Identify top-performing channels</strong> and allocate budget accordingly
</span>
</li>
<li className="flex gap-3">
- <span className="text-emerald-600 dark:text-emerald-400 font-bold">•</span>
+
<span>
<strong>Reduce wasted ad spend</strong> on underperforming campaigns
</span>
</li>
<li className="flex gap-3">
- <span className="text-emerald-600 dark:text-emerald-400 font-bold">•</span>
+
<span>
<strong>Optimize customer acquisition costs</strong> across your marketing mix
</span>
</li>
<li className="flex gap-3">
- <span className="text-emerald-600 dark:text-emerald-400 font-bold">•</span>
+
<span>
<strong>Make data-driven decisions</strong> about marketing strategy and tactics
</span>
diff --git a/docs/src/app/(home)/tools/meta-description-generator/MetaDescriptionForm.tsx b/docs/src/app/(home)/tools/meta-description-generator/MetaDescriptionForm.tsx
index ef09d0790..3f988e11e 100644
--- a/docs/src/app/(home)/tools/meta-description-generator/MetaDescriptionForm.tsx
+++ b/docs/src/app/(home)/tools/meta-description-generator/MetaDescriptionForm.tsx
@@ -159,7 +159,7 @@ export function MetaDescriptionForm() {
<span className={`font-medium ${getLengthColor(option.length)}`}>
{option.length} characters
</span>
- <span className="text-neutral-500 dark:text-neutral-400">•</span>
+
<span className="text-neutral-600 dark:text-neutral-400">{option.approach}</span>
</div>
</div>
diff --git a/docs/src/app/(home)/tools/page-speed-calculator/PageSpeedForm.tsx b/docs/src/app/(home)/tools/page-speed-calculator/PageSpeedForm.tsx
index e5b067663..2c8ef5b67 100644
--- a/docs/src/app/(home)/tools/page-speed-calculator/PageSpeedForm.tsx
+++ b/docs/src/app/(home)/tools/page-speed-calculator/PageSpeedForm.tsx
@@ -263,10 +263,10 @@ export function PageSpeedForm() {
}`}>
<h3 className="font-semibold mb-2">Impact Summary:</h3>
<ul className="text-sm space-y-1">
- <li>• Improving load time from <strong>{currentLoadTime}s</strong> to <strong>{targetLoadTime}s</strong></li>
- <li>• Conversion rate changes from <strong>{parseFloat(conversionRate).toFixed(2)}%</strong> to <strong>{metrics.newConversionRate.toFixed(2)}%</strong></li>
- <li>• Potential revenue impact: <strong>${Math.abs(metrics.monthlyImpact).toLocaleString(undefined, { maximumFractionDigits: 0 })}/month</strong> ({metrics.monthlyImpact >= 0 ? "gain" : "loss"})</li>
- <li>• Based on industry research: 7% conversion impact per second of load time</li>
+ <li>Improving load time from <strong>{currentLoadTime}s</strong> to <strong>{targetLoadTime}s</strong></li>
+ <li>Conversion rate changes from <strong>{parseFloat(conversionRate).toFixed(2)}%</strong> to <strong>{metrics.newConversionRate.toFixed(2)}%</strong></li>
+ <li>Potential revenue impact: <strong>${Math.abs(metrics.monthlyImpact).toLocaleString(undefined, { maximumFractionDigits: 0 })}/month</strong> ({metrics.monthlyImpact >= 0 ? "gain" : "loss"})</li>
+ <li>Based on industry research: 7% conversion impact per second of load time</li>
</ul>
</div>
</div>
diff --git a/docs/src/app/(home)/tools/page.tsx b/docs/src/app/(home)/tools/page.tsx
index 38528c815..1116f8cef 100644
--- a/docs/src/app/(home)/tools/page.tsx
+++ b/docs/src/app/(home)/tools/page.tsx
@@ -3,15 +3,20 @@ import {
Activity,
Calculator,
DollarSign,
+ Eye,
FileText,
Gauge,
Link as LinkIcon,
MousePointerClick,
+ PlayCircle,
Search,
Share2,
Sparkles,
+ Target,
TrendingDown,
+ TrendingUp,
Type,
+ UserCheck,
Users,
} from "lucide-react";
@@ -126,6 +131,62 @@ const tools = [
"Generate a customized privacy policy for your website. Answer a few questions and get a compliant privacy policy instantly.",
category: "Legal",
},
+ {
+ href: "/tools/cost-per-acquisition-calculator",
+ icon: Target,
+ title: "Cost Per Acquisition (CPA) Calculator",
+ description:
+ "Calculate your customer acquisition costs and compare against industry benchmarks to optimize your marketing ROI.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/retention-rate-calculator",
+ icon: UserCheck,
+ title: "Retention Rate Calculator",
+ description:
+ "Calculate customer retention rates and compare against industry benchmarks to improve customer loyalty and reduce churn.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/conversion-rate-calculator",
+ icon: TrendingUp,
+ title: "Conversion Rate Calculator",
+ description:
+ "Calculate conversion rates and compare against industry benchmarks to optimize your marketing funnel and maximize ROI.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/cost-per-mille-calculator",
+ icon: Eye,
+ title: "CPM Calculator (Cost Per Mille)",
+ description:
+ "Calculate cost per thousand impressions and compare across advertising platforms to optimize your media spend.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/customer-lifetime-value-calculator",
+ icon: DollarSign,
+ title: "Customer Lifetime Value (CLV) Calculator",
+ description:
+ "Calculate customer lifetime value with retention analysis and profit margins to optimize acquisition spending and maximize long-term revenue.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/cost-per-lead-calculator",
+ icon: Users,
+ title: "Cost Per Lead (CPL) Calculator",
+ description:
+ "Calculate cost per lead and compare across marketing channels to optimize your lead generation strategy and maximize ROI.",
+ category: "Analytics",
+ },
+ {
+ href: "/tools/cost-per-view-calculator",
+ icon: PlayCircle,
+ title: "Cost Per View (CPV) Calculator",
+ description:
+ "Calculate cost per view for video ads and compare across platforms to optimize your video advertising strategy and maximize engagement.",
+ category: "Analytics",
+ },
];
export default function ToolsPage() {
diff --git a/docs/src/app/(home)/tools/retention-rate-calculator/RetentionRateForm.tsx b/docs/src/app/(home)/tools/retention-rate-calculator/RetentionRateForm.tsx
new file mode 100644
index 000000000..bff2e88ef
--- /dev/null
+++ b/docs/src/app/(home)/tools/retention-rate-calculator/RetentionRateForm.tsx
@@ -0,0 +1,257 @@
+"use client";
+
+import { useState } from "react";
+
+export function RetentionRateForm() {
+ const [customersStart, setCustomersStart] = useState("");
+ const [customersEnd, setCustomersEnd] = useState("");
+ const [newCustomers, setNewCustomers] = useState("");
+ const [selectedIndustry, setSelectedIndustry] = useState("SaaS");
+ const [retentionRate, setRetentionRate] = useState<number | null>(null);
+
+ const industryBenchmarks: Record<string, { monthly: number; annual: number }> = {
+ "SaaS": { monthly: 93, annual: 35 },
+ "E-commerce": { monthly: 38, annual: 30 },
+ "Subscription Box": { monthly: 72, annual: 40 },
+ "Media/Publishing": { monthly: 84, annual: 55 },
+ "Financial Services": { monthly: 95, annual: 75 },
+ "Telecom": { monthly: 97, annual: 78 },
+ "Mobile Apps": { monthly: 42, annual: 15 },
+ "Fitness/Wellness": { monthly: 71, annual: 45 },
+ };
+
+ const calculateRetentionRate = () => {
+ const startNum = parseFloat(customersStart);
+ const endNum = parseFloat(customersEnd);
+ const newNum = parseFloat(newCustomers);
+
+ if (isNaN(startNum) || isNaN(endNum) || isNaN(newNum) || startNum === 0) {
+ setRetentionRate(null);
+ return;
+ }
+
+ const result = ((endNum - newNum) / startNum) * 100;
+ setRetentionRate(Math.max(0, result)); // Ensure non-negative
+ };
+
+ const clearForm = () => {
+ setCustomersStart("");
+ setCustomersEnd("");
+ setNewCustomers("");
+ setSelectedIndustry("SaaS");
+ setRetentionRate(null);
+ };
+
+ const getBenchmarkComparison = (period: "monthly" | "annual") => {
+ if (retentionRate === null) return null;
+ const benchmark = industryBenchmarks[selectedIndustry][period];
+ const difference = retentionRate - benchmark;
+ return { benchmark, difference };
+ };
+
+ const monthlyComparison = getBenchmarkComparison("monthly");
+ const annualComparison = getBenchmarkComparison("annual");
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Customers at Start of Period <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={customersStart}
+ onChange={(e) => setCustomersStart(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateRetentionRate()}
+ placeholder="1000"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of customers at the beginning of the period
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Customers at End of Period <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={customersEnd}
+ onChange={(e) => setCustomersEnd(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateRetentionRate()}
+ placeholder="920"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of customers at the end of the period
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ New Customers Acquired <span className="text-red-500">*</span>
+ </label>
+ <input
+ type="number"
+ value={newCustomers}
+ onChange={(e) => setNewCustomers(e.target.value)}
+ onKeyPress={(e) => e.key === "Enter" && calculateRetentionRate()}
+ placeholder="150"
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white placeholder-neutral-400 focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ />
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Number of new customers acquired during the period
+ </p>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Industry
+ </label>
+ <select
+ value={selectedIndustry}
+ onChange={(e) => setSelectedIndustry(e.target.value)}
+ className="w-full px-4 py-3 bg-white dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg text-neutral-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500"
+ >
+ {Object.keys(industryBenchmarks).map((industry) => (
+ <option key={industry} value={industry}>
+ {industry}
+ </option>
+ ))}
+ </select>
+ <p className="text-xs text-neutral-500 dark:text-neutral-400 mt-1">
+ Select your industry to compare against benchmarks
+ </p>
+ </div>
+
+ {retentionRate !== null && (
+ <div className="pt-6 border-t border-neutral-200 dark:border-neutral-800 space-y-4">
+ <div className="px-4 py-6 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-300 dark:border-emerald-800 rounded-lg text-center">
+ <div className="text-sm text-emerald-700 dark:text-emerald-300 font-medium mb-2">
+ Retention Rate
+ </div>
+ <div className="text-4xl font-bold text-emerald-600 dark:text-emerald-400">
+ {retentionRate.toFixed(2)}%
+ </div>
+ <div className="text-xs text-emerald-700 dark:text-emerald-300 mt-2">
+ Churn Rate: {(100 - retentionRate).toFixed(2)}%
+ </div>
+ </div>
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ {monthlyComparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ monthlyComparison.difference >= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Monthly Benchmark
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ {monthlyComparison.benchmark}%
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {monthlyComparison.difference >= 0 ? (
+ <>
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {monthlyComparison.difference.toFixed(1)}%
+ </span>{" "}
+ above average
+ </>
+ ) : (
+ <>
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {Math.abs(monthlyComparison.difference).toFixed(1)}%
+ </span>{" "}
+ below average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+
+ {annualComparison && (
+ <div
+ className={`px-4 py-4 rounded-lg border ${
+ annualComparison.difference >= 0
+ ? "bg-emerald-50 dark:bg-emerald-950/30 border-emerald-300 dark:border-emerald-800"
+ : "bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-900"
+ }`}
+ >
+ <div className="text-sm font-medium text-neutral-900 dark:text-white mb-2">
+ Annual Benchmark
+ </div>
+ <div className="text-2xl font-bold text-neutral-900 dark:text-white mb-2">
+ {annualComparison.benchmark}%
+ </div>
+ <div className="text-sm text-neutral-700 dark:text-neutral-300">
+ {annualComparison.difference >= 0 ? (
+ <>
+ <span className="font-semibold text-emerald-600 dark:text-emerald-400">
+ {annualComparison.difference.toFixed(1)}%
+ </span>{" "}
+ above average
+ </>
+ ) : (
+ <>
+ <span className="font-semibold text-orange-600 dark:text-orange-400">
+ {Math.abs(annualComparison.difference).toFixed(1)}%
+ </span>{" "}
+ below average
+ </>
+ )}
+ </div>
+ </div>
+ )}
+ </div>
+
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Starting Customers
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(customersStart).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Ending Customers
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {parseFloat(customersEnd).toLocaleString()}
+ </div>
+ </div>
+ <div className="px-4 py-3 bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg">
+ <div className="text-xs text-neutral-500 dark:text-neutral-400 mb-1">
+ Retained Customers
+ </div>
+ <div className="text-lg font-semibold text-neutral-900 dark:text-white">
+ {(parseFloat(customersEnd) - parseFloat(newCustomers)).toLocaleString()}
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="flex gap-4 pt-4">
+ <button
+ onClick={calculateRetentionRate}
+ className="flex-1 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-lg transition-colors"
+ >
+ Calculate Retention Rate
+ </button>
+ <button
+ onClick={clearForm}
+ className="px-6 py-3 bg-neutral-200 dark:bg-neutral-800 hover:bg-neutral-300 dark:hover:bg-neutral-700 text-neutral-900 dark:text-white font-medium rounded-lg transition-colors"
+ >
+ Clear
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/tools/retention-rate-calculator/page.tsx b/docs/src/app/(home)/tools/retention-rate-calculator/page.tsx
new file mode 100644
index 000000000..01b686c80
--- /dev/null
+++ b/docs/src/app/(home)/tools/retention-rate-calculator/page.tsx
@@ -0,0 +1,346 @@
+import { ToolPageLayout } from "../components/ToolPageLayout";
+import { RetentionRateForm } from "./RetentionRateForm";
+import Link from "next/link";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Free Retention Rate Calculator | Measure Customer Loyalty & Churn",
+ description:
+ "Calculate customer retention rate instantly with our free calculator. Compare against industry benchmarks, identify churn patterns, and improve customer loyalty.",
+ openGraph: {
+ title: "Free Retention Rate Calculator",
+ description:
+ "Calculate and optimize your customer retention with industry benchmarks",
+ type: "website",
+ url: "https://rybbit.com/tools/retention-rate-calculator",
+ siteName: "Rybbit Documentation",
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Free Retention Rate Calculator",
+ description: "Calculate your retention rate and compare against industry benchmarks",
+ },
+ alternates: {
+ canonical: "https://rybbit.com/tools/retention-rate-calculator",
+ },
+};
+
+const structuredData = {
+ "@context": "https://schema.org",
+ "@graph": [
+ {
+ "@type": "WebApplication",
+ name: "Retention Rate Calculator",
+ description:
+ "Free retention rate calculator to measure customer loyalty and compare against industry benchmarks",
+ url: "https://rybbit.com/tools/retention-rate-calculator",
+ applicationCategory: "BusinessApplication",
+ operatingSystem: "Any",
+ offers: {
+ "@type": "Offer",
+ price: "0",
+ priceCurrency: "USD",
+ },
+ },
+ {
+ "@type": "FAQPage",
+ mainEntity: [
+ {
+ "@type": "Question",
+ name: "What is retention rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Retention rate measures the percentage of customers who remain customers over a specific period. It's calculated by dividing retained customers by starting customers and multiplying by 100.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How do I calculate retention rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Retention Rate = ((Customers at End - New Customers) ÷ Customers at Start) × 100. For example, if you started with 1,000 customers, ended with 920, and acquired 150 new ones, your retention rate would be 77%.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "What is a good retention rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "A good retention rate varies by industry. SaaS companies average 93% monthly and 35% annually, while e-commerce sees 38% monthly retention. Higher retention rates indicate better customer satisfaction and product-market fit.",
+ },
+ },
+ {
+ "@type": "Question",
+ name: "How can I improve retention rate?",
+ acceptedAnswer: {
+ "@type": "Answer",
+ text: "Improve retention by enhancing onboarding, providing excellent customer support, delivering consistent value, engaging customers regularly, gathering and acting on feedback, and implementing loyalty programs.",
+ },
+ },
+ ],
+ },
+ ],
+};
+
+const educationalContent = (
+ <>
+ <h2 className="text-2xl font-bold text-neutral-900 dark:text-white mb-4">
+ What is Retention Rate?
+ </h2>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Retention rate measures the percentage of customers who continue doing business with you
+ over a specific period. It's one of the most important metrics for understanding customer
+ loyalty, product-market fit, and long-term business sustainability.
+ </p>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-6">
+ High retention rates indicate satisfied customers who find ongoing value in your product
+ or service, while low retention signals potential issues with product quality, customer
+ experience, or value proposition.
+ </p>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Calculate Retention Rate
+ </h3>
+ <div className="bg-neutral-50 dark:bg-neutral-900/50 border border-neutral-200 dark:border-neutral-800 rounded-lg p-6 mb-6">
+ <div className="text-center mb-4">
+ <div className="text-2xl font-bold text-emerald-600 dark:text-emerald-400">
+ Retention Rate = ((E - N) ÷ S) × 100
+ </div>
+ </div>
+ <div className="space-y-2 text-sm text-neutral-700 dark:text-neutral-300">
+ <p>
+ <strong>Where:</strong>
+ </p>
+ <ul className="list-disc list-inside space-y-1 ml-4">
+ <li>E = Customers at end of period</li>
+ <li>N = New customers acquired during period</li>
+ <li>S = Customers at start of period</li>
+ </ul>
+ <p className="pt-2">
+ <strong>Example:</strong> If you started with 1,000 customers, ended with 920, and
+ acquired 150 new customers:
+ </p>
+ <p className="text-center font-mono">
+ Retention Rate = ((920 - 150) ÷ 1,000) × 100 = 77%
+ </p>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Industry Benchmarks
+ </h3>
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
+ <div>
+ <h4 className="font-semibold text-neutral-900 dark:text-white mb-2">
+ Monthly Retention
+ </h4>
+ <ul className="space-y-2">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Telecom:</strong> 97%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Financial Services:</strong> 95%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SaaS:</strong> 93%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Media/Publishing:</strong> 84%
+ </span>
+ </li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="font-semibold text-neutral-900 dark:text-white mb-2">
+ Annual Retention
+ </h4>
+ <ul className="space-y-2">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Telecom:</strong> 78%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Financial Services:</strong> 75%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Media/Publishing:</strong> 55%
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>SaaS:</strong> 35%
+ </span>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Why Retention Rate Matters
+ </h3>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Cost efficiency:</strong> Retaining customers is 5-25x cheaper than acquiring
+ new ones
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Revenue predictability:</strong> High retention creates stable, recurring
+ revenue streams
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Growth indicator:</strong> Shows product-market fit and customer satisfaction
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Compounding value:</strong> Retained customers often increase spending over
+ time
+ </span>
+ </li>
+ </ul>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ How to Improve Retention Rate
+ </h3>
+ <ol className="space-y-3 mb-6 list-decimal list-inside text-neutral-700 dark:text-neutral-300">
+ <li>
+ <strong>Enhance onboarding:</strong> Create smooth, guided experiences that help
+ customers realize value quickly
+ </li>
+ <li>
+ <strong>Provide excellent support:</strong> Respond quickly to issues and proactively
+ help customers succeed
+ </li>
+ <li>
+ <strong>Deliver consistent value:</strong> Continuously improve your product and
+ communicate new features
+ </li>
+ <li>
+ <strong>Engage regularly:</strong> Maintain communication through email, in-app
+ messaging, and content
+ </li>
+ <li>
+ <strong>Gather feedback:</strong> Understand why customers leave and address common pain
+ points
+ </li>
+ <li>
+ <strong>Build loyalty programs:</strong> Reward long-term customers with special perks
+ and recognition
+ </li>
+ </ol>
+
+ <h3 className="text-xl font-semibold text-neutral-900 dark:text-white mb-3">
+ Retention vs Churn
+ </h3>
+ <p className="text-neutral-700 dark:text-neutral-300 leading-relaxed mb-4">
+ Retention rate and churn rate are inverse metrics that sum to 100%. If your retention
+ rate is 77%, your churn rate is 23%. Both metrics provide valuable insights:
+ </p>
+ <ul className="space-y-2 mb-6">
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Retention rate:</strong> Focuses on customers who stay (positive framing)
+ </span>
+ </li>
+ <li className="flex items-start text-neutral-700 dark:text-neutral-300">
+
+ <span>
+ <strong>Churn rate:</strong> Highlights customers lost (helps identify problems)
+ </span>
+ </li>
+ </ul>
+ </>
+);
+
+const faqs = [
+ {
+ question: "What is retention rate?",
+ answer:
+ "Retention rate measures the percentage of customers who remain customers over a specific period. It's calculated by dividing retained customers (excluding new acquisitions) by starting customers and multiplying by 100.",
+ },
+ {
+ question: "How do I calculate retention rate?",
+ answer:
+ "Retention Rate = ((Customers at End - New Customers) ÷ Customers at Start) × 100. For example, if you started with 1,000 customers, ended with 920, and acquired 150 new ones, your retention rate would be 77%.",
+ },
+ {
+ question: "What is a good retention rate?",
+ answer:
+ "A good retention rate varies by industry and time period. SaaS companies average 93% monthly and 35% annually, while e-commerce sees 38% monthly retention. Generally, higher is better, with 90%+ monthly retention considered excellent for subscription businesses.",
+ },
+ {
+ question: "What's the difference between retention rate and churn rate?",
+ answer:
+ "Retention rate measures the percentage of customers who stay, while churn rate measures the percentage who leave. They're inverse metrics that sum to 100%. If retention is 77%, churn is 23%. Retention focuses on the positive (customers kept), while churn highlights the negative (customers lost).",
+ },
+ {
+ question: "How can I improve my retention rate?",
+ answer:
+ "Improve retention by enhancing onboarding experiences, providing excellent customer support, delivering consistent value, engaging customers regularly through multiple channels, gathering and acting on feedback, and implementing loyalty programs or incentives for long-term customers.",
+ },
+ {
+ question: "Why is retention rate more important than acquisition?",
+ answer: (
+ <>
+ Retaining existing customers is typically 5-25x cheaper than acquiring new ones. High
+ retention also increases{" "}
+ <Link
+ href="/tools/customer-lifetime-value-calculator"
+ className="text-emerald-600 dark:text-emerald-400 hover:underline"
+ >
+ customer lifetime value
+ </Link>
+ , creates predictable revenue, and indicates strong product-market fit. A 5% increase
+ in retention can increase profits by 25-95%.
+ </>
+ ),
+ },
+];
+
+export default function RetentionRatePage() {
+ return (
+ <ToolPageLayout
+ toolSlug="retention-rate-calculator"
+ title="Retention Rate Calculator"
+ description="Calculate customer retention rates and compare against industry benchmarks to improve customer loyalty and reduce churn"
+ badge="Free Tool"
+ toolComponent={<RetentionRateForm />}
+ educationalContent={educationalContent}
+ faqs={faqs}
+ relatedToolsCategory="analytics"
+ ctaTitle="Track retention metrics with Rybbit"
+ ctaDescription="Monitor retention rates, churn patterns, and customer behavior in real-time with Rybbit's analytics platform."
+ ctaEventLocation="retention_rate_calculator_cta"
+ structuredData={structuredData}
+ />
+ );
+}
diff --git a/docs/src/app/(home)/tools/sample-size-calculator/SampleSizeForm.tsx b/docs/src/app/(home)/tools/sample-size-calculator/SampleSizeForm.tsx
index ae73ef64f..7b4570a8c 100644
--- a/docs/src/app/(home)/tools/sample-size-calculator/SampleSizeForm.tsx
+++ b/docs/src/app/(home)/tools/sample-size-calculator/SampleSizeForm.tsx
@@ -155,10 +155,10 @@ export function SampleSizeForm() {
<div className="p-4 bg-neutral-100 dark:bg-neutral-800 border border-neutral-300 dark:border-neutral-700 rounded-lg">
<h3 className="font-semibold text-neutral-900 dark:text-white mb-2">What this means:</h3>
<ul className="text-sm text-neutral-700 dark:text-neutral-300 space-y-1">
- <li>• You need {sampleSize.toLocaleString()} visitors to see variant A (control)</li>
- <li>• You need {sampleSize.toLocaleString()} visitors to see variant B (treatment)</li>
- <li>• This gives you {confidenceLevel}% confidence in detecting a {minimumDetectableEffect}% improvement</li>
- <li>• With {statisticalPower}% power to avoid false negatives</li>
+ <li>You need {sampleSize.toLocaleString()} visitors to see variant A (control)</li>
+ <li>You need {sampleSize.toLocaleString()} visitors to see variant B (treatment)</li>
+ <li>This gives you {confidenceLevel}% confidence in detecting a {minimumDetectableEffect}% improvement</li>
+ <li>With {statisticalPower}% power to avoid false negatives</li>
</ul>
</div>
</div>
diff --git a/docs/src/app/(home)/tools/seo-title-generator/SEOTitleForm.tsx b/docs/src/app/(home)/tools/seo-title-generator/SEOTitleForm.tsx
index 04a1603db..2c45b0617 100644
--- a/docs/src/app/(home)/tools/seo-title-generator/SEOTitleForm.tsx
+++ b/docs/src/app/(home)/tools/seo-title-generator/SEOTitleForm.tsx
@@ -160,7 +160,7 @@ export function SEOTitleForm() {
<span className={`font-medium ${getLengthColor(option.length)}`}>
{option.length} characters
</span>
- <span className="text-neutral-500 dark:text-neutral-400">•</span>
+
<span className="text-neutral-600 dark:text-neutral-400">{option.approach}</span>
</div>
</div>
diff --git a/docs/src/app/(home)/tools/traffic-value-calculator/TrafficValueForm.tsx b/docs/src/app/(home)/tools/traffic-value-calculator/TrafficValueForm.tsx
index e49c758f0..4de1f83a1 100644
--- a/docs/src/app/(home)/tools/traffic-value-calculator/TrafficValueForm.tsx
+++ b/docs/src/app/(home)/tools/traffic-value-calculator/TrafficValueForm.tsx
@@ -183,9 +183,9 @@ export function TrafficValueForm() {
<div className="p-4 bg-emerald-50 dark:bg-emerald-950/30 border border-emerald-200 dark:border-emerald-900 rounded-lg">
<h3 className="font-semibold text-emerald-900 dark:text-emerald-200 mb-2">What this means:</h3>
<ul className="text-sm text-emerald-900 dark:text-emerald-200 space-y-1">
- <li>• Each visitor is worth <strong>${metrics.valuePerVisitor.toFixed(2)}</strong> in profit</li>
+ <li>Each visitor is worth <strong>${metrics.valuePerVisitor.toFixed(2)}</strong> in profit</li>
<li>
- • A <strong>10% traffic increase</strong> would add{" "}
+ A <strong>10% traffic increase</strong> would add{" "}
<strong>
${(metrics.profit * 0.1).toLocaleString(undefined, { maximumFractionDigits: 0 })}
/month
@@ -193,7 +193,7 @@ export function TrafficValueForm() {
in profit
</li>
<li>
- • A <strong>1% conversion rate improvement</strong> would add{" "}
+ A <strong>1% conversion rate improvement</strong> would add{" "}
<strong>
$
{(
@@ -207,7 +207,7 @@ export function TrafficValueForm() {
</strong>{" "}
in profit
</li>
- <li>• You can afford to spend up to <strong>${metrics.valuePerVisitor.toFixed(2)}</strong> per visitor on acquisition</li>
+ <li>You can afford to spend up to <strong>${metrics.valuePerVisitor.toFixed(2)}</strong> per visitor on acquisition</li>
</ul>
</div>
</div>
diff --git a/docs/src/components/RelatedTools.tsx b/docs/src/components/RelatedTools.tsx
index f0a704f51..5fd610627 100644
--- a/docs/src/components/RelatedTools.tsx
+++ b/docs/src/components/RelatedTools.tsx
@@ -93,6 +93,48 @@ const allTools: Tool[] = [
href: "/tools/privacy-policy-builder",
category: "privacy",
},
+ {
+ name: "Cost Per Acquisition Calculator",
+ description: "Calculate customer acquisition costs and compare benchmarks",
+ href: "/tools/cost-per-acquisition-calculator",
+ category: "analytics",
+ },
+ {
+ name: "Retention Rate Calculator",
+ description: "Calculate and optimize customer retention rates",
+ href: "/tools/retention-rate-calculator",
+ category: "analytics",
+ },
+ {
+ name: "Conversion Rate Calculator",
+ description: "Calculate conversion rates and optimize your funnel",
+ href: "/tools/conversion-rate-calculator",
+ category: "analytics",
+ },
+ {
+ name: "CPM Calculator",
+ description: "Calculate cost per thousand impressions across platforms",
+ href: "/tools/cost-per-mille-calculator",
+ category: "analytics",
+ },
+ {
+ name: "Customer Lifetime Value Calculator",
+ description: "Calculate CLV with retention analysis and profit margins",
+ href: "/tools/customer-lifetime-value-calculator",
+ category: "analytics",
+ },
+ {
+ name: "Cost Per Lead Calculator",
+ description: "Calculate CPL and compare across marketing channels",
+ href: "/tools/cost-per-lead-calculator",
+ category: "analytics",
+ },
+ {
+ name: "Cost Per View Calculator",
+ description: "Calculate CPV for video ads across platforms",
+ href: "/tools/cost-per-view-calculator",
+ category: "analytics",
+ },
];
interface RelatedToolsProps {