Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
admin:online-platform-cms:google-analytics-events [2022/11/03 17:02] – evaldas-luksys | admin:online-platform-cms:google-events [2024/01/15 10:09] – [Events and their data (GTM):] evaldas-luksys | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Google Analytics events ====== | + | ====== Google Analytics/Google Tag Manager |
Currently website sends these events to GA/GTM platforms: | Currently website sends these events to GA/GTM platforms: | ||
Line 9: | Line 9: | ||
* **logout** (//when user logs out//) | * **logout** (//when user logs out//) | ||
* **slipBuy** (//When user buys slip//) | * **slipBuy** (//When user buys slip//) | ||
- | * **addBetToBettingSlip** (//When successfully | + | * **addBetToBettingSlip** (//After adding bet to betting slip //) |
* **depositSuccess** (//When user makes a successful deposit//) | * **depositSuccess** (//When user makes a successful deposit//) | ||
* **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/ | ||
- | ====== Events and their data: ====== | + | ====== Events and their data (GA): ====== |
**registrationInit** | **registrationInit** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: ' | ||
- | category: ' | ||
} | } | ||
</ | </ | ||
Line 33: | Line 28: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: ' | ||
- | category: ' | ||
} | } | ||
</ | </ | ||
Line 46: | Line 35: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: ' | ||
- | category: ' | ||
} | } | ||
</ | </ | ||
Line 59: | Line 42: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: ' | ||
- | category: ' | ||
} | } | ||
</ | </ | ||
Line 72: | Line 49: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: ' | ||
- | category: ' | ||
} | } | ||
</ | </ | ||
Line 85: | Line 56: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: SLIP_TYPE, | action: SLIP_TYPE, | ||
event_category: | event_category: | ||
event_label: | event_label: | ||
- | | ||
- | // Data sent to GTM | ||
- | event: ' | ||
- | action: SLIP_TYPE, | ||
- | category: ' | ||
- | label: USER_ID, | ||
} | } | ||
Line 109: | Line 73: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
- | | ||
- | // Data sent to GTM | ||
- | gameModuleName, | ||
- | eventUUIDS, | ||
- | market, | ||
- | selection, | ||
} | } | ||
</ | </ | ||
Line 122: | Line 79: | ||
< | < | ||
{ | { | ||
- | // 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 140: | Line 89: | ||
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 165: | Line 107: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
event_category: | event_category: | ||
event_label: | event_label: | ||
value: 1, | value: 1, | ||
- | | + | } |
- | // Data sent to GTM | + | |
+ | LABEL can either be ' | ||
+ | </ | ||
+ | |||
+ | **viewContent** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | event_label: | ||
+ | } | ||
+ | |||
+ | CONTENT NAME is event name. | ||
+ | </code> | ||
+ | |||
+ | ====== Events and their data (GTM): ====== | ||
+ | |||
+ | **gtm-registrationInit** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | category: ' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **gtm-registrationConfirmationKey** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | category: ' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **gtm-registrationFinished** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | category: ' | ||
+ | userID: USER_ID | ||
+ | } | ||
+ | |||
+ | USER_ID is current user id | ||
+ | </ | ||
+ | |||
+ | **gtm-login** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | category: ' | ||
+ | userID: USER_ID | ||
+ | } | ||
+ | |||
+ | USER_ID is current user id | ||
+ | </ | ||
+ | |||
+ | **gtm-logout** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: ' | ||
+ | category: ' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **gtm-slipBuy** | ||
+ | < | ||
+ | { | ||
+ | event: ' | ||
+ | action: SLIP_TYPE, | ||
+ | category: ' | ||
+ | label: USER_ID, | ||
+ | eventUUIDS: EVENT_UUIDS, | ||
+ | amount: AMOUNT, | ||
+ | walletType: WALLET_TYPE; | ||
+ | } | ||
+ | |||
+ | SLIP_TYPE can be: | ||
+ | - ' | ||
+ | - ' | ||
+ | |||
+ | USER_ID can be: | ||
+ | - user id when the user is logged in | ||
+ | - ' | ||
+ | |||
+ | 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 - ' | ||
+ | </ | ||
+ | |||
+ | **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: ' | event: ' | ||
action: ' | action: ' | ||
Line 180: | Line 266: | ||
LABEL can either be ' | LABEL can either be ' | ||
+ | </ | ||
+ | |||
+ | **gtm-viewContent** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | CONTENT NAME is event name. | ||
+ | CONTENT ID is event uuid. | ||
</ | </ |