Client·
Shopify ROI Calculator
Lead-gen calculator for a Shopify migration agency. Generates personalized ROI reports with live website previews and shareable dashboards.
Node.jsExpressMongoDBShopify LiquidChart.jsLottie
Shopify ROI Calculator
A lead-generation tool built for a Shopify migration agency. Potential clients enter their current store metrics, and the calculator produces a personalized ROI report showing exactly why they should migrate to Shopify — with real numbers, not vague promises.
How it works
The math engine
The calculator measures the "conversion gap" between the client's current platform (WooCommerce, Magento, etc.) and projected Shopify performance:
- Revenue gain: Projects a 12–15% sales increase based on Shopify's lower checkout friction
- Cost savings: Factors in hosting, apps, and developer costs that disappear after migration
- Payback period: Tells the client exactly how many months until the migration pays for itself
The API
POST /api/calculate— Validates input, runs the math, saves to databaseGET /api/report— Returns a permanent shareable link to a specific report dashboardGET /health— Server and database health check
Deduplication
If someone enters identical numbers twice, the system recognizes the existing report and returns it instead of creating duplicates.
UX details
- Split layout: Form on the left, Lottie animation on the right to keep engagement while the user fills fields
- Results sidebar: After calculation, the input area collapses into a sidebar so the focus shifts to graphs and numbers
- Live website preview: Automatically grabs a screenshot of the user's site so the report feels personalized
- Rotating Shopify partner badge: Builds trust immediately
- Share, print, copy link: One-click sharing for the client's team
Security
- File sandboxing — static assets are isolated, no access to server code
- Input sanitization — strict URL validation to block injection
- Rate limiting — API spam protection built in
- No raw IPs stored — everything hashed for privacy compliance