<p>Based on the <a href="https://github.com/nystudio107/craft-seomatic#seomatic-variables" rel="nofollow noreferrer">SEOmatic docs</a>, something like this should do the trick nicely:</p>

<pre><code>{% do seomatic.meta.seoTitle("my title") %}
</code></pre>

CC BY-SA 4.0
2019-01-09T12:54:32.770Z
Okay I feel really dumb to have missed this part of the doc... It worked thank you very much !
Elodie Grondin
CC BY-SA 4.0
2019-01-09T14:02:18.397Z
No worries! To be completely honest, Andrew's plugin docs are a bit hard to go through since they're just one long README. Personally, I would love to see the docs migrated to his website where they could be organized a little better (using Vuepress or something similar). Would be easier to find and navigate to the section you want to read about...
Jalen Davenport
CC BY-SA 4.0
2019-01-10T00:54:53.990Z
I agree. And that's exactly what I plan to do @JalenDavenport
andrew.welch
CC BY-SA 4.0
2019-01-10T02:25:37.550Z
Lol - I wondered if you would see this  Thanks! 
Jalen Davenport
CC BY-SA 4.0
2019-01-09T12:09:05.187Z
2019-01-09T12:09:05.187Z
Jalen Davenport
<p>I'm using SEOmatic plugin in craft cms 3 and I need to set the seoTitle in my template but can't figure out how to do it...</p>

<p>I know that in Craft 2, it was possible to merge the seomatic variable. I tried something like this :</p>

<pre><code>{% set seomatic = seomatic|merge({
    meta: {
        seoTitle: 'my title'
    }
}) %}
</code></pre>

<p>But it doesn't work because the merge filter only works with arrays or "Traversable", and I got object... I'm kind of stuck with this issue.</p>

<p>Has anyone ever managed to make a merge of seoTitle?</p>

<craft3><plugin-seomatic><merge>
How to merge SEOmatic object in Craft 3?
# How to merge SEOmatic object in Craft 3?

(Asked by: username_0 on 2019-01-09)

I'm using SEOmatic plugin in craft cms 3 and I need to set the seoTitle in my template but can't figure out how to do it...
I know that in Craft 2, it was possible to merge the seomatic variable. I tried something like this :
{% set seomatic = seomatic|merge({
    meta: {
        seoTitle: 'my title'
    }
}) %}

But it doesn't work because the merge filter only works with arrays or "Traversable", and I got object... I'm kind of stuck with this issue.
Has anyone ever managed to make a merge of seoTitle?

**Tags:** craft3, plugin-seomatic, merge


---

## 1 answers

### Answer by username_1 on 2019-01-09. Score: 2 | Accepted answer

Based on the SEOmatic docs, something like this should do the trick nicely:
{% do seomatic.meta.seoTitle("my title") %}

> **Comments:**
> **username_0**: Okay I feel really dumb to have missed this part of the doc... It worked thank you very much !  
> **username_1**: No worries! To be completely honest, Andrew's plugin docs are a bit hard to go through since they're just one long README. Personally, I would love to see the docs migrated to his website where they could be organized a little better (using Vuepress or something similar). Would be easier to find and navigate to the section you want to read about...  
> **username_2**: I agree. And that's exactly what I plan to do @JalenDavenport  
> **username_1**: Lol - I wondered if you would see this  Thanks!   

---

