Skip to content

Instantly share code, notes, and snippets.

View carpas's full-sized avatar

Rafael Cordeiro carpas

  • São Paulo, Brazil
View GitHub Profile
@carpas
carpas / gist:f89b06e050b542f7062a8eaddf82560e
Last active October 3, 2017 19:31
Ecommerce Funnel Open Graph Tags
<!-- Place these tags between the <head> ... </head> tags: -->
<!-- Open Graph -->
<meta property="og:title" content="<%= title =%>" />
<meta property="og:type" content=" <%= open-graph.type =%>" />
<meta property="og:url" content="<%= open-graph.page-url %>" />
<meta property="og:image" content="<%= open-graph.share-image =%>" />
<meta property="og:description" content="<%= open-graph.description =%>" />
<meta property="og:locale" content="<%= open-graph.locale =%>" />
<meta property="og:site_name" content="<%= open-graph.site_name %=>" />
Place these tags between the <head> ... </head> tags:
<!-- Open Graph -->
<meta property="og:title" content="CUSTOM-PAGE-PRODUCT-TITLE" />
<meta property="og:type" content="product" />
<meta property="og:url" content="URL-OF-THE-PAGE" />
<meta property="og:image" content="http://URL-OF-PRODUCT-IMAGE-1200X628-DIMENSION.jpg" />
<meta property="og:description"
<!-- Cole esse código o mais alto possível na tag <head> da página: --!>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5FQ6KTC');</script>
<!-- End Google Tag Manager -->