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
Next revisionBoth sides next revision
admin:online-platform-cms:google-events [2022/11/03 17:04] – [Google Analytics/Google Tag Manager events] evaldas-luksysadmin:online-platform-cms:google-events [2024/05/09 06:26] 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: ======+====== Events and their data (GA): ======
  
 **registrationInit** **registrationInit**
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'registration_init',   action: 'registration_init',
   event_category: 'registration',   event_category: 'registration',
-   
-  // Data sent to GTM 
-  event: 'registrationInit', 
-  action: 'registration_init', 
-  category: 'registration', 
 } }
 </code> </code>
Line 33: Line 29:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'confirmation_key',   action: 'confirmation_key',
   event_category: 'registration',   event_category: 'registration',
-   
-  // Data sent to GTM 
-  event: 'registrationConfirmationKey', 
-  action: 'confirmation_key', 
-  category: 'registration', 
 } }
 </code> </code>
Line 46: Line 36:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'finished',   action: 'finished',
   event_category: 'registration',   event_category: 'registration',
-   
-  // Data sent to GTM 
-  event: 'registrationFinished', 
-  action: 'finished', 
-  category: 'registration', 
 } }
 </code> </code>
Line 59: Line 43:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'login',   action: 'login',
   event_category: 'authorization',   event_category: 'authorization',
-   
-  // Data sent to GTM 
-  event: 'login', 
-  action: 'login', 
-  category: 'authorization', 
 } }
 </code> </code>
Line 72: Line 50:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'logout',   action: 'logout',
   event_category: 'authorization',   event_category: 'authorization',
-   
-  // Data sent to GTM 
-  event: 'logout', 
-  action: 'logout', 
-  category: 'authorization', 
 } }
 </code> </code>
Line 85: Line 57:
 <code> <code>
 { {
-  // Data sent to GA 
   action: SLIP_TYPE,   action: SLIP_TYPE,
   event_category: 'slip_buy',   event_category: 'slip_buy',
   event_label: USER_ID,   event_label: USER_ID,
-   
-  // Data sent to GTM 
-  event: 'slipBuy', 
-  action: SLIP_TYPE, 
-  category: 'slip_buy', 
-  label: USER_ID, 
 } }
  
Line 109: Line 74:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'addBetToBettingSlip',   action: 'addBetToBettingSlip',
-   
-  // Data sent to GTM 
-  gameModuleName, 
-  eventUUIDS, 
-  market, 
-  selection, 
 } }
 </code> </code>
Line 122: Line 80:
 <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 140: 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 165: Line 108:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'click',   action: 'click',
   event_category: 'deposit',   event_category: 'deposit',
   event_label: LABEL,   event_label: LABEL,
   value: 1,   value: 1,
-   +
-  // Data sent to GTM + 
-  event: 'myAccountMenuDepositButtonClick',+LABEL can either be 'desktop-my-account-menu-deposit-button' or 'mobile-my-account-menu-deposit-button' 
 +</code> 
 + 
 +**viewContent** 
 +<code> 
 +{ 
 +  action: 'viewContent', 
 +  event_label: CONTENT NAME, 
 +
 + 
 +CONTENT NAME is event name. 
 +</code> 
 + 
 +**registrationFormOpen** 
 +<code> 
 +
 +  action: 'registration_form_open', 
 +  category: registration, 
 +
 +</code> 
 + 
 +====== Events and their data (GTM): ====== 
 + 
 +**gtm-registrationInit** 
 +<code> 
 +
 +  event: 'gtm-registrationInit', 
 +  action: 'registration_init', 
 +  category: 'registration', 
 +
 +</code> 
 + 
 +**gtm-registrationConfirmationKey** 
 +<code> 
 +
 +  event: 'gtm-registrationConfirmationKey', 
 +  action: 'confirmation_key', 
 +  category: 'registration', 
 +
 +</code> 
 + 
 +**gtm-registrationFinished** 
 +<code> 
 +
 +  event: 'gtm-registrationFinished', 
 +  action: 'finished', 
 +  category: 'registration', 
 +  userID: USER_ID 
 +
 + 
 +USER_ID is current user id 
 +</code> 
 + 
 +**gtm-login** 
 +<code> 
 +
 +  event: 'gtm-login', 
 +  action: 'login', 
 +  category: 'authorization', 
 +  userID: USER_ID 
 +
 + 
 +USER_ID is current user id 
 +</code> 
 + 
 +**gtm-logout** 
 +<code> 
 +
 +  event: 'gtm-logout', 
 +  action: 'logout', 
 +  category: 'authorization', 
 +
 +</code> 
 + 
 +**gtm-slipBuy** 
 +<code> 
 +
 +  event: 'gtm-slipBuy', 
 +  action: SLIP_TYPE, 
 +  category: 'slip_buy', 
 +  label: USER_ID, 
 +  eventUUIDS: EVENT_UUIDS, 
 +  amount: AMOUNT, 
 +  walletType: WALLET_TYPE; 
 +
 + 
 +SLIP_TYPE can be: 
 +- 'fastbet' (when user is logged out) 
 +- 'bet' (when user is logged in) 
 + 
 +USER_ID can be: 
 +- user id when the user is logged in 
 +- 'null' when the user is logged out 
 + 
 +EVENT_UUIDS is an array of event uuids, e.g. b78a17bc-17e9-52f8-b8d0-7db8ccdeda9d. 
 +AMOUNT is total betting slip amount. 
 +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',   action: 'click',
   event_category: 'deposit',   event_category: 'deposit',
Line 180: Line 275:
  
 LABEL can either be 'desktop-my-account-menu-deposit-button' or 'mobile-my-account-menu-deposit-button' 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> </code>
  • admin/online-platform-cms/google-events.txt
  • Last modified: 2024/05/09 06:34
  • by evaldas-luksys