URL not tracking when v:rect used in button code

Avatar

Avatar

cmabruzzese0923

Avatar

cmabruzzese0923

cmabruzzese0923

17-11-2020

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>

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Sukrity_Wadhwa

Employee

Avatar

Sukrity_Wadhwa

Employee

Sukrity_Wadhwa
Employee

27-11-2020

Hi @cmabruzzese0923,

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

Thanks!

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

17-11-2020

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