How to install the ProfitWell.js Snippet for Engagement Data


ProfitWell Engagement needs you to add bit of JavaScript to your application so that it can track when your customers log into your web-app. Support for mobile applications is coming soon.

Instructions for platform specific instructions below:


Make sure you pass the user's email to the snippet.

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
profitwell('auth_token', 'PUBLIC_API_TOKEN_HERE'); // Your unique Profitwell public API token
profitwell('user_email', 'USER_EMAIL_HERE'); // enter the Customer email of the logged-in user

If there are multiple users under one user who is being billed, you can add the user id from your data provider (stripe customer ID).


`profitwell('user_id', '$the_stripe_user_id_of_the_account')`

 `profitwell(‘user_email', '$the_email_address_of_the_user')`

i.e. you need to make two calls

How Did We Do?