Losing tracking on tokens
Hi all,
I wonder if anyone has experienced similar and can help. I know there are issues with tracking being lost when using tokens, and we worked around this and had tracking working perfectly using the following (we had about 26 countries in the final code which made it huge as you can imagine):
#if(${lead.Segmentation_Country_1006} == "Austria")
<a href"#" target="_blank" style="display: inline-block; background: #2A2A2A; color: #ffffff; font-family: Verdana, Geneva, sans-serif; font-size: 13px; font-weight: normal; line-height: 1.2; margin: 0; text-decoration: none; text-transform: none; padding: 10px 25px 10px 25px; mso-padding-alt: 0px; border-radius: 0px;">JETZT</a>
#else
<a href"#" target="_blank" style="display: inline-block; background: #2A2A2A; color: #ffffff; font-family: Verdana, Geneva, sans-serif; font-size: 13px; font-weight: normal; line-height: 1.2; margin: 0; text-decoration: none; text-transform: none; padding: 10px 25px 10px 25px; mso-padding-alt: 0px; border-radius: 0px;">NOW</a>
#end
However, we recently had to send a large email using about 30 tokens, so we tried to cut down on the size of our tokens by consolidating some of the information like below:
#set ($c = ${lead.Segmentation_Country_1006})
#set ($link_att = 'target="_blank" style="display: inline-block; background: #2A2A2A; color: #ffffff; font-family: Verdana, Geneva, sans-serif; font-size: 13px; font-weight: normal; line-height: 1.2; margin: 0; text-decoration: none; text-transform: none; padding: 10px 25px 10px 25px; mso-padding-alt: 0px; border-radius: 0px;"')
#if(${lead.Segmentation_Country_1006} == "Austria")
<a href"#" $link_att>JETZT</a>
#else
<a href"#" $link_att>NOW</a>
#end
As soon as we have done this, tracking has dropped out again and no email clicks were registered. Please does anyone have any clues on how to cut down on the size of our tokens whilst also still keeping Marketo tracking in place.
Thanks in advance for any help,
Charlie