In order to track user conversions in your website/landing page, you'll have to consider the two following steps:
- Store the user information when the user first visits the page.
- Report a conversion to NUVIAD after the user finish the process or at least a step in the process (it's totally up to your use-case).
You'll be able to implement two different tracking codes for these two steps, or a single code which combines them together (store the user information and also report a conversion at the same code).
Store user information when the user visits the page:
The following code is the basic implementation of the NUVIAD tracking SDK and without it, your conversion code can't identify the user.
Report a conversion:
This code reports a conversion to NUVIAD with an optional "stage" parameter.
Replace `YOUR_CAMPAIGN_ID` with the ID of the relevant campaign and `YOUR_STEP_ID` with a unique identifier of the relevant step in your conversion funnel (the step identifier is limited to 25 characters). the step identifier will later be part of your reports.
Store user information and report a conversion using the same code:
This code is a combination of the two different codes mentioned above. use this code in cases when your web page is both the landing page and the conversion page, and only if you consider the user visit as a conversion.