Method Signature
Parameters
The tracking parameters.
Network-specific parameters.
Returns
Returnstrue on success or an Error object on failure.
Examples
Basic Usage
With Product Variation
With Analytics Tags
In a React Component
In a Vue Component
When to Use
Track item detail loads:- When a product detail page is first rendered
- After a user selects a product variant (track with the new variationId)
- When a product modal or quick view is opened
This event helps Constructor.io:
- Improve personalized recommendations
- Understand product interest and engagement
- Track user browsing patterns
Best Practices
- Track on Page Load: Call this method when the product detail page loads or when a product modal opens.
- Include Variation ID: If the product has variants (size, color, etc.), include the selected variation.
-
Use Consistent IDs: Ensure
itemIdmatches the product ID used in your catalog and other tracking events. -
Track Variation Changes: If a user changes the product variant, track a new item detail load event with the updated
variationId.
Error Handling
Related Methods
- trackSearchResultClick - Track clicks from search results
- trackBrowseResultClick - Track clicks from browse results
- trackConversion - Track when a user adds the product to cart