To get data from an Internet user within the segments of Navegg criteria, we use the following function:
Important: The ID must be replaced with your account ID!
Example – to get data on the age of a user, use the following code:
Multivalued criteria segments
Some criteria have unique result where the user can have only one segment per criteria. Other criteria may have multi-valued results, where the user can have more than one segment per criteria. In these cases the segments are separated by the character “–“. See the list of segments and their respective examples for reference:
The code implemented inside these functions is executed after receiving user data.
Criteria and Segments
The list of “Criteria segments” and “Segments” available can be found in the Segments section.
The Custom Segments feature allows you to create targets based on certain content or actions within yout site. Also allow you to create Retargeting lists or campaigns.
- The ID represented in the script refers to the account ID. The number reported by Navegg early in the account creation process.
- The CUSTOM_ID represented in the script refers to the CUSTOM ID previously created in the DMP Navegg.
- The “0.00” value must be substituted for the purchase’s value, in order for our system to receive and process the conversion value information.
- The “98.99” value must be substituted for the purchase’s value, in order for our system to receive and process the conversion value information.
PHP – If you have access to the purchase’s value in PHP variable, you must substitute “0,00” for “$sale_value”