Open graph image in email web version

AnthonyNoel
Participant

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 Upvotes
1 Reply 1
dennisedson
Community Manager

@amwilie , how would you handle this?

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes