Help Center
User identification is a feature provided by Ptengine that associates your website visitors with real user information in your own user database by setting identification tags. Simply put, it helps you clearly answer the question of "who this website visitor is."
User attributes are various characteristic information related to users that can be uploaded simultaneously during the user identification process, such as:
The user identification feature allows you to associate anonymous behaviors of website visitors with known user information in your databases such as CRM and membership systems, establishing a complete user profile.
Through user identification and attribute data, you can:
Based on user attributes and behavioral characteristics, you can:
Through user identification, you can associate user behaviors across different devices and channels, establishing complete user behavior monitoring without being limited by device-fragmented data.
Without user identification, you can only see the behavioral data of anonymous visitors and cannot know the user characteristics behind these behaviors. After enabling user identification, you can analyze behavioral differences among users with different characteristics, such as:
After importing user attribute data, you can use this data in various ways on the Ptengine platform to achieve more precise user analysis and personalized marketing.
Methods for Personalized Marketing
Set Up Customized Content: Design targeted marketing content based on the characteristics of the user group you intend to reach
For example: Show exclusive offers to "Diamond members," recommend related new products to users "interested in sports products" Specify Target Audience:
1.Enter the publishing conditions setup interface 2.In the "Target Users" section, find the various user information uploaded (user properties section) from the dropdown 3.Select the required user property conditions (such as membership level, purchase history, consultation status, etc.) 4.The system will automatically filter out the user groups that meet the conditions and reach them
Integrate Cross-Channel Data
1.Cross-Device User Behavior Tracking: Through the user identification feature, the system can identify the behavior of the same user across different devices Whether users access from mobile phones, tablets, or computers, their behavioral data can be associated with the same user profile No longer lose user conversion path data due to device switching 2.Precise Conversion Attribution: When a user completes a conversion (such as purchase, registration, etc.), the system can accurately identify which user it is Even if users switch between multiple sessions or devices, their conversion path can still be fully tracked
Determine Setup Location: Typically set on pages where user identity information can be obtained, such as login and registration pages. The principle of user identification is that when a user's authentication identity behavior is detected, the authenticated identity is bound to the personnel identification code used by Ptengine. During the binding process, information from the page can also be uploaded as attributes to enrich the user profile.
Identification Code Meaning:
ptengine.identify('User Unique Identifier ID', { attributeName1: 'attributeValue1', attributeName2: 'attributeValue2', // More attributes can be added... });
User Unique Identifier ID
attributeName
attributeValue
Deploy Code: Add the modified code to your website's user login or registration success event.
Here is an example of capturing user information when a user clicks the "Register" button:
document.getElementById('btnSignup').addEventListener('click', function() { ptengine.identify(document.getElementById('uid').value, { email: document.getElementById('email').value, phone: document.getElementById('phone').value, gender: document.getElementById('sex').value, age: document.getElementById('age').value, last_active_date: new Date() }); });
Event Listener Setup:
document.getElementById('btnSignup').addEventListener('click', function() {
document.getElementById('btnSignup')
.addEventListener('click', function() {...})
User Identification Core Function:
ptengine.identify(document.getElementById('uid').value, {
ptengine.identify()
document.getElementById('uid').value
User Attribute Collection:
email: document.getElementById('email').value, phone: document.getElementById('phone').value, gender: document.getElementById('sex').value, age: document.getElementById('age').value, last_active_date: new Date()
This part is a JavaScript object containing user attributes to be sent to Ptengine:
email
phone
gender
age
last_active_date
Most companies have already accumulated valuable user data on platforms such as CRM, ERP, and membership systems. By batch importing these user attributes, you can associate this offline data with users' behavior data on the website, achieving full-channel data integration.
Suitable Data Types for Import
1.User characteristics not present on the page:
Data Types Not Suitable for Import
1.Frequently changing data:
Ptengine provides two methods for batch importing user attribute data:
1.Preparation:
Implement user identification code on your website to ensure it can capture the identifier information in the first column of the CSV file 2.CSV File Format Example:
email,phone_number,... user1@example.com,12345678,... user2@example.com,87654321,...
3.Upload Steps:
Authentication method: Use "Bearer {API_KEY}" format in the request header 3.Request Body Structure:
{ "field_name": [ "user_id", "attributeName1", "attributeName2" ], "values": [ ["user1ID", "user1AttributeValue1", "user1AttributeValue2"], ["user2ID", "user2AttributeValue1", "user2AttributeValue2"] ] }
4.Code Example (Python):
```python import requests import json url = "" payload = json.dumps({ "field_name": [ "user_id", "membership_level", "total_purchase" ], "values": [ ["user123", "gold", "5000"], ["user456", "silver", "3000"] ] }) headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' } response = requests.post(url, headers=headers, data=payload) print(response.json()) ```
5.Batch Upload Notes:
Before implementing user identification and attributes, clarify the business problems you want to solve, such as:
Based on your business model, determine the most important user attributes:
After implementation, ensure data is correctly collected:
1.Click the gear icon in PTX 2.Check user attributes in the Data Settings section 3.Confirm if the uploaded information is present 4.Check the number of bound users (binding depends on user visits, please be patient)
1.Select Users in PTX 2.Choose Create User Group 3.Specify the uploaded user identifier 4.Save and check the number of users in the user report
If you have any questions, please feel free to contact the Ptengine Customer Support team for more assistance.
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.