Using the TrustPulse API with Single Page Applications and Headless WordPress Websites

TrustPulse works on almost any website, including Single Page Applications and Headless WordPress websites.

In this article, we’ll provide some examples for using the Events API .reset() method to work with the TrustPulse API to deeply integrate with your Single Page Application or Headless WordPress website.

Before You Start

Here are some things to know before you begin:

  • Due to the advanced nature of this guide, at this time we do not provide technical support for implementing .reset() in Single Page Applications.

Examples

You would update any of the following examples’ method to use your own unique TrustPulse account ID.

The method is formatted based on your account id. So if your account ID is 12345678 you would use it where id is declared at the beginning of the code.

NextJS

If you use a different way to handle your routes, make sure the following code runs when the path is changed:

Vue Router

React Router V4

React Router V3

EmberJS

Angular JS

If you haven’t gotten started with social proof then supercharge your website with TrustPulse today!

Get Started with TrustPulse

Increase Trust, Conversions and Sales NOW
Try TrustPulse 100% risk-free for 14 days!