Using Mesh in Your Web App
How to set up the SDK for usage in a web app
Insert the Mesh SDK script tag
In some cases it may be necessary to include Mesh tracking in your product in addition to your marketing properties. For example, if you have a self-service option to sign up for your product we may not be able to identify a visitor before they sign up for your service. In order to tie back marketing touchpoints to those users, the Mesh SDK has a built in app mode that allows you to link users back to their marketing activity.
The app mode of Mesh can be enabled by setting appMode in the Mesh script to true:
Once installed in your app, Mesh exposes a method to allow you to push user information to us. You can send the following piece of user information: first name, last name, email, company and title
You can do that like this: