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:12] 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 72: Line 74:
 <code> <code>
 { {
-  // Data sent to GA 
   action: 'addBetToBettingSlip',   action: 'addBetToBettingSlip',
 } }
Line 89: 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 114: 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 131: 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> 
 +
 +  action: 'registration_form_open', 
 +  category: registration, 
 +
 +</code> 
 + 
 +====== Events and their data (GTM): ====== 
 + 
 +**gtm-registrationInit**
 <code> <code>
 { {
-  // Data sent to GA +  event: 'gtm-registrationInit',
-  action: 'registration_init', +
-  event_category: 'registration', +
-   +
-  // Data sent to GTM +
-  event: 'registrationInit',+
   action: 'registration_init',   action: 'registration_init',
   category: 'registration',   category: 'registration',
Line 147: 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 161: 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 193: 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 218: 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 239: Line 230:
 </code> </code>
  
-</code> +**gtm-depositSuccess**
-**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 260: 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>
 { {
-  event: 'withdrawalSuccess',+  event: 'gtm-withdrawalSuccess',
   action: METHOD,   action: METHOD,
   category: 'withdrawal',   category: 'withdrawal',
Line 277: Line 264:
 </code> </code>
  
-**myAccountMenuDepositButtonClick**+**gtm-myAccountMenuDepositButtonClick**
 <code> <code>
 { {
-  event: 'myAccountMenuDepositButtonClick',+  event: 'gtm-myAccountMenuDepositButtonClick',
   action: 'click',   action: 'click',
   event_category: 'deposit',   event_category: 'deposit',
Line 288: 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.txt
  • Last modified: 2024/05/09 06:34
  • by evaldas-luksys