Dynamic5 min read•Audience: Marketers, Developers
Dynamic URLs & Personalized Links
Generate one-click login links, password reset tokens, tracking query strings, and personalized destinations.
Key Takeaways
- Embed variables inside button URLs and text links: https://app.acme.com/verify?token={{token}}.
- Always include the https:// protocol outside the variable.
- Ensure dynamic URL parameters are URL-encoded before sending.
- Preserve tracking parameters (utm_campaign, utm_medium) across dynamic destinations.
Formatting Dynamic Links#
You can bind dynamic variables inside any Button or Link URL field:
code
text
Best practices:
- Keep Protocol Static: Write
https://directly in the URL field rather than inside the variable ({{fullUrl}}). Many email clients flag dynamic protocols as phishing attempts. - URL Encoding: If your parameter contains spaces or special characters, ensure your backend or ESP URL-encodes the variable before injection.
Appending Tracking Query Parameters#
Combine personalized destinations with Google Analytics UTM tags:
code
text
This enables seamless conversion attribution in Google Analytics, Mixpanel, or Amplitude.
Frequently Asked Questions
Why do spam filters flag emails with entire URLs inside a variable like {{ctaLink}}?
Security filters inspect the destination domain. If an email anchor lacks a static protocol and domain (e.g. href="{{url}}"), filters cannot verify its destination and may flag it as suspicious. Always prepend https://yourdomain.com/ where possible.
How do I handle spaces in search query parameters?
Ensure query variables are URL-encoded (e.g. "new%20york" instead of "new york") on your application server before passing them to the template.