Load Script Source
Loads an external script on the page.
Coding
Use this when a vendor requires their own script before you can call their tracking function.
When to use it
- Load vendor libraries like gtag.js.
- Prepare the page for a custom script step.
Routing behavior
Continues through its connected downstream path when it completes successfully.
Properties
| Property | Type | Required | Details |
|---|---|---|---|
src src | expression | Optional | Script URL (supports expressions) |
position position | select | Optional | Where to inject the script |
async async | boolean | Optional | Load script asynchronously |
defer defer | boolean | Optional | Defer script execution |
oncePerPage oncePerPage | boolean | Optional | Load only once per page |
Common mistakes
- Be careful with duplicate loads.
- External scripts still depend on the vendor loading successfully.