Installation
In your web application, it is necessary to install our Web SDK so that the entire flow is tracked and attributed correctly. For this, you need to include the Nemu pixel script in the<head> of all your web pages. The Nemu pixel can be created in your dashboard by going to: Integrations -> Pixels -> Click here to add
See how to install here
At the end of creation, the URL of the Nemu pixel script will be displayed. Copy and paste it into the <head> of all your site pages.
With this, the global variable trackingNemu will be available with utility methods for tracking.
Registering UID to the user session
For total security and integrity of your application user data,
all UIDs registered by our SDK are encrypted before being
stored on our servers.
setUserId() method, passing the defined UID of the user who just completed the login process as an argument. Example:
useEffectCommon Sites: right after the SDK script loads, if
window.user is already available
Retrieving UTMs when sending sale event to Nemu API
ThegetLastSessionHistory() method returns an object containing the UTMs from the user’s last session. Use this object when sending the sale information to the Nemu API.