Developer examples
PHP and JavaScript node recipes for geo routing, offer rotation, sticky routes, pixels and passing data between nodes.
Start with PHP node helper functions: it explains how code nodes run and choose a route.
PHP nodes
Section titled “PHP nodes”- Advanced data passing to your landers using PHP nodes — Build values in a PHP node and pass them to later landers.
- Auto-Optimization Based on Offers’ EPV — Weight routes from recent earnings per view.
- Facebook ISP Redirection with a PHP Node — Send flagged ISPs down a separate path.
- Offer Rotation Waterfall using a PHP Node — Fill one offer up to a click cap, then cascade to the next.
- PHP node helper functions — How PHP nodes run and choose a route, plus helpers for params, tracking fields and email.
- Protecting your lander from direct traffic — Reject lander visits that did not come through the funnel token.
- Redirect Based on Page Content — Branch when an offer page no longer contains the expected text.
- Redirect users from one funnel to another — Send traffic from one funnel to another, or to a specific node.
- Calling an external API from a PHP node — Call an external API from a PHP node, using OpenWeatherMap as the worked example.
- Routing multiple geos using a PHP node — Route many countries from one switch.
- Sticky rotation with PHP nodes — Send a returning visitor down the same route.
- Updating tracking field data using PHP nodes — Store a page choice in a tracking field.
JavaScript nodes
Section titled “JavaScript nodes”- Firing image pixels with Javascript nodes — How JavaScript nodes run, and how to load an image pixel from one.

