TagSpy

spend_virtual_currency

Recommended

This event measures the sale of virtual goods in your app and helps you identify which virtual goods are the most popular.

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

Parameters (3)

ParameterTypeRequiredDescriptionExample
valuenumberYesThe value of the virtual currency.5
virtual_currency_namestringYesThe name of the virtual currency.Gems
item_namestringNoThe name of the item the virtual currency is being used for.Starter Boost

Example

gtag.js
gtag('event', 'spend_virtual_currency', {
  value: 5,
  virtual_currency_name: 'Gems',
  item_name: 'Starter Boost',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'spend_virtual_currency',
  value: 5,
  virtual_currency_name: 'Gems',
  item_name: 'Starter Boost',
});

Also see