Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

URL not tracking when v:rect used in button code

Avatar

Level 2

Hello,

 

The code below is for a CTA button in an email. Because of the v:rect, this URL does not show up as a tracked URL. I removed the <v:rect and </v:rect> but this breaks the rendering. Does anyone know how to remedy this? As this is a clickable button, we DO need this tracked.

 

Thanks!
Cindy

 

<a class="button" <v:rect href="https://google.com" target="_blank" style="display:block; v-text-anchor:middle;width:280px;height:40px;text-decoration:none;" fillcolor="#1c69d4" stroke="f">
<!--[if mso]><center><![endif]--><span style="width:100%; vertical-align: middle; text-align:center; font-family: Arial, sans-serif; font-size:14px; line-height:18px; font-weight:bold; color:#ffffff; padding: 10px 0; background-color:#1c69d4; display:block;">See Offer</span><!--[if mso]></center>
</v:rect><![endif]--></a>
2 Replies

Avatar

Community Advisor

Hi,

 

That doesn't look like valid HTML. Is this what you intended?

<a class="button" href="https://google.com">
<!--[if mso]><v:rect target="_blank" style="display:block; v-text-anchor:middle;width:280px;height:40px;text-decoration:none;" fillcolor="#1c69d4" stroke="f">
<center><![endif]--><span style="width:100%; vertical-align: middle; text-align:center; font-family: Arial, sans-serif; font-size:14px; line-height:18px; font-weight:bold; color:#ffffff; padding: 10px 0; background-color:#1c69d4; display:block;">See Offer</span>
<!--[if mso]></center></v:rect><![endif]-->
</a>

 

Thanks,

-Jon

Avatar

Administrator

Hi @cmabruzzese0923,

Was the given solution helpful to resolve your query or do you need more help? Do let us know.

Thanks!



Sukrity Wadhwa