Docs
The Docs tab is your live reference for whatever transformation file you're working on. Select a file in the navigator on the left, and the Docs tab shows you exactly what that file receives on params, what it can return, which Secrets are currently available to it (scoped to edge or browser), and a complete example tailored to that file.
It's dynamic: add a Secret in the Secrets tab, and the Docs tab immediately lists it by name under the right scope and updates the Example to reference it. You never have to leave the UI to look up a param shape, a return field, or a Secret name.
What each file's reference contains
Every file (tagRoot, tagChannel, tagInstance, clientTagRoot, clientTagChannel, clientTagInstance) has the same sections in the Docs tab:
When it runs — where in the event pipeline this file fires: edge vs. browser, once per event vs. per provider vs. per provider instance.
Input (params) — the full TypeScript shape of the
paramsobject this file receives (payload,user,variables,platform,userCustomData,hostData,logger,userKey,providerData; plusproviderIdfor channel and instance levels, plussettingsfor browser files).Return shape — the fields you can return (
payload,user,additionalEvents,skipEvent) and what each does for this specific level. Levels whereadditionalEventsisn't honored (anything that isn't a root file) say so explicitly.Helpers — for edge files, usage blocks for
params.userKey.getFirstClick()/getLastClick()andparams.providerData, including the literal-provider-ID return set and the click-ID-by-provider shape. For all files,params.logger.Secrets — the list of Secrets currently available to this file. Edge files show every Secret; browser files show only those with the client flag. Each is listed as
params.variables.NAME. When nothing is configured, you see a placeholder pointing at the Secrets tab.Example — a complete, copy-pasteable example tailored to this file. The example uses
providerIdin channel/instance files,settingsin browser files, and references your configured Secrets where relevant.
Dynamic sections
The Secrets section reflects your current configuration in real time:
Add a Secret named
API_KEY→ edge files now listparams.variables.API_KEYunder Secrets, and the Example updates to reference it.Mark that Secret as client-side → it also appears in the Secrets section for
clientTagRoot,clientTagChannel, andclientTagInstance.Unmark the client flag → it disappears from the browser files' Docs but stays on the edge files.
The name you see in Docs is the name you use in code.
Switching between files
The file navigator on the left lists every file. Clicking one updates the Docs tab to the reference for that file. Because the six levels share most of their params shape, a common workflow is:
Read the Docs for
tagRootto understand the base shape and helpers.Switch to
tagChannelto see whatproviderIdadds.Switch to
clientTagRootto see how browser params (settings, scopedvariables) differ.
Use Docs alongside the Code tab while you're writing — Code shows your code, Docs shows the contract. They're designed to be read side by side.
Last updated
Was this helpful?

