Set Up Earn Virtual Currency Tag
How to set up the tag and trigger for the earn virtual currency event. Download the earn virtual currency tag and trigger, or download all the game tags and triggers.
How to import tags and triggers. If you would prefer to create the tag and trigger yourself follow the steps shown below.
Step one is to create the tag.
Add the Measurement ID to the tag.
You can add your Measurement ID directly to the tag however, the best practice is to create a Constant Variable.
The Measurement ID can be found in the admin section of the GA4 platform.
Enter the Event Name as earn_virtual_currency.
In the More Settings section select the “Send Ecommerce data” check box.
Then select the Data Layer as the Data Source.
Event Parameters and User Properties can be used to include extra data in the tag.
Step two is to create the trigger.
Click the trigger area in order to view the available trigger types and to create the trigger for the tag.
Select the Custom Event trigger type.
Enter the Event Name as earn_virtual_currency.
Google Tag Manager Solutions
Enhanced Ecommerce Data Layer
Recommended Events Data Layer