---
title: "Discussion on \"How to add SEO Meta tags in your Next.js apps\" | Hashnode"
description: "Discussion on \"How to add SEO Meta tags in your Next.js apps\". SEO is kind of like a buzzword when it comes to building websites or web applications these days. Early-stage startups are most of the time, advised to invest so much in the marketing (SEO) of their products so that they can get to as many people at ..."
url: "https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add SEO Meta tags in your Next.js apps](https://seven.hashnode.dev/seo-in-nextjs-apps?utm_source=hashnode&utm_medium=feed)

SEO is kind of like a buzzword when it comes to building websites or web applications these days. Early-stage startups are most of the time, advised to invest so much in the marketing (SEO) of their products so that they can get to as many people at ...

Apr 10, 2022 · 6 min read · seven.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#seo](https://hashnode.com/tag/seo)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Caleb Olojo](https://hashnode.com/@Seven_)

@Seven\_

  
[View profile](https://hashnode.com/@Seven_)

Frontend Developer

## Responses 7

Markdown supported · ⌘↵ to post

[Nemanja Mitic](https://hashnode.com/@nemanjam)

[Jun 21, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62b195a2884fc0770c0cdb3c)

Can I set url with Javasript or it must be hardcoded or done server-side? Will it affect SEO?

```
<meta property="og:url" content={window?.location.href} />
```

[Caleb Olojo](https://hashnode.com/@Seven_)

[Jun 21, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62b195a2884fc0770c0cdb3c#reply-62b1fe6b94003a788976e942)

I think it'll be better to just hard code it, but if you think the url may be dynamic sometimes, you can use JavaScript to handle it.

I don't have an answer to whether it can be done on the server side.

But, I think you should checkout Monica Lent's SEO for Devs course if you want a proper understanding.

[Andrew Hinkson](https://hashnode.com/@Endpoint)

[Apr 17, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/625b7cf952fb7bd53380f594)

Great write up!

[Caleb Olojo](https://hashnode.com/@Seven_)

[Apr 17, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/625b7cf952fb7bd53380f594#reply-625b7dc42f84e0d4fc33dc7d)

Thank you, Andrew! ✊🏾

[Mercy Idowu](https://hashnode.com/@mercydesigns)

[Apr 14, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62576a43049d83cc3e3acf6f)

Awesome

[Caleb Olojo](https://hashnode.com/@Seven_)

[Apr 14, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62576a43049d83cc3e3acf6f#reply-62577779049d83cc3e3acfd5)

Thank you, Mercy!

[calebro](https://hashnode.com/@calebro)

[Apr 12, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62555297b32ddd968bbeb396)

Very Informative article. 💯

[Caleb Olojo](https://hashnode.com/@Seven_)

[Apr 12, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62555297b32ddd968bbeb396#reply-62555d46b32ddd968bbeb4ed)

Thank you!

[Emmanuel Olojo](https://hashnode.com/@eight342)

[Apr 11, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/6253c65c92d73e7055c1acc8)

Nice.🙌🙌

[Caleb Olojo](https://hashnode.com/@Seven_)

[Apr 11, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/6253c65c92d73e7055c1acc8#reply-6253e677b32ddd968bbe8c6c)

Thank you!! 😎😎✊🏾

[Theophilus Ige](https://hashnode.com/@TheOphige)

[Apr 10, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/6253480d92d73e7055c1a41a)

Nice article 👍

[Caleb Olojo](https://hashnode.com/@Seven_)

[Apr 10, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/6253480d92d73e7055c1a41a#reply-62534a7375dccb6f3432040c)

Thanks chief! 🤩😃✊🏾
