What Is Dynamic Text Replacement?
Dynamic Text Replacement (DTR) lets you swap text on your landing page based on URL parameters. This means one page can serve multiple campaigns — the headline, CTA, or any text changes automatically based on the link a visitor clicks.
How It Works
When a visitor arrives at your page with a URL parameter, Leadpages replaces specified text with the parameter value. For example:
- Your page URL:
new.leadpages.com/your-page - Your Google Ad links to:
new.leadpages.com/your-page?keyword=yoga+coaching - The headline on the page changes from "Professional Coaching" to "Yoga Coaching"
The text swap happens at the edge (server-side), so there's no flicker — visitors see the personalized content instantly.
Setting Up DTR
- Open your page in the editor.
- Click the Optimize icon in the toolbar.
- Select the DTR tab.
- Define your replacement rules:
- Parameter name — The URL parameter to watch for (e.g.,
keyword) - Default text — What shows when no parameter is provided
- Replacement mappings — Map specific parameter values to text
- Parameter name — The URL parameter to watch for (e.g.,
- Multiple text elements on the same page can have their own DTR rules.
Common Use Cases
- Google Ads: Match your landing page headline to the exact keyword someone searched for.
- Facebook Ads: Personalize the page for different audience segments.
- Email campaigns: Change the offer or CTA based on which email link was clicked.
- Multi-location businesses: Show the correct city or location name based on the ad.
DTR + A/B Testing
DTR works with A/B testing — each variant can have its own DTR rules. This lets you test different personalization strategies against each other.
Fallback Behavior
If a visitor arrives without the URL parameter (e.g., they visit the page directly), they see the default text. Your page always works with or without parameters.
Plan Availability
Dynamic Text Replacement is available on all paid plans (Grow, Optimize, and Scale).
Need more help?
You can always get in touch with our support team—just click Support in your Leadpages navigation menu, or submit a ticket ↗
