Email to Landing Page: Pass UTM Parameter and Display Block
I would like one landing page, with content that is shown/hidden based on a parameter from the UTM in the URL. After reading into it, it seems doable, but I cannot find reference as to "how" to make the landing page behave based on the UTM.
You can use Smart Contents to display different content to whoever clicked each button.
Whoever clicks "Yes" goes to one list and whoever clicks "No" goes to another list. Based on the lists, you can display different content using Smart Rules.
Smart Rules are at the module level. Click to edit a module and the option will appear.
Did this post help solve your problem? If so, please mark it as a solution.
{% if Query.utm_term|lowercase == "yes" %} [...] you content here [...]
{% elif Query.utm_term|lowercase == "no" %}
[...] you content here [...]
{% endif %}
Keep in mind a few things:
- Using the Query variable or request variable will make your page uncacheable for the Hubspot CDNs, so use it with caution. For example, don't use this in a generally shared template across your website, use it only within that page.
- If your content is somewhat complex, you may want to use the drag and drop area for the content editor, I would create a couple of dnd_areas, and having those separated will help you to process them independently. But if those are some paragraph or something that can be self-contained within a rich text module, go that route as will be much more easier to just handle everything under the rich text module.
Email to Landing Page: Pass UTM Parameter and Display Block
Hello @darley , thank you for providing details of your goal, I will add some top experts to share their ideas @DanielSanchez@Gonzalo any recommendations to @darley?