Use 6sense data attributes as a targeting condition in a Kameleoon segment
Each custom data reads one 6sense attribute from the visitor’s browser, and the segment builder can then use it as a targeting condition. If the browser holds no 6sense company details, the script sets no value for that visitor.Fetch and use 6sense segment data in Kameleoon
Create a custom data that returns the 6sense segment IDs, so you can target visitors by segment.- Create a custom data and name it 6sense Segment ID.
- Choose type List, scope Visit, and retrieval method Custom JavaScript code.
-
Paste this code:
To target visitors by segment name instead of ID, paste this code instead:
- Click Validate.

144075 and 206863, drag and drop the custom data 6sense Segment ID and use the operator matches the regular expression with the value 144075|206863.
Fetch and use 6sense company attributes in Kameleoon
Create a custom data for each company attribute you want to target, such as the industry.- Create a custom data called 6sense Company Industry.
- Choose type Single, scope Visit, and retrieval method Custom JavaScript code.
-
Paste this code:
- Click Validate.
Fetch and use the 6sense confidence attribute in Kameleoon
Create a custom data that stores the 6sense confidence level, so you can target visitors by how confident 6sense is that its data is accurate.- Create a custom data called 6sense confidence.
- Choose type Single, scope Visit, and retrieval method Custom JavaScript code.
-
Paste this code:
- Click Validate.

Fetch and use the 6sense intent score by buying stage
Create a custom data for each product whose 6sense buying stage you want to target.- Create a custom data called 6sense myProduct Score, and replace myProduct with the name of your product.
- Choose type Single, scope Visit, and retrieval method Custom JavaScript code.
-
Paste this code:
- Click Validate.
- Target: scores less than 20
- Awareness: scores between 20 and 49
- Consideration: scores between 50 and 69
- Decision: scores between 70 and 84
- Purchase: scores of 85 or greater