# Dynamic Page Text Based on URL Params

**URL:** <https://forum.builder.io/t/dynamic-page-text-based-on-url-params/49>\
**Category:** Technical Questions\
**Tags:** state-and-actions, visual-editor\
**Created:** [April 7, 2020, 11:52pm UTC](https://forum.builder.io/t/dynamic-page-text-based-on-url-params/49 "2020-04-07T23:52:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [April 8, 2020, 9:24pm UTC](https://forum.builder.io/t/dynamic-page-text-based-on-url-params/49/2 "2020-04-08T21:24:37Z")

</div>

Hi! Thanks for the question.

This is possible with Builder! The key is binding to `state.location.query.paramName` (e.g. if you want the text to be “foo” if ? utm\_name=foo is in the URL, bind to `state.location.query.utm_name`). You can do this in the “Element Data Binding” section located in the “Data” tab.

 ![data-binding](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/67824a20283e8bb2c6ba855d3368e553dfc5ac92.gif)

You can also add a placeholder with `state.location.query.utm_name || 'default text!'` if you want something else to display if it is not there.

 ![data-binding-2](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/15a449710004868a3f59b0f2de2cd40ca5637f66.gif)

You can also show and hide content on your pages based on params existing or having certain values (e.g. `show if` `state.location.query.someParam` or `state.location.query.someParam === 'some value'`.

 ![data-binding-3](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/5cec6f81a8e4fa86baa249fdf03c63f0d7383616.gif)

I hope this was helpful! If you have any questions, feel free to reach back out!

---

_[View the full topic](https://forum.builder.io/t/dynamic-page-text-based-on-url-params/49)._
