π§Quickstart Guide for React Web Apps
CustomerGlu enables growth teams to run gamified programs in minutes using a low-code builder. This guide will help you integrate the CustomerGlu React SDK into your web application.
Last updated
CustomerGlu enables growth teams to run gamified programs in minutes using a low-code builder. This guide will help you integrate the CustomerGlu React SDK into your web application.
Last updated
This Quickstart Guide will walk you through integrating CustomerGlu's React web SDK in a sandbox environment and launching a few campaigns.
Or if you wish to set up your existing React project with CustomerGlu React SDK, you can install the latest package from npm and import it into your project as follows:
You can install the package using npm or yarn:
gluToken
and userId
from PostmanYou will need a gluToken
and userId
to interact with our React Component. Follow these steps to get them using Postman:
Fork the Postman Collection.
Get CustomerGlu writeKey
from here.
Use Register the User
request to get the userId
and gluToken
Fill in the relevant userId
and writeKey
in the request body.
After sending the request you'll receive a token
as gluToken
in the response body.
Note: Any relevant
UserId
can be provided.
Start by cloning our pre-configured CodeSandbox template for React Web:
Please replace the gluToken
and userId
obtained by Register the User.Also, add the relevant region.
In the CodeSandbox, a test gluToken
and userId
with a relevant campaign have already been provided.
To complete activities for the user, you can use CustomerGlu Debugger from the CustomerGlu Dashboard or you can also use the following API call via Postman:
Upon refresh, you should see the relevant banner or campaign being rendered in the app.
If you face any issues in the above setup, please contact us via the support channel.