Reference: snowplow/snowplow#113 Idea from: https://github.com/kingo55
This is a new feature to track views of products on ecommerce sites, or suggested articles on a media site, similar to how Google AdWords tracks ad views in different positions on a page.
Add a new method trackItemView()
like so:
Parameter | Required? | Example value |
---|---|---|
SKU / item code |
Yes | 'pbz0001234' |
item name |
No, but advisable (to make interpreting SKU easier) | 'Black Tarot' |
page context |
Yes | 'category page' |
page location |
No | 'div-cat-4 |
item ranking |
No | 4 |
Item views are a new event type, added to the tracker protocol as &e=iv
.
- Each item view becomes a single event in SnowPlow
- All fields are extracted into new fields in Hive/Infobright. No enrichment is required - all fields are just passed through
- The
event
field will be set toitem_view
- Extend
trackItemView
so it can use the 10 custom var slots for events, and thecv_json
custom var slot for a JSON (waiting on SnowPlow custom vars implementation)