DevHub Docs
Search…
Using URL parameters
Using data on the URL within your templates

Tracking and UTM fields

Macros

You can access UTM values using macros within your templates and form fields.
1
<p>${utm_campaign}</p>
Copied!

Other URL parameters

If a param is not the list of pre-approved parameters above under Tracking and UTM fields, then that URL parameter will need to be whitelisted in your project settings.
But once whitelisted, you can use them in your templates

Macros

You can access these whitelisted URL parameters in your template using macros.
Example: https://www.example.com/?campaignid=12345
1
<p>${urlparam_campaignid}</p>
Copied!
Would output
1
<p>12345</p>
Copied!

Use in templating

Both UTM (campaign parameters) and the other URL parameters are available within jinja templates in the same place.
Example: https://www.example.com/?promo=august&utm_campaign=email
1
<p>Promo: {{ request_params.promo }}</p>
2
<p>Campaign: {{ request_params.utm_campaign }}</p>
Copied!
Would output
1
<p>Promo: august</p>
2
<p>Campaign: email</p>
Copied!
Last modified 6mo ago