This event marks a visit to a product detail page
How to implement?
<!-- This event is already included in the base tag, only implement this manually for custom scenarios-->
<!-- INSTANCE_KEY SESSION_KEY AND PROFILE_KEY are inherited from the base tag -->
<script>
tweakwiseLayer.push({
event: 'productView',
data: {
productKey: 'ITEM_ID'
}
});
</script>curl --request POST \
--url 'https://navigator-analytics.tweakwise.com/api/pageview?instanceKey=INSTANCE_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"ProfileKey": "PROFILE_KEY",
"ProductKey": "ITEM_ID",
"SessionKey": "SESSION_KEY"
}
'Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| INSTANCE_KEY | URL-parameter - text | yes | Your Tweakwise Instance Key |
| PROFILE_KEY | Body parameter - text | yes | The ID that identifies the current visitor. Read more about the profile key here |
ITEM_ID | Body parameter - text | yes | The Tweakwise item ID of the current product |
SESSION_KEY | Body parameter - text | yes | The session key for the specific user. This can be your own session key or GA session, as long as it's consistent throughout the user's session. Allowed characters: alphanumeric and hyphens |
When do I submit this event?
Submit this event for every display of a product detail page.
Where do I implement this event in the code?
On every product detail page.
How to handle event-specific warnings from Tweakwise
SessionKey: xx% missing / ProfileKey: xx% missing / ProductKey: xx% missing
Mismatched sessionkeys in this event and SessionStart (xx%)
Please share your findings with your implementation partner. If they have questions about these messages, please have them contact [email protected].
