Help Center
Event Properties refer to additional information tags that can be recorded and transmitted when user behavior events occur. Through event properties, we can add specific contextual information to each user action, such as product category purchased, amount, user level, and more.
Unlike traditional single event recording, event properties allow us to:
Through multi-dimensional analysis of event properties, we can:
Based on event property analysis results, we can:
The basic calling format for event properties is as follows:
ptengine.track('event_name', { property1: 'value1', property2: 'value2', property3: 'value3' })
Suitable for simple click event tracking, you can directly add onclick attributes to HTML elements:
<button onclick="ptengine.track('product_view', { category: 'skincare', price: 2500, brand: 'brand_name' })">View Product</button>
Event listener with dynamic properties:
document.getElementById('btnSubmit').addEventListener('click', function() { ptengine.track('form_submit', { email: document.getElementById('email').value, submit_date: new Date(), form_type: 'contact' }); });
// Implementation on purchase completion page ptengine.track('purchase_completed', { product_category: 'skincare', order_amount: 15000, user_level: 'vip', payment_method: 'credit_card', coupon_used: 'SAVE20' });
<!-- HTML Form --> <form id="contactForm"> <input type="email" id="email" name="email"> <select id="company_size" name="company_size"> <option value="1-10">1-10 people</option> <option value="11-50">11-50 people</option> <option value="51-200">51-200 people</option> </select> <button type="submit" id="submitBtn">Submit</button> </form> <script> document.getElementById('contactForm').addEventListener('submit', function(e) { e.preventDefault(); ptengine.track('contact_form_submit', { email: document.getElementById('email').value, company_size: document.getElementById('company_size').value, submit_date: new Date().toISOString(), form_source: 'homepage' }); }); </script>
After implementation, the following verifications need to be performed:
Through the above methods, you can successfully implement event properties, providing a rich data foundation for subsequent data analysis and user behavior insights.
Users with different purposes exhibit vastly different behaviors when visiting pages. To distinguish original intent and confirm whether page functions meet user needs, you can limit to specific events in the global segmentation section of heat maps to identify:
Dimension (Event Name) refers to a specific dimension of a specified event. Dimension refers to a specific dimension not limited to any event.
Taking Dimension (Event Name) as an example, The dimension name is before the parentheses, and the event name is inside the parentheses.
After detecting specific user behaviors, you can add operational activities connected to that behavior, thereby smoothly helping users convert.
Background: A job change service platform wanted to provide more accurate content and services based on users' job-seeking intention levels.
Implementation Plan:
Implementation Results:
Background: An e-commerce platform wanted to understand the browsing behavior differences between different user groups to optimize page layout and content display.
Behavioral Difference Analysis Findings:
Page Optimization Strategy:
Event labels are indispensable tools in modern product analysis, enabling:
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.