Skip to main content
Answered

Wrong Page URL being recorded

  • April 21, 2023
  • 1 reply
  • 18 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?

 

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.

View original
Did this topic help you find an answer to your question?

1 reply

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • Answer
  • April 27, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings