Solved

Having Issue with Page Rules on my S.P.A

  • 26 May 2023
  • 1 reply
  • 24 views

In-app messages keep showing up on the wrong pages in my app, even though I’ve set page rules, why is that?

icon

Best answer by Ramy 26 May 2023, 18:01

View original

1 reply

Userlevel 1
Badge

Hello!

We often find that in-app messages are shown on incorrect pages when our customer's are using a Single Page Application (SPA) and are not sending manual page calls. Note the following except from this page in our documentation:

If your website is a single page application you must send page calls to tell Customer.io what “page” a person is on.

 

With a SPA app, the initial loading of the JavaScript snippet sends a page view activity to Customer.io if automatic page tracking is enabled (which is enabled by default). If your customers are refreshing your SPA app, or opening one of your web app's views in a new tab, Customer.io will see a page view activity and note that as their current location. If you are not sending subsequent page views, Customer.io won't know what page the customer is viewing.

Hope this helps!

Reply