LnkFlow
Branded short links with server-side click tracking and conversion attribution back to ad platforms
A short link that 302s, logs the click, and injects UTMs is genuinely one sitting on Cloudflare Workers and KV, and the prompt below builds exactly that. What is not one sitting is the loop back out to the ad platforms. Meta and Google bid against the conversion events you send them, and since ATT the browser pixel misses a large share of purchases, which is the entire reason the Conversions API and offline conversion import exist. Closing that loop means persisting fbclid and gclid at redirect time, carrying that identity to a sale that happens days later on another device, posting a Purchase with a stable event_id so it deduplicates against the pixel, rebuilding fbc in Meta's fb.1.{timestamp}.{fbclid} form, importing offline conversions to Google on gclid, gbraid, or wbraid, and reversing all of it on refund. Every one of those fails silently. That is the expensive part: the dashboard still shows clicks while the bidder optimizes against nothing.
Build verification: not recorded. How we judge buildability
What you give up
- Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel
- Google offline conversion import keyed on gclid, gbraid, or wbraid
- click to lead to sale attribution that survives a multi-day gap, with refund reversal
- TLS on a customer's branded domain (Cloudflare for SaaS and 90-day DCV renewals, not one DNS record)
- per-creator performance and commission reporting
Why people still pay
The redirect is commodity and nobody should pay much for it. What is not commodity is staying current with Meta and Google as they change conversion endpoints, identifier formats, and consent requirements, which they do continuously and without waiting for you. Paying outsources that upkeep plus the attribution store that connects a click to a sale days later on a different device. Agencies pay for a second reason: issuing and renewing TLS for a client's branded domain is a genuinely different problem from pointing your own DNS record at a worker.
Your build guide
The stack, security requirements, and agent rules for a focused replacement.
Before you start
- Node, SQLite on persistent disk, public HTTPS hosting and an authenticated owner interface. Redirects are public; link creation and reports require owner authorization.
- Implementation components: Node.js, TypeScript and Express with server-rendered HTML and small browser modules. SQLite through better-sqlite3 with migrations, prepared statements and a single background worker.
- Scope boundary: Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid
Use these project rules and optional skill references alongside the prompt. Review each skill before adding it to your agent; the AGENTS.md export includes the same guidance.
Optional external skill: web-design-guidelines — Review web interfaces for accessibility, keyboard focus, forms, navigation and interaction quality. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Optional external skill: sharp-edges — Review security-sensitive APIs and configuration for dangerous defaults and easy-to-misuse interfaces. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Project rule — data model: short slugs, approved destinations, campaign parameters, redirect revisions and bounded click observations
Project rule — preserve this invariant: Only allowed HTTP/HTTPS destinations are saved; analytics failures must not block redirects and sensitive query values are not logged.
Project rule — acceptance evidence: Redirect a URL containing gclid and preserve it exactly; a failed analytics write still returns the configured redirect and an expired slug returns a clear missing state.
Implementation plan
Phase 1
Scope and fixtures. Implement this bounded workflow: Resolve a short link, apply configured UTM parameters without overwriting existing ad click IDs and issue a redirect. Log a minimal event asynchronously and offer a QR image for the stable short URL. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid
Phase 2
Durable model. Model short slugs, approved destinations, campaign parameters, redirect revisions and bounded click observations Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: Only allowed HTTP/HTTPS destinations are saved; analytics failures must not block redirects and sensitive query values are not logged.
Phase 3
Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them.
Phase 4
Permissions and integration failure. Public routes accept only their documented inputs with rate/size limits. Protect every owner/customer action with authenticated authorization and CSRF checks; keep secrets outside exports and redact personal data from logs. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results.
Phase 5
Portable handoff. Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README.
Phase 6
Acceptance scenarios. Redirect a URL containing gclid and preserve it exactly; a failed analytics write still returns the configured redirect and an expired slug returns a clear missing state. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder.
WORKING SLICE Resolve a short link, apply configured UTM parameters without overwriting existing ad click IDs and issue a redirect. Log a minimal event asynchronously and offer a QR image for the stable short URL. Build this scoped LnkFlow-inspired workflow with a documented data model and visible failure states. Architecture - Node.js, TypeScript and Express with server-rendered HTML and small browser modules. - SQLite through better-sqlite3 with migrations, prepared statements and a single background worker. Prerequisites and limits Node, SQLite on persistent disk, public HTTPS hosting and an authenticated owner interface. Redirects are public; link creation and reports require owner authorization. Outside this release: Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid Data model and correctness short slugs, approved destinations, campaign parameters, redirect revisions and bounded click observations Invariant: Only allowed HTTP/HTTPS destinations are saved; analytics failures must not block redirects and sensitive query values are not logged. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them. Security and privacy Public routes accept only their documented inputs with rate/size limits. Protect every owner/customer action with authenticated authorization and CSRF checks; keep secrets outside exports and redact personal data from logs. Recovery and export Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Implementation order 1. Phase 1 — Scope and fixtures. Implement this bounded workflow: Resolve a short link, apply configured UTM parameters without overwriting existing ad click IDs and issue a redirect. Log a minimal event asynchronously and offer a QR image for the stable short URL. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid 2. Phase 2 — Durable model. Model short slugs, approved destinations, campaign parameters, redirect revisions and bounded click observations Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: Only allowed HTTP/HTTPS destinations are saved; analytics failures must not block redirects and sensitive query values are not logged. 3. Phase 3 — Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them. 4. Phase 4 — Permissions and integration failure. Public routes accept only their documented inputs with rate/size limits. Protect every owner/customer action with authenticated authorization and CSRF checks; keep secrets outside exports and redact personal data from logs. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results. 5. Phase 5 — Portable handoff. Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README. 6. Phase 6 — Acceptance scenarios. Redirect a URL containing gclid and preserve it exactly; a failed analytics write still returns the configured redirect and an expired slug returns a clear missing state. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder. Acceptance Redirect a URL containing gclid and preserve it exactly; a failed analytics write still returns the configured redirect and an expired slug returns a clear missing state. Use real source data or clearly labeled fixtures. Explain unsupported input and provider failures; do not fabricate analytics, delivery receipts, accuracy claims or security guarantees. Optional agent guidance Optional external skill: [web-design-guidelines](https://github.com/vercel-labs/agent-skills/blob/main/skills/web-design-guidelines/SKILL.md) — Review web interfaces for accessibility, keyboard focus, forms, navigation and interaction quality. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission. Optional external skill: [sharp-edges](https://github.com/trailofbits/skills/blob/main/plugins/sharp-edges/skills/sharp-edges/SKILL.md) — Review security-sensitive APIs and configuration for dangerous defaults and easy-to-misuse interfaces. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission. Project rule — data model: short slugs, approved destinations, campaign parameters, redirect revisions and bounded click observations Project rule — preserve this invariant: Only allowed HTTP/HTTPS destinations are saved; analytics failures must not block redirects and sensitive query values are not logged. Project rule — acceptance evidence: Redirect a URL containing gclid and preserve it exactly; a failed analytics write still returns the configured redirect and an expired slug returns a clear missing state.
$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy or download AGENTS.md
prompt copied. want to know what dies next week?
new verdicts + top votes, weekly. free. one-click out.
LnkFlow pricing
| plan | monthly | annual (per mo) | what you get |
|---|---|---|---|
| starter | $10.39/workspace | $10.39/workspace | 10,000 tracked clicks/month, 50 active links, 1 branded domain, 1 month history, and 1 userVendor prices are €9/month and €108/year; converted at €1 = $1.1540 using the ECB 2026-08-11 reference rate. The page's global '3 months free' annual claim conflicts with the listed €108 annual total, so the listed total is used. |
| growth | $45.01/workspace | $22.50/workspace | 100,000 tracked clicks/month, 500 active links, 3 branded domains, 1 year history, and unlimited team seatsVendor prices are €39 monthly or a limited early-user annual offer of €234/year (€19.50/month); converted at €1 = $1.1540. The page says only 10 offer spots remain and promises the launch price on annual renewals. |
| scale | $114.25/workspace | $57.12/workspace | 500,000 tracked clicks/month, unlimited active links, 10 branded domains, 2 years history, and unlimited team seatsVendor prices are €99 monthly or a limited early-user annual offer of €594/year (€49.50/month); converted at €1 = $1.1540. The page says only 10 offer spots remain and promises the launch price on annual renewals. |
| enterprise | — | — | Custom traffic, link, domain, history, and team allowancesCustom price and terms. |
free tierno free tier
billingmonthly + annual; 7-day trial with no card; 14-day money-back guarantee; prices exclude possible taxes
hidden costsGrowth and Scale annual prices are capacity-limited launch offers rather than normal list prices; going beyond the click, active-link, branded-domain, or history caps requires a higher plan or custom terms.
pricing sources checked 2026-08-12 · pricing source ↗
Questions about LnkFlow
Can you build your own LnkFlow with AI?
Partly. A short link that 302s, logs the click, and injects UTMs is genuinely one sitting on Cloudflare Workers and KV, and the prompt below builds exactly that. What is not one sitting is the loop back out to the ad platforms. Meta and Google bid against the conversion events you send them, and since ATT the browser pixel misses a large share of purchases, which is the entire reason the Conversions API and offline conversion import exist. Closing that loop means persisting fbclid and gclid at redirect time, carrying that identity to a sale that happens days later on another device, posting a Purchase with a stable event_id so it deduplicates against the pixel, rebuilding fbc in Meta's fb.1.{timestamp}.{fbclid} form, importing offline conversions to Google on gclid, gbraid, or wbraid, and reversing all of it on refund. Every one of those fails silently. That is the expensive part: the dashboard still shows clicks while the bidder optimizes against nothing.
What does the LnkFlow build prompt cover?
The prompt starts with this scope: Resolve a short link, apply configured UTM parameters without overwriting existing ad click IDs and issue a redirect. Log a minimal event asynchronously and offer a QR image for the stable short URL. Full-product capabilities excluded from the comparison include: Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid; click to lead to sale attribution that survives a multi-day gap, with refund reversal. Follow the implementation plan and its prerequisites before expanding the build.
How do I use the prompt, AGENTS.md and agent skills?
Start with the LnkFlow prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.
How long will this LnkFlow project take?
The catalogue estimate is one sitting for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.
What would I give up by replacing LnkFlow?
Purchase events delivered back to Meta CAPI with stable event_id deduplication against the browser pixel; Google offline conversion import keyed on gclid, gbraid, or wbraid; click to lead to sale attribution that survives a multi-day gap, with refund reversal; TLS on a customer's branded domain (Cloudflare for SaaS and 90-day DCV renewals, not one DNS record); per-creator performance and commission reporting. The redirect is commodity and nobody should pay much for it. What is not commodity is staying current with Meta and Google as they change conversion endpoints, identifier formats, and consent requirements, which they do continuously and without waiting for you. Paying outsources that upkeep plus the attribution store that connects a click to a sale days later on a different device. Agencies pay for a second reason: issuing and renewing TLS for a client's branded domain is a genuinely different problem from pointing your own DNS record at a worker.
What price is this guide comparing against?
The recorded Starter plan is $10.39/mo (monthly), checked 2026-08-12. Check the linked pricing source before buying. Building your own also has hosting, API and maintenance costs; the recorded amount is not a guaranteed saving.
What can I use instead of building LnkFlow?
The prior-art section lists Dub, Shlink, YOURLS as starting points. Review their current scope, license and maintenance before adopting one.