CMS Development

AnthonyNoel
Participante

Open graph image in email web version

Can I add OG:Image meta tags to the web version of an email newsletter?

This is what I have in my template:

<html lang="en">
<head>
    <title>{% if content.html_title and content.html_title != '' %}{{ content.html_title }}{% else %}{{ content.body.subject }}{% endif %}</title>
        {% if content.meta_description %}<meta name="description" content="{{ content.meta_description }}"/>{% endif %}
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
	  <meta property="og:image" content="{{ module.og_image }}">
	  <meta name="twitter:card" content="summary_large_image">
    <style>
But Hubspot moves the webversion of my email HTML into another wrapper, and LinkedIn etc doesn’t seem able to find the tags in there.
 
output.jpg
 
So my question(s):

Can I use OG meta tags to publish email newsletters to social media?

or can I stop Hubspot from wrapping my email HTML in another container?
0 Me gusta
1 Respuesta 1
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Open graph image in email web version

@alyssamwilie , how would you handle this?

0 Me gusta