Help Center

Page Change Listener

The Page Change Listener captures browsing activities for single-page applications by applying event logic rules that track visitor navigation.

Adding a Page Change Listener

  1. Click Listeners in the navigation bar.
  2. Click Add Listener.
  3. A pop-up window appears. Check the Show all box. Enter "page change" in the search bar. Click Page Change Listener.
  4. The Page Change Listener page opens. You can expand or collapse metadata fields (favorite, labels, and description) by clicking the chevron at the top of the page.

Configuring the Page Change Listener

1. Select channel(s)
Define the channels, and optionally specific URLs within these channels, on which you want this connection to be active.
Screenshot 2024-03-24 at 9.45.17 PM.png

2. Create rules to apply specific logic.
Create rules to apply specific logic that tracks navigation behavior in the Page Change listener. To create a new rule, click the "Add capturing method" button and choose one of the following options:

  • On hashChange event - Triggers a page view based on the hashChange event in the browser activity.
  • On popState event - Triggers a page view based on the popState event in the browser activity.
  • On pushState event - Triggers a page view based on the pushState event in the browser activity.
  • On replaceState event - Triggers a page view based on the replaceState event in the browser activity.

Screenshot 2024-03-24 at 9.47.10 PM.png

3. Save your settings.

Was this article helpful?
0 out of 0 found this helpful