This event marks the clicking on an item in a product collection from Tweakwise
Using the Tweakwise JS implementation?When using the Tweakwise JS implementation, this event is automatically submitted when the base script is included. You won't need any additional implementation for this event.
How to implement?
<!-- INSTANCE_KEY SESSION_KEY and PROFILE_KEY are inherited from the base tag -->
<script>
tweakwiseLayer.push({
event: 'itemClick',
data: {
itemId: 'ITEM_ID',
requestId: 'REQUEST_ID'
}
});
</script>curl --request POST \
--url 'https://navigator-analytics.tweakwise.com/api/itemclick?instanceKey=INSTANCE_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"RequestId": "REQUEST_ID",
"ItemId": "ITEM_ID",
"SessionKey": "SESSION_KEY",
"ProfileKey": "PROFILE_KEY"
}
'Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| INSTANCE_KEY | URL-parameter - text | yes | Your Tweakwise Instance Key |
REQUEST_ID | Body parameter - text | yes | The ID of the Tweakwise request for the current page. Read more about the request ID here |
| ITEM_ID | Body parameter - text | yes | The Tweakwise Item ID of the item that's clicked on |
SESSION_KEY | Body parameter - text | yes | The session key for the specific user. This can be your own session key, GA session. As long as it's consistent over the user's session. Allowed characters: alphanumeric and hyphens |
| PROFILE_KEY | Body parameter - text | yes | The ID that identifies the current visitor. Read more about the profile key here |
When do I submit this event?
Submit this event for a single click on a product that is returned in a collection that was provided by the Tweakwise navigation API.
Where do I implement this event in the code?
On every page where you show a collection of products that is retrieved from the Tweakwise Delivery API:
- Merchandising pages (category pages, landing pages, search result page)
- Pages that contain Tweakwise recommendations
- Pages that contain Tweakwise Guided Selling
How to handle event-specific warnings from Tweakwise
ItemId: xx% not found
Please share your findings with your implementation partner. If they have questions about these messages, please have them contact [email protected]
