Skip to content

Commit

Permalink
passing idWidget & type to cick-on-reco activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolaaas committed Mar 8, 2018
1 parent 11a0b63 commit fdc9bd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/eb.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ class Eb {
},
id,
url,
}) {
}, idWidget, productType = 'product') {
this.trackActivity({
verb: 'click-on-reco',
originalId: id || original_id,
widgetId: idWidget,
type: productType,
})
.then(() => document.location.href = url)
.catch((err) => {
Expand Down

0 comments on commit fdc9bd5

Please sign in to comment.