Exitvelocitybtc's picture
Deploy via deploy.sh β€” 2026-05-20T21:56:14Z
1fc95c1 verified
Raw History Blame Contribute Delete
4.52 kB
"""
LedgerLaunchCo multi-channel CTA renderer for Subscription Audit Space.
Funnel priority (different from Exit Velocity because LedgerLaunchCo lacks media side):
- Primary: Email capture (build owned audience via newsletter)
- Secondary: Etsy spreadsheet products (direct revenue)
- Tertiary: Pinterest follow + Etsy shop follow
"""
from __future__ import annotations
# LedgerLaunchCo channels β€” Etsy-first, Pinterest secondary
CHANNELS = {
"etsy_shop": "https://ledgerlaunch.etsy.com",
"etsy_monthly_budget": "https://ledgerlaunch.etsy.com/listing/MONTHLY_BUDGET", # placeholder, update with actual listing IDs
"etsy_subscription_tracker": "https://ledgerlaunch.etsy.com/listing/SUBSCRIPTION",
"etsy_debt_payoff": "https://ledgerlaunch.etsy.com/listing/DEBT_PAYOFF",
"pinterest": "https://pinterest.com/ledgerlaunchco",
"newsletter_signup": "https://ledgerlaunch.co/newsletter", # to be wired to MailerLite form
"website": "https://ledgerlaunch.co",
}
UTM_BASE = "?utm_source=hf-space&utm_medium=subscription-auditor&utm_campaign=ai-ecosystem"
def url(channel: str, extra: str = "") -> str:
base = CHANNELS.get(channel, "")
if not base:
return ""
sep = "&" if "?" in base else "?"
base_utm = UTM_BASE.lstrip("?")
if extra:
return f"{base}{sep}{base_utm}&{extra}"
return f"{base}{sep}{base_utm}"
def render_top_cta(annual_spend: float | None = None, num_subs: int | None = None) -> str:
"""Hero CTA β€” newsletter signup with personalized hook."""
if annual_spend and annual_spend > 1500:
hook = (
f"πŸ’‘ **${annual_spend:,.0f}/year in subscriptions.** That's real money. "
"Want our weekly Subscription Cleanse tips β€” what to cancel, what to renegotiate, what's worth it?"
)
elif num_subs and num_subs > 8:
hook = (
f"πŸ’‘ You've got **{num_subs} active subscriptions**. "
"We send weekly cleanse tips so you can keep that number where you want it."
)
else:
hook = (
"πŸ’‘ **Get the free 7-day Subscription Cleanse.** "
"Daily emails that walk you through canceling, renegotiating, and replacing subscriptions you don't need."
)
return f"""
{hook}
### πŸ“§ [Get the free 7-day Subscription Cleanse]({url("newsletter_signup")})
*Daily tips. Real cancellation scripts. No spam.*
"""
def render_product_cta(annual_spend: float | None = None) -> str:
"""Etsy spreadsheet products β€” secondary CTA after high-intent tool completion."""
return f"""
---
### πŸ“Š Track this ongoing
You audited subscriptions once. Now keep them tracked β€” auto-totals, annual cost projections, renewal alerts:
[**Subscription Tracker Spreadsheet β€” $12.99**]({url("etsy_subscription_tracker")})
Or the full toolkit for budget + debt + subscriptions:
- [Monthly Budget Tracker β€” $12.99]({url("etsy_monthly_budget")})
- [Debt Payoff Planner β€” $14.99]({url("etsy_debt_payoff")})
- [Full shop on Etsy β†’]({url("etsy_shop")})
*Built by LedgerLaunchCo β€” spreadsheets for people who actually use spreadsheets.*
"""
def render_pinterest_cta() -> str:
"""Pinterest follow β€” soft CTA for visual learners."""
return f"""
---
### πŸ“Œ Visual learner?
Follow [LedgerLaunchCo on Pinterest]({url("pinterest")}) for weekly subscription-saving infographics.
"""
def render_social_footer() -> str:
return f"""
---
#### LedgerLaunchCo β€” spreadsheets that save you money
[Etsy shop]({url("etsy_shop")}) Β· [Pinterest]({url("pinterest")}) Β· [Website]({url("website")})
---
*Built by LedgerLaunchCo. This audit tool is free and your transaction data never leaves Hugging Face's compute β€” we don't see it, log it, or store it. Only your email (if you submit one) is stored.*
"""
def render_full_cta_stack(annual_spend: float = 0.0, num_subs: int = 0) -> str:
"""All CTAs concatenated for results page."""
return "\n".join([
render_top_cta(annual_spend=annual_spend, num_subs=num_subs),
render_product_cta(annual_spend=annual_spend),
render_pinterest_cta(),
render_social_footer(),
])
def render_empty_state_cta() -> str:
return f"""
---
#### While you're here:
[**πŸ“§ Get the free 7-day Subscription Cleanse**]({url("newsletter_signup")}) β€” daily emails with cancellation scripts.
[**πŸ“Š Browse LedgerLaunchCo on Etsy**]({url("etsy_shop")}) β€” spreadsheets for tracking what you keep.
*Spreadsheets that save you money.*
"""