---
title: "Comment by Glenn Rempe on \"How to add Intercom to a Next.js site\" | Hashnode"
description: "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."
url: "https://hashnode.com/posts/how-to-add-intercom-to-a-nextjs-site/600aa586c90a4d0ba41d3fa8/comment/609ee850b684eb4cd52c7740"
---

[Discussion](https://hashnode.com/posts/how-to-add-intercom-to-a-nextjs-site/600aa586c90a4d0ba41d3fa8)

Comment [How to add Intercom to a Next.js site](https://hashnode.com/posts/how-to-add-intercom-to-a-nextjs-site/600aa586c90a4d0ba41d3fa8)

[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.
