Once the Pushwoosh Web SDK is integrated into your website, page visits are tracked for you — no custom code required.
1. Integrate the Web SDK
If you haven't already, integrate the Pushwoosh Web SDK. Follow the Web Push SDK integration guide.
2. Use the built-in PW_SiteOpened event
The Web SDK fires the default PW_SiteOpened event every time a user opens any page of your website. Each event carries these attributes:
-
url— the URL of the page visited -
title— the title of the page visited -
device_type— the device type code
To see how often a specific page is opened, go to Audience > Events in the Control Panel and filter the PW_SiteOpened statistics by the url or title attribute. See Default events.
3. Get notified or react when the page is visited
Build a Customer Journey with a Trigger-based entry on the PW_SiteOpened event, and add a condition on the url (or title) attribute so that only the page you care about starts the flow. Then add the element you need — a push or email to follow up with the user, or a Webhook element to notify an external system such as Slack.
4. If you need something more specific
For actions that PW_SiteOpened doesn't cover, create a custom event in Audience > Events and send it with the /postEvent API method from your page or your backend. See Custom events.
Note that the Web SDK's event handlers (subscribe, unsubscribe, permission-default, permission-denied, permission-granted) only report subscription and permission changes. They are not used for tracking page visits or other website interactions.
Comments
0 comments
Please sign in to leave a comment.