I have set up the intercom code snippet on several pages across our application, however every page visit across them is being recorded as if the home page was being visited. This leaves us without proper context for support requests coming in through the bot.
Any idea whats wrong with our code or what we can do to extend it to more accurately capture the right page URL?
Best answer by Racheal
Hey @Chris Perry Racheal from the support engineer team here👋
It sounds like your site may be a single page application. Websites that are a Single Page Application (SPA) are characterized by very few page refreshes and lots of asynchronous JavaScript require Intercom integration in a slightly altered way. This involves including the Intercom JavaScript library file in your HTML head element and making a few extra JS calls. The linked documentation on integrating Intercom in a SPA will provide complete details.
Hey @Chris Perry Racheal from the support engineer team here👋
It sounds like your site may be a single page application. Websites that are a Single Page Application (SPA) are characterized by very few page refreshes and lots of asynchronous JavaScript require Intercom integration in a slightly altered way. This involves including the Intercom JavaScript library file in your HTML head element and making a few extra JS calls. The linked documentation on integrating Intercom in a SPA will provide complete details.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.