---
title: "Discussion on \"How to add Intercom to a Next.js site\" | Hashnode"
description: "Discussion on \"How to add Intercom to a Next.js site\". This is how I integrated Intercom into a Next.js website. \nIntercom has a guide on how to setup a single page app Integrate Intercom in a single page app but I couldn't find anything specific to React or Next.js.\nThe guide linked above documents the ..."
url: "https://hashnode.com/posts/how-to-add-intercom-to-a-nextjs-site/600aa586c90a4d0ba41d3fa8"
---

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

Discussion

# [How to add Intercom to a Next.js site](https://blog.justinramel.com/how-to-add-intercom-to-a-nextjs-site?utm_source=hashnode&utm_medium=feed)

This is how I integrated Intercom into a Next.js website. Intercom has a guide on how to setup a single page app Integrate Intercom in a single page app but I couldn't find anything specific to React or Next.js. The guide linked above documents the ...

Jan 22, 2021 · 3 min read · blog.justinramel.com  
Read the article

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

## Written by

[Justin Ramel](https://hashnode.com/@JustinDev)

@JustinDev · Newcastle upon Tyne, England,

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

Full Stack Senior Developer

Senior Full-Stack Developer with over 20 years of experience building web applications for startups, government, and higher education.

## Responses 1

Markdown supported · ⌘↵ to post

[Glenn Rempe](https://hashnode.com/@grempe)

[May 14, 2021](https://hashnode.com/posts/how-to-add-intercom-to-a-nextjs-site/600aa586c90a4d0ba41d3fa8/comment/609ee850b684eb4cd52c7740)

Very helpful. Thanks for the writeup. I did find I had to add a call to:

```
  const router = useRouter()
```

Without this the `useEffect()` for routes will not work.
