Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:online-platform-cms:google-events [2023/12/11 13:10] – evaldas-luksys | admin: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/ | ||
+ | * **registrationFormOpen** (//When the registration form opens //) | ||
====== Events and their data (GA): ====== | ====== Events and their data (GA): ====== | ||
Line 55: | Line 57: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: SLIP_TYPE, | action: SLIP_TYPE, | ||
event_category: | event_category: | ||
Line 73: | Line 74: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
- | | ||
- | // Data sent to GTM | ||
- | action: ' | ||
- | gameModuleName: | ||
- | eventUUIDS: EVENT_UUIDS, | ||
- | market: MARKET, | ||
- | selection: SELECTED, | ||
} | } | ||
- | |||
- | GAME_MODULE_NAME represents game module from the APP. For instance, ' | ||
- | EVENT_UUIDS is an array containing event uuids, e.g., ' | ||
- | MARKET is bet market. | ||
- | SELECTED is bet selection. | ||
- | |||
</ | </ | ||
**depositSuccess** | **depositSuccess** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: METHOD, | action: METHOD, | ||
event_category: | event_category: | ||
event_label: | event_label: | ||
- | value: AMOUNT, | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: METHOD, | ||
- | category: ' | ||
- | label: USER_ID, | ||
value: AMOUNT, | value: AMOUNT, | ||
} | } | ||
Line 111: | Line 90: | ||
AMOUNT is user's deposit amount | AMOUNT is user's deposit amount | ||
</ | </ | ||
+ | |||
**withdrawalSuccess** | **withdrawalSuccess** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: METHOD, | action: METHOD, | ||
event_category: | event_category: | ||
event_label: | event_label: | ||
- | value: AMOUNT, | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: METHOD, | ||
- | category: ' | ||
- | label: USER_ID, | ||
value: AMOUNT, | value: AMOUNT, | ||
} | } | ||
Line 136: | Line 108: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | event_label: | ||
- | value: 1, | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
Line 153: | Line 117: | ||
</ | </ | ||
- | ====== Events and their data (GTAG): ====== | + | **viewContent** |
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_label: | ||
+ | } | ||
- | **registrationInit** | + | CONTENT NAME is event name. |
+ | </ | ||
+ | |||
+ | **registrationFormOpen** | ||
< | < | ||
{ | { | ||
- | | + | action: 'registration_form_open', |
- | | + | |
- | | + | } |
- | + | </code> | |
- | // Data sent to GTM | + | |
- | event: ' | + | ====== Events and their data (GTM): ====== |
+ | |||
+ | **gtm-registrationInit** | ||
+ | < | ||
+ | { | ||
+ | event: 'gtm-registrationInit', | ||
action: ' | action: ' | ||
category: ' | category: ' | ||
Line 169: | Line 146: | ||
</ | </ | ||
- | **registrationConfirmationKey** | + | **gtm-registrationConfirmationKey** |
< | < | ||
{ | { | ||
- | | + | event: 'gtm-registrationConfirmationKey', |
- | action: ' | + | |
- | event_category: | + | |
- | + | ||
- | // Data sent to GTM | + | |
- | | + | |
action: ' | action: ' | ||
category: ' | category: ' | ||
Line 183: | Line 155: | ||
</ | </ | ||
- | **registrationFinished** | + | **gtm-registrationFinished** |
< | < | ||
{ | { | ||
- | | + | event: 'gtm-registrationFinished', |
- | action: ' | + | |
- | event_category: | + | |
- | + | ||
- | // Data sent to GTM | + | |
- | | + | |
action: ' | action: ' | ||
category: ' | category: ' | ||
+ | userID: USER_ID | ||
} | } | ||
+ | |||
+ | USER_ID is current user id | ||
</ | </ | ||
- | **login** | + | **gtm-login** |
< | < | ||
{ | { | ||
- | event: ' | + | event: 'gtm-login', |
action: ' | action: ' | ||
category: ' | category: ' | ||
+ | userID: USER_ID | ||
} | } | ||
+ | |||
+ | USER_ID is current user id | ||
</ | </ | ||
- | **logout** | + | **gtm-logout** |
< | < | ||
{ | { | ||
- | event: ' | + | event: 'gtm-logout', |
action: ' | action: ' | ||
category: ' | category: ' | ||
Line 215: | Line 188: | ||
</ | </ | ||
- | **slipBuy** | + | **gtm-slipBuy** |
< | < | ||
{ | { | ||
- | event: ' | + | event: 'gtm-slipBuy', |
action: SLIP_TYPE, | action: SLIP_TYPE, | ||
category: ' | category: ' | ||
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 - ' | WALLET_TYPE is wallet type used when purchasing a slip - ' | ||
+ | </ | ||
+ | |||
+ | **gtm-addBetToBettingSlip** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | gameModuleName: | ||
+ | eventUUIDS: EVENT_UUIDS, | ||
+ | market: MARKET, | ||
+ | selection: SELECTED, | ||
+ | } | ||
+ | |||
+ | GAME_MODULE_NAME represents game module from the APP. For instance, ' | ||
+ | EVENT_UUIDS is an array containing event uuids, e.g., ' | ||
+ | MARKET is bet market. | ||
+ | SELECTED is bet selection. | ||
+ | |||
+ | </ | ||
+ | |||
+ | **gtm-depositSuccess** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: METHOD, | ||
+ | category: ' | ||
+ | label: USER_ID, | ||
+ | value: AMOUNT, | ||
+ | userID: USER_ID, | ||
+ | amount: AMOUNT, | ||
+ | depositsCount: | ||
+ | } | ||
+ | |||
+ | METHOD is current users selected payment method, e.g. ' | ||
+ | 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, ...) | ||
+ | </ | ||
+ | |||
+ | **gtm-withdrawalSuccess** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: METHOD, | ||
+ | category: ' | ||
+ | label: USER_ID, | ||
+ | value: AMOUNT, | ||
+ | } | ||
+ | |||
+ | METHOD is current users selected payment method, e.g. ' | ||
+ | USER_ID is current user id | ||
+ | AMOUNT is user's withdrawals amount | ||
+ | </ | ||
+ | |||
+ | **gtm-myAccountMenuDepositButtonClick** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | event_category: | ||
+ | event_label: | ||
+ | value: 1, | ||
+ | } | ||
+ | |||
+ | LABEL can either be ' | ||
+ | </ | ||
+ | |||
+ | **gtm-viewContent** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | CONTENT NAME is event name. | ||
+ | CONTENT ID is event uuid. | ||
+ | </ | ||
+ | |||
+ | **gtm-registrationFormOpen** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
</ | </ |