- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Using coded-in modules to attach UTMs to smart links
10-22-2018 03:38
I'm experimenting more with template opportunities, specifically using smart modules in the templates themselves as opposed to within the email editor. I'm not sure if this is the best way to go about the situation, but it's something.
We often send the same email, to customers as well as leads, with slight copy changes between the two groups. One of those changes is our email footer. I'm wondering if I could make a template that uses a smart module as the footer to display either the lead footer or customer footer.
I've tested that part and it works, however, I also need to be able to add the correct UTM parameters to the respective footer links.
I'm still new to this, but I tried adding in a bit of code to the header to create a sidebar module for inputting the link, however it doesn't seem to be carrying over correctly.
This is what I've added to the header:
{% text "leads_blog_utm" label="Leads Blog UTM", value="#", export_to_template_context=True %} {# Makes the parameters available to be stored and used in template logic #}
And I was trying to attach that to the link like this:
<div style="text-align: center;">Example of copy here<a style="color: #67a5bf; text-decoration: none;" href="https://www.ourbloghere.com{{ widget_data.leads_blog_utm.value }}">ourbloghere.com</a></div>
What part of this is not allowing the UTM to correctly pass to the link?
Is this even possible or am I trying something that really doesn't work like I'm expecting?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content