Welcome to the Instapage Support Center

|

Dynamic Text Replacement / How to use URL parameters on your page

URL parameters are tags that are added to the end of your URL, usually for tracking purposes or for dynamic content insertion.
The most known type of URL parameters is UTM parameters, used by Google and Facebook ad links, in order to find out more about how your visitors interact with your ad.

With our Dynamic Text Replacement feature, you can use the information from the URL parameters on your landing page. You just have to type the exact same thing as in the URL, between square braces, and that’s it.

Use case 1 - using URL parameters in the copy of your landing page

You can do this if you want to use URL parameters on your page to dynamically display things like location or someone’s name if you already have that information.

Make sure the page’s URL includes the parameters you want to use, such as https://mylandingpage.domain.com/?location=cityname&name=firstname

Then you can write the copy of any text element on the page to include those parameters, such as “Welcome [name] from [location]!”

Use case 2 - Using URL parameters in a hidden field

Let's say the URL of your page is www.mydomain.com?utm_source=google

You can use [utm_source] in a hidden field on your form in order to see if the visit was triggered by an ad shown on Google. Here’s how the form from your page will look:

1__1_.png

You can also check out the dedicated article for this particular use case of dynamic text replacement here.

Use case 3 - dynamically pass existing URL parameters through a redirect

You can use this if you want to send URL parameters with which the user arrives on your landing page to an external link that the user is sent to by clicking a button on your page.

Let’s say the URL of your landing page is www.mydomain.com?parameter=dynamicvalue

Create a button by selecting the Button element in the toolbar:

dtr1.jpg

Click it, then select Edit:

dtr2.jpg

Choose Click event and select Outside URL from the drop-down:

dtr3.jpg

dtr4.jpg

Enter the link you want the button to redirect to, including the parameter in your page’s URL, as follows: https://external_link.com?parameter=[parameter]

dtr5.png

Of course, you can replace the name of “parameter” with anything you wish, such as “source”, “location”, etc. and even have multiple such parameters in the same URL.

Note: You can use the same method to make an image, a shape or a text element redirect to an external link with existing dynamic parameters.

Tip: you can create personalized Thank You pages by using dynamic text replacement in conjunction with this guide implemented on your main landing page. 

Have more questions? Submit a request
Was this article helpful?
10 out of 19 found this helpful

Need Further Help?

Tell us what you need and we will be happy to assist you.

Our team of expert support staff and our community can answer your questions. Submit a ticket, or reach out on live chat!