Skip to main content

Scripts & Pixels per Step

Time: ~10 minutes | Difficulty: Intermediate

What Is Step Config?

Every step in a funnel can have its own runtime configuration — tracking pixels, custom scripts, payment flow overrides, and order bumps. This is set inside node.config.stepConfig.
Why per-step? Different steps fire different events. Your landing page tracks PageView, your checkout tracks InitiateCheckout and Purchase, and your thank-you page tracks the conversion. Each step can have completely different pixels and scripts.

Step Config Structure


Tracking Pixels

Pixels are keyed by provider. Each provider can have multiple pixels (array).

Meta / Facebook Pixel

Meta Conversion API (server-side)

TikTok Pixel

Snapchat Pixel

Google Tag Manager


Custom Scripts

Inject any JavaScript into funnel pages. Each script has a name, content, and injection position.

Full Example: 3-Step Funnel with Tracking

Here’s a complete Node SDK example that creates a funnel with Meta Pixel + TikTok on every step, plus GTM on checkout only.

Pixel Event Reference


Supported Providers

You can attach multiple pixels of the same provider to a single step. For example, two Facebook pixels for different ad accounts — just add more entries to the array.

Payment Setup Config

paymentSetupConfig controls which payment methods are displayed on a checkout step and how each method is routed. It’s a key-value map where keys are method identifiers.

Structure

Fields

Key Format

Keys follow the pattern {method} or {method}:{provider}:
  • card — card payments (routed via payment flow)
  • apple_pay:stripe — Apple Pay via Stripe
  • google_pay:stripe — Google Pay via Stripe
  • klarna:airwallex — Klarna via Airwallex
  • paypal:airwallex — PayPal via Airwallex

Payment Flow Resolution Order

When processing a card payment, the paymentFlowId is resolved in this order:
The payment: { paymentFlowId } key is legacy. Use paymentSetupConfig.card.paymentFlowId instead — it’s more explicit and supports per-method routing.

Example: Different Flow for High-Value Orders

Example: Cards + Apple Pay + Google Pay


Next Steps

Node SDK Quick Start

Get started with the Node SDK

Funnel Orchestrator

Deep dive into funnel routing, A/B testing, and navigation

Headless Payments (Frontend)

Build your own checkout UI with client-side card tokenization and 3DS

Deploy & A/B Test

Deploy pages and run split tests