TagSpy

earn_virtual_currency

Recommended

This event measures the awarding of virtual currency. Log this along with spend_virtual_currency to better understand your virtual economy.

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

Parameters (2)

ParameterTypeRequiredDescriptionExample
virtual_currency_namestringNoThe name of the virtual currency.Gems
valuenumberNoThe value of the virtual currency.5

Example

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

Also see