Skip to main content

Funnel Orchestrator

What is a funnel? A funnel is a sequence of pages your customer walks through: landing page → checkout → upsell offer → thank you. The orchestrator manages the order, the navigation, the analytics, and the A/B testing — all in one place.

Why Use the Funnel Orchestrator?

Without a funnel, your checkout is a single isolated page. The customer pays and lands on a generic confirmation. That works, but you’re leaving money and insights on the table. With the orchestrator you get: In short: the orchestrator turns a standalone page into a real sales flow with analytics.

Core Concepts (5-minute overview)

Funnel = Graph of Nodes and Edges

A funnel is a directed graph:
  • Nodes are the steps (checkout page, upsell page, thank you page, etc.)
  • Edges are the connections between steps (what comes after what)

Node Types

What Happens Under the Hood

When you create or update a funnel via the API:
  1. TagadaPay saves the funnel configuration (nodes + edges)
  2. For each step, it automatically mounts the right plugin page at the right URL path
  3. The SDK reads the funnel config at runtime and handles navigation between steps
  4. Analytics events are tracked automatically (views, enters, conversions)
You don’t need to manually mount routes — the funnel orchestrator does it for you.

Tutorial: Create Your First Funnel

We’ll create the most common funnel: Checkout → Thank You.

Prerequisites

  • A TagadaPay account with an API key
  • A store (you can create one via the API or from the CRM)
  • At least one deployed plugin (the built-in tagada-native checkout is auto-provisioned for you)
If you don’t have a custom plugin deployed, TagadaPay will automatically inject its built-in checkout plugin (tagada-native) into your funnel steps. You can start without deploying anything.

Step 1 — Create the Funnel

What just happened:
  • TagadaPay created a funnel with two steps
  • It automatically provisioned the native checkout plugin for both steps
  • Routes were mounted so /checkout and /thankyou resolve to the right pages
  • This funnel is marked as the default — it’s the one used when a customer hits your store’s checkout URL

Step 2 — Verify Your Funnel

The response includes the full config with the auto-injected plugin instance IDs:
Notice the pluginId, instanceId, and instanceVersion — TagadaPay injected those automatically because the step type is checkout. You didn’t have to deploy or configure anything.

Step 3 — Test with a Preview Session

Preview sessions let you test the funnel without real payments:
Response:
Use the sessionId and token to load the checkout page in preview mode.

Adding an Upsell Step

The real power of funnels comes from post-purchase flows. Let’s add an upsell offer between checkout and thank you. Use the Update Funnel endpoint:
The response tells you exactly what the orchestrator did:
The orchestrator:
  • Skipped the checkout and thank you steps (already mounted)
  • Mounted the new offer step at /offer
Your funnel is now: Checkout → Upsell Offer → Thank You.

A/B Testing a Step

You can split traffic on any step using variants. Each variant can point to a different page design (different deployment) or the same page with a different config.
Visitors are sticky — once assigned a variant, they see the same one on return.

Step Configuration (Runtime Config)

Each step can have runtime config injected when the page loads — tracking pixels, payment flows, and custom scripts:
The step config is available in the Plugin SDK via useStepConfig() or window.__TGD_STEP_CONFIG__. See Step Config & Script Injection for details.

Tracking Funnel Events

The SDK tracks events automatically when used inside a funnel. If you need manual tracking (e.g., from a server or external page), use the Track Funnel Step endpoint:

Debugging a Funnel Session

To inspect what happened in a customer’s session:
This returns the full session data: current step, furthest step reached, customer history, timestamps, metadata, and resources. Useful for debugging why a customer dropped off or got stuck.

Complete API Reference


Recap

Funnel Lifecycle: Save, Publish & Go-Live

Duplicate, preview on staging, and promote to a production domain

Plugin SDK

Build the pages that power each step

Hosting & A/B Testing

Host any page and run split tests

Direct Link Guide

Generate checkout URLs from any website

External Page Tracker

Connect external pages to the funnel