Help Center
The Identify Code helps recognize and track users, turning anonymous visitors into identified users. This allows you to:
We recommend adding the Identify Code on pages where users log in, sign up, or enter personal details, such as:
When a user logs in or registers, Ptengine links their information to their device, making it possible to track individual behavior and optimize their experience.
Example Code:
<script> document.getElementById('btnSignup').addEventListener('click', function() { ptengine.identify(document.getEleme ntById('uid').value, { //Get email Data email : document.getElementById('email').value, //Get Phone Data phone : document.getElementById('phone').value, //Get genger Data gender: document.getElementById('sex').value, //Get age Data age: document.getElementById('age').value, last_active_date: new Date() }) }); </script>
This example assigns a unique ID (Uid) to a user and stores key details like name, email, and membership type.
Uid
Once users are identified, Ptengine binds user attributes to their unique ID (Uid). You can:
Was this article helpful?
Thanks for your feedback.
Sorry about that. Do you mind sharing how we can improve?
Write your feedback here...
We have received your feedback and will make sure to improve this article. We will get in touch with you once we do.