<p>Right now, SEOmatic assumes an <code>og:</code> namespace for all OpenGraph tags, which clearly isn't correct. So you'd just need to add these tags yourself if you want to use them.</p>

CC BY-SA 3.0
2017-11-04T15:00:51.480Z
2017-11-04T15:00:51.480Z
andrew.welch
<p>I would like to implement <a href="https://developers.pinterest.com/docs/rich-pins/products/?" rel="nofollow noreferrer">Pinterest Product Pin</a> for my products. I need to update og:xxx values. Here is how i done:</p>

<pre><code>{% set og = seomaticMeta.og %}
{% set og = og | merge({'type': "product", 'product:price:currency': "USD", 'product:price:amount': variant.price|number_format(2) }) %}
{% set seomaticMeta = seomaticMeta | merge({'og': og}) %}
</code></pre>

<p>This adds new tags but the property of the meta tag should not include 'og:' in product related meta tag. So this outputs something like:</p>

<pre><code>&lt;meta property="og:product:price:amount" content="300.00" /&gt;
</code></pre>

<p>but it should be something like this:</p>

<pre><code>&lt;meta property="product:price:amount" content="300.00" /&gt;
</code></pre>

<p>How can i achieve this?</p>

<plugin-craftcommerce><plugin-seomatic>
Edit meta property value in Open Graph meta tag
# Edit meta property value in Open Graph meta tag

(Asked by: username_0 on 2017-11-04)

I would like to implement Pinterest Product Pin for my products. I need to update og:xxx values. Here is how i done:
{% set og = seomaticMeta.og %}
{% set og = og | merge({'type': "product", 'product:price:currency': "USD", 'product:price:amount': variant.price|number_format(2) }) %}
{% set seomaticMeta = seomaticMeta | merge({'og': og}) %}

This adds new tags but the property of the meta tag should not include 'og:' in product related meta tag. So this outputs something like:


but it should be something like this:


How can i achieve this?

**Tags:** plugin-craftcommerce, plugin-seomatic


---

## 1 answers

### Answer by username_1 on 2017-11-04. Score: 1

Right now, SEOmatic assumes an `og:` namespace for all OpenGraph tags, which clearly isn't correct. So you'd just need to add these tags yourself if you want to use them.


---

