admin:online-platform-cms:google-events

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
admin:online-platform-cms:google-events [2023/12/11 13:10] evaldas-luksysadmin:online-platform-cms:google-events [2024/05/09 06:34] – [Events and their data (GTM):] evaldas-luksys
Line 13: Line 13:
   * **withdrawalSuccess** (//When user makes a successful withdrawal//)   * **withdrawalSuccess** (//When user makes a successful withdrawal//)
   * **myAccountMenuDepositButtonClick** (//When user clicks deposit button. Different labels are sent for mobile and desktop buttons//)   * **myAccountMenuDepositButtonClick** (//When user clicks deposit button. Different labels are sent for mobile and desktop buttons//)
 +  * **viewContent** (//When the user visits Live/Prematch/Outright single event//)
 +  * **registrationFormOpen** (//When the registration form opens //)
  
 ====== Events and their data (GA): ====== ====== Events and their data (GA): ======
Line 55: Line 57:
 <code> <code>
 { {
-  // Data sent to GA 
   action: SLIP_TYPE,   action: SLIP_TYPE,
   event_category: 'slip_buy',   event_category: 'slip_buy',
Line 73: Line 74:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'addBetToBettingSlip',   action: 'addBetToBettingSlip',
-   
-  // Data sent to GTM 
-  action: 'addBetToBettingSlip', 
-  gameModuleName: GAME_MODULE_NAME, 
-  eventUUIDS: EVENT_UUIDS, 
-  market: MARKET, 
-  selection: SELECTED, 
 } }
- 
-GAME_MODULE_NAME represents game module from the APP. For instance, 'prematch', 'keno', 'horses', etc... 
-EVENT_UUIDS is an array containing event uuids, e.g., '3ce479b2-31aa-56e5-945d-5e3da9d3d0e7'. 
-MARKET is bet market. 
-SELECTED is bet selection. 
- 
 </code> </code>
 **depositSuccess** **depositSuccess**
 <code> <code>
 { {
-  // Data sent to GA 
   action: METHOD,   action: METHOD,
   event_category: 'deposit',   event_category: 'deposit',
   event_label: USER_ID,   event_label: USER_ID,
-  value: AMOUNT, 
-   
-  // Data sent to GTM 
-  event: 'depositSuccess', 
-  action: METHOD, 
-  category: 'deposit', 
-  label: USER_ID, 
   value: AMOUNT,   value: AMOUNT,
 } }
Line 111: Line 90:
 AMOUNT is user's deposit amount AMOUNT is user's deposit amount
 </code> </code>
 +
 **withdrawalSuccess** **withdrawalSuccess**
 <code> <code>
 { {
-  // Data sent to GA 
   action: METHOD,   action: METHOD,
   event_category: 'withdrawal',   event_category: 'withdrawal',
   event_label: USER_ID,   event_label: USER_ID,
-  value: AMOUNT, 
-   
-  // Data sent to GTM 
-  event: 'withdrawalSuccess', 
-  action: METHOD, 
-  category: 'withdrawal', 
-  label: USER_ID, 
   value: AMOUNT,   value: AMOUNT,
 } }
Line 136: Line 108:
 <code> <code>
 { {
-  // Data sent to GA 
-  action: 'click', 
-  event_category: 'deposit', 
-  event_label: LABEL, 
-  value: 1, 
-   
-  // Data sent to GTM 
-  event: 'myAccountMenuDepositButtonClick', 
   action: 'click',   action: 'click',
   event_category: 'deposit',   event_category: 'deposit',
Line 153: Line 117:
 </code> </code>
  
-====== Events and their data (GTAG)======+**viewContent** 
 +<code> 
 +
 +  action'viewContent', 
 +  event_label: CONTENT NAME, 
 +}
  
-**registrationInit**+CONTENT NAME is event name. 
 +</code> 
 + 
 +**registrationFormOpen**
 <code> <code>
 { {
-  // Data sent to GA +  action: 'registration_form_open', 
-  action: 'registration_init', +  category: registration, 
-  event_category'registration'+} 
-   +</code> 
-  // Data sent to GTM + 
-  event: 'registrationInit',+====== Events and their data (GTM): ====== 
 + 
 +**gtm-registrationInit** 
 +<code> 
 +{ 
 +  event: 'gtm-registrationInit',
   action: 'registration_init',   action: 'registration_init',
   category: 'registration',   category: 'registration',
Line 169: Line 146:
 </code> </code>
  
-**registrationConfirmationKey**+**gtm-registrationConfirmationKey**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-registrationConfirmationKey',
-  action: 'confirmation_key', +
-  event_category: 'registration', +
-   +
-  // Data sent to GTM +
-  event: 'registrationConfirmationKey',+
   action: 'confirmation_key',   action: 'confirmation_key',
   category: 'registration',   category: 'registration',
Line 183: Line 155:
 </code> </code>
  
-**registrationFinished**+**gtm-registrationFinished**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-registrationFinished',
-  action: 'finished', +
-  event_category: 'registration', +
-   +
-  // Data sent to GTM +
-  event: 'registrationFinished',+
   action: 'finished',   action: 'finished',
   category: 'registration',   category: 'registration',
 +  userID: USER_ID
 } }
 +
 +USER_ID is current user id
 </code> </code>
  
-**login**+**gtm-login**
 <code> <code>
 { {
-  event: 'login',+  event: 'gtm-login',
   action: 'login',   action: 'login',
   category: 'authorization',   category: 'authorization',
 +  userID: USER_ID
 } }
 +
 +USER_ID is current user id
 </code> </code>
  
-**logout**+**gtm-logout**
 <code> <code>
 { {
-  event: 'logout',+  event: 'gtm-logout',
   action: 'logout',   action: 'logout',
   category: 'authorization',   category: 'authorization',
Line 215: Line 188:
 </code> </code>
  
-**slipBuy**+**gtm-slipBuy**
 <code> <code>
 { {
-  event: 'slipBuy',+  event: 'gtm-slipBuy',
   action: SLIP_TYPE,   action: SLIP_TYPE,
   category: 'slip_buy',   category: 'slip_buy',
Line 238: Line 211:
 AMOUNT is total betting slip amount. AMOUNT is total betting slip amount.
 WALLET_TYPE is wallet type used when purchasing a slip - 'main', 'promo' or 'bonus' WALLET_TYPE is wallet type used when purchasing a slip - 'main', 'promo' or 'bonus'
 +</code>
 +
 +**gtm-addBetToBettingSlip**
 +<code>
 +{
 +  action: 'gtm-addBetToBettingSlip',
 +  gameModuleName: GAME_MODULE_NAME,
 +  eventUUIDS: EVENT_UUIDS,
 +  market: MARKET,
 +  selection: SELECTED,
 +}
 +
 +GAME_MODULE_NAME represents game module from the APP. For instance, 'prematch', 'keno', 'horses', etc...
 +EVENT_UUIDS is an array containing event uuids, e.g., '3ce479b2-31aa-56e5-945d-5e3da9d3d0e7'.
 +MARKET is bet market.
 +SELECTED is bet selection.
 +
 +</code>
 +
 +**gtm-depositSuccess**
 +<code>
 +{
 +  event: 'gtm-depositSuccess',
 +  action: METHOD,
 +  category: 'deposit',
 +  label: USER_ID,
 +  value: AMOUNT,
 +  userID: USER_ID,
 +  amount: AMOUNT,
 +  depositsCount: DEPOSIT_COUNT,
 +}
 +
 +METHOD is current users selected payment method, e.g. 'manual', 'retail', 'mlipa' and etc..
 +USER_ID is current user id
 +AMOUNT is user's deposit amount
 +DEPOSIT_COUNT is the number of initiated deposit, e.g. 1, 2, 3, ... (meaning 1st deposit, 2nd deposit, ...)
 +</code>
 +
 +**gtm-withdrawalSuccess**
 +<code>
 +{
 +  event: 'gtm-withdrawalSuccess',
 +  action: METHOD,
 +  category: 'withdrawal',
 +  label: USER_ID,
 +  value: AMOUNT,
 +}
 +
 +METHOD is current users selected payment method, e.g. 'manual', 'retail', 'mlipa' and etc..
 +USER_ID is current user id
 +AMOUNT is user's withdrawals amount
 +</code>
 +
 +**gtm-myAccountMenuDepositButtonClick**
 +<code>
 +{
 +  event: 'gtm-myAccountMenuDepositButtonClick',
 +  action: 'click',
 +  event_category: 'deposit',
 +  event_label: LABEL,
 +  value: 1,
 +}
 +
 +LABEL can either be 'desktop-my-account-menu-deposit-button' or 'mobile-my-account-menu-deposit-button'
 +</code>
 +
 +**gtm-viewContent**
 +<code>
 +{
 +   event: 'gtm-viewContent',
 +   action: 'viewContent',
 +   label: CONTENT NAME,
 +   eventUUIDS: [CONTENT ID],
 +   contentName: CONTENT NAME,
 +}
 +
 +CONTENT NAME is event name.
 +CONTENT ID is event uuid.
 +</code>
 +
 +**gtm-registrationFormOpen**
 +<code>
 +{
 +   event: 'gtm-viewContent',
 +   action: 'registration_form_open',
 +   category: registration,
 +}
 </code> </code>
  • admin/online-platform-cms/google-events.txt
  • Last modified: 2024/05/09 06:34
  • by evaldas-luksys