PersonalizeWP v2.9: Access Visitor Data with New REST API Endpoints

Explore how PersonalizeWP’s new REST API unlocks powerful opportunities for deeper, more dynamic user experiences.

We’ve just published an update to the PersonalizeWP plugin, adding in a REST API with two new endpoints, /visitor-activities and /visitor-segments, designed specifically for developers to access visitor profile information in code.

This feature enables developers to create highly personalised experiences directly within their own custom blocks and themes.

What is the REST API?

Our new REST API is a powerful tool that allows developers to interact with PersonalizeWP’s data programmatically. It provides a structured way to access visitor information, enabling seamless integration with custom WordPress themes, plugins, and external applications.

The API follows WordPress standards and requires no additional authentication beyond the visitor’s unique identifier (UID), which is securely stored in the browser’s local storage.

What is the Visitor Activities Endpoint?

The /visitor-activities endpoint provides you with access to the pages and products a visitor has viewed.

You can use this to create “Previously Viewed” product blocks enhancing a visitors shopping experience and encouraging return visits. Or you could build personalized product recommendations based on what you know they are looking at.

What is the Visitor Segments Endpoint?

The /visitor-segments endpoint provides developers with access to the segments that a visitor has been added to by PersonalizeWP.

If you have setup your segments to track users by content viewed, location or purchases made, you can find this information out in real-time and adjust the content you show them.

How can it be used?

The PersonalizeWP REST API opens up numerous possibilities for creating advanced personalisation features such as:

Previously Viewed Products Block
Developers can create “Previously Viewed” product blocks by filtering the /visitor-activities endpoint for the current post type (e.g., product). This allows you to display recently viewed items to visitors, enhancing their shopping experience and encouraging return visits.

View the “Previously Viewed” how-to article in our Knowledge Base.

Products For You Recommendations
Using the /visitor-segments endpoint, developers can build “Products For You” blocks that display targeted product recommendations based on the visitor’s segment memberships. This creates a tailored shopping experience that can significantly improve engagement and conversion rates.

View the “Products For You” how-article article in our Knowledge Base.

Benefits for Developers and Businesses

Benefits for Developers

  • Complete Control: Build custom personalisation features without being limited by pre-built options. Create exactly what your clients need using familiar WordPress REST API patterns.
  • Real-Time Data Access: Retrieve visitor data instantly without caching issues, ensuring your personalised content is always current and accurate.
  • Seamless Integration: Works with any JavaScript framework or library, from vanilla JS to React components, making it easy to incorporate into existing projects.
  • Reduced Development Time: No need to build tracking systems from scratch. Focus on creating unique experiences while PersonalizeWP handles the data collection.

Benefits for Businesses

  • Increased Conversion Rates: Show visitors exactly what they’re interested in, whether it’s previously viewed products or segment-specific offers, leading to higher engagement and sales.
  • Enhanced User Experience: Create a more intuitive and personalised journey for each visitor, encouraging longer site visits and repeat customers.
  • Data-Driven Decisions: Access detailed visitor activity data to understand customer behaviour and refine marketing strategies based on real insights.
  • Competitive Advantage: Deliver Amazon-like personalisation features that set your WooCommerce store apart from competitors using standard WordPress themes.

Start Using v2.9 Today…

Upgrade your personalization capabilities and unlock new development possibilities by taking advantage of the PersonalizeWP REST API today.

For detailed guidance on integration and examples, explore our comprehensive documentation:

REST API Overview
Visitor Activities Endpoint Documentation
Visitor Segments Endpoint Documentation
Troubleshooting Guide