Skip to content

Instantly share code, notes, and snippets.

@cwmanning
Created November 15, 2012 16:31
Show Gist options
  • Save cwmanning/4079561 to your computer and use it in GitHub Desktop.
Save cwmanning/4079561 to your computer and use it in GitHub Desktop.
Taboola Click
registerTaboolaClick: function(itemId, itemType, responseId, placement){
var url = 'http://api.taboola.com/1.0/json/usatodaydemo/recommendations.notify-click' +
'?app.type=desktop&app.apikey=' + this.apiKey + '&response.id=' + responseId +
'&item.type=' + itemType + '&item.id=' + itemId;
if (placement) {
url += 'placement=' + placement; // below-photo or end-slate
}
new Image().src = url;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment