TagSpy

add_to_wishlist

Recommended

The event signifies that an item was added to a wishlist. Use this event to identify popular gift items in your app.

Platforms
web, app
When it fires
You send it when the action happens.
Official docs

Parameters (3)

ParameterTypeRequiredDescriptionExample
currencystringYes*Currency of the items associated with the event, in 3-letter ISO 4217 format. * If you set value then currency is required for revenue metrics to be computed accurately.USD
valuenumberYes*The monetary value of the event. * value is typically required for meaningful reporting. If you mark the event as a conversion then it's recommended you set value. * currency is required if you set value.7.77
itemsArray<Item>YesThe items for the event.-

Example

gtag.js
gtag('event', 'add_to_wishlist', {
  currency: 'USD',
  value: 7.77,
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'add_to_wishlist',
  currency: 'USD',
  value: 7.77,
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
});

Also see