Skip to main content
Solved

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

  • May 26, 2023
  • 1 reply
  • 63 views

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

Best answer by Ramy

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!

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

  • May 26, 2023

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


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