Custom Script
Runs inline JavaScript in the page context.
Coding
Use this when you need to call a page-global function or run a small browser-only script.
When to use it
- Call a vendor function already loaded on the page.
- Handle edge cases that do not fit a built-in node yet.
Routing behavior
Continues through its connected downstream path when it completes successfully.
Properties
| Property | Type | Required | Details |
|---|---|---|---|
code code | code | Optional | JavaScript code to execute. Available variables: $ (event data), $eventData (original data), $input (previous node output), $consent (consent state). Do NOT use {{ }} here. |
position position | select | Optional | Where to inject the script |
oncePerPage oncePerPage | boolean | Optional | Run only once per page (prevents duplicate execution) |
Common mistakes
- Strict CSP rules can block inline scripts.
- Use built-in nodes first when possible.