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
admin:online-platform-cms:google-events [2023/12/11 13:07] evaldas-luksysadmin:online-platform-cms:google-events [2024/05/09 06:34] (current) – [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 19: Line 21:
 <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',+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 
 +</code> 
 + 
 +**addBetToBettingSlip** 
 +<code> 
 +{ 
 +  action: 'addBetToBettingSlip', 
 +
 +</code> 
 +**depositSuccess** 
 +<code> 
 +
 +  action: METHOD, 
 +  event_category: 'deposit', 
 +  event_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 deposit amount 
 +</code> 
 + 
 +**withdrawalSuccess** 
 +<code> 
 +
 +  action: METHOD, 
 +  event_category: 'withdrawal', 
 +  event_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> 
 + 
 +**myAccountMenuDepositButtonClick** 
 +<code> 
 +
 +  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> 
 + 
 +**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,   action: SLIP_TYPE,
   category: 'slip_buy',   category: 'slip_buy',
Line 113: Line 213:
 </code> </code>
  
-**addBetToBettingSlip**+**gtm-addBetToBettingSlip**
 <code> <code>
 { {
-  // Data sent to GA +  action: 'gtm-addBetToBettingSlip',
-  action: 'addBetToBettingSlip', +
-   +
-  // Data sent to GTM +
-  action: 'addBetToBettingSlip',+
   gameModuleName: GAME_MODULE_NAME,   gameModuleName: GAME_MODULE_NAME,
   eventUUIDS: EVENT_UUIDS,   eventUUIDS: EVENT_UUIDS,
Line 133: Line 229:
  
 </code> </code>
-**depositSuccess**+ 
 +**gtm-depositSuccess**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-depositSuccess',
-  action: METHOD, +
-  event_category: 'deposit', +
-  event_label: USER_ID, +
-  value: AMOUNT, +
-   +
-  // Data sent to GTM +
-  event: 'depositSuccess',+
   action: METHOD,   action: METHOD,
   category: 'deposit',   category: 'deposit',
   label: USER_ID,   label: USER_ID,
   value: AMOUNT,   value: AMOUNT,
 +  userID: USER_ID,
 +  amount: AMOUNT,
 +  depositsCount: DEPOSIT_COUNT,
 } }
  
Line 153: Line 246:
 USER_ID is current user id USER_ID is current user id
 AMOUNT is user's deposit amount 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> </code>
-**withdrawalSuccess**+ 
 +**gtm-withdrawalSuccess**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-withdrawalSuccess',
-  action: METHOD, +
-  event_category: 'withdrawal', +
-  event_label: USER_ID, +
-  value: AMOUNT, +
-   +
-  // Data sent to GTM +
-  event: 'withdrawalSuccess',+
   action: METHOD,   action: METHOD,
   category: 'withdrawal',   category: 'withdrawal',
Line 176: Line 264:
 </code> </code>
  
-**myAccountMenuDepositButtonClick**+**gtm-myAccountMenuDepositButtonClick**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-myAccountMenuDepositButtonClick',
-  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 194: 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>
 +
 +**gtm-registrationFormOpen**
 +<code>
 +{
 +   event: 'gtm-registrationFormOpen',
 +   action: 'registration_form_open',
 +   category: registration,
 +}
 </code> </code>
  • admin/online-platform-cms/google-events.1702300021.txt.gz
  • Last modified: 2023/12/11 13:07
  • by evaldas-luksys