Answered

Wrong Page URL being recorded

  • 21 April 2023
  • 1 reply
  • 16 views

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?

 

icon

Best answer by Racheal 27 April 2023, 22:14

View original

1 reply

Userlevel 4
Badge +5

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.

Reply