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-events [2022/11/03 17:03] – ↷ Page name changed from admin:online-platform-cms:google-analytics-events to admin:online-platform-cms:google-events evaldas-luksys | admin:online-platform-cms:google-events [2023/12/11 14:17] – evaldas-luksys | ||
---|---|---|---|
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 | + | </ |
+ | |||
+ | **registrationConfirmationKey** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | event_category: | ||
+ | } | ||
+ | </code> | ||
+ | **registrationFinished** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_category: | ||
+ | } | ||
+ | </code> | ||
+ | **login** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_category: | ||
+ | } | ||
+ | </ | ||
+ | **logout** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_category: | ||
+ | } | ||
+ | </ | ||
+ | **slipBuy** | ||
+ | < | ||
+ | { | ||
+ | action: SLIP_TYPE, | ||
+ | event_category: | ||
+ | event_label: | ||
+ | } | ||
+ | |||
+ | SLIP_TYPE can be: | ||
+ | - ' | ||
+ | - ' | ||
+ | |||
+ | USER_ID can be: | ||
+ | - user id when the user is logged in | ||
+ | - ' | ||
+ | </ | ||
+ | |||
+ | **addBetToBettingSlip** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | } | ||
+ | </ | ||
+ | **depositSuccess** | ||
+ | < | ||
+ | { | ||
+ | action: METHOD, | ||
+ | event_category: | ||
+ | event_label: | ||
+ | value: AMOUNT, | ||
+ | } | ||
+ | |||
+ | METHOD is current users selected payment method, e.g. ' | ||
+ | USER_ID is current user id | ||
+ | AMOUNT is user's deposit amount | ||
+ | </ | ||
+ | |||
+ | **withdrawalSuccess** | ||
+ | < | ||
+ | { | ||
+ | action: METHOD, | ||
+ | event_category: | ||
+ | event_label: | ||
+ | value: AMOUNT, | ||
+ | } | ||
+ | |||
+ | METHOD is current users selected payment method, e.g. ' | ||
+ | USER_ID is current user id | ||
+ | AMOUNT is user's withdrawals amount | ||
+ | </ | ||
+ | |||
+ | **myAccountMenuDepositButtonClick** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_category: | ||
+ | event_label: | ||
+ | value: 1, | ||
+ | } | ||
+ | |||
+ | LABEL can either be ' | ||
+ | </ | ||
+ | |||
+ | **viewContent** | ||
+ | < | ||
+ | { | ||
+ | action: ' | ||
+ | event_label: | ||
+ | } | ||
+ | |||
+ | CONTENT NAME is event name. | ||
+ | </ | ||
+ | |||
+ | ====== Events and their data (GTM): ====== | ||
+ | |||
+ | **registrationInit** | ||
+ | < | ||
+ | { | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
Line 33: | Line 140: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
Line 43: | Line 145: | ||
} | } | ||
</ | </ | ||
+ | |||
**registrationFinished** | **registrationFinished** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
category: ' | category: ' | ||
+ | userID: USER_ID | ||
} | } | ||
+ | |||
+ | USER_ID is current user id | ||
</ | </ | ||
+ | |||
**login** | **login** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
category: ' | category: ' | ||
+ | userID: USER_ID | ||
} | } | ||
+ | |||
+ | USER_ID is current user id | ||
</ | </ | ||
+ | |||
**logout** | **logout** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
Line 82: | Line 178: | ||
} | } | ||
</ | </ | ||
+ | |||
**slipBuy** | **slipBuy** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: SLIP_TYPE, | ||
- | event_category: | ||
- | event_label: | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: SLIP_TYPE, | action: SLIP_TYPE, | ||
category: ' | category: ' | ||
label: USER_ID, | label: USER_ID, | ||
+ | eventUUIDS: EVENT_UUIDS, | ||
+ | amount: AMOUNT, | ||
+ | walletType: WALLET_TYPE; | ||
} | } | ||
Line 104: | Line 198: | ||
- user id when the user is logged in | - 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 - ' | ||
</ | </ | ||
Line 109: | Line 207: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
action: ' | action: ' | ||
- | | + | gameModuleName: GAME_MODULE_NAME, |
- | // Data sent to GTM | + | eventUUIDS: EVENT_UUIDS, |
- | | + | market: MARKET, |
- | eventUUIDS, | + | selection: SELECTED, |
- | market, | + | |
- | selection, | + | |
} | } | ||
+ | |||
+ | 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, | ||
- | event_category: | ||
- | event_label: | ||
- | value: AMOUNT, | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: METHOD, | action: METHOD, | ||
Line 134: | Line 229: | ||
label: USER_ID, | label: USER_ID, | ||
value: AMOUNT, | value: AMOUNT, | ||
+ | userID: USER_ID, | ||
+ | amount: AMOUNT, | ||
+ | depositsCount: | ||
} | } | ||
Line 139: | Line 237: | ||
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, ...) | ||
</ | </ | ||
+ | |||
**withdrawalSuccess** | **withdrawalSuccess** | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: METHOD, | ||
- | event_category: | ||
- | event_label: | ||
- | value: AMOUNT, | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: METHOD, | action: METHOD, | ||
Line 165: | Line 258: | ||
< | < | ||
{ | { | ||
- | // Data sent to GA | ||
- | action: ' | ||
- | event_category: | ||
- | event_label: | ||
- | value: 1, | ||
- | | ||
- | // Data sent to GTM | ||
event: ' | event: ' | ||
action: ' | action: ' | ||
Line 180: | Line 266: | ||
LABEL can either be ' | LABEL can either be ' | ||
+ | </ | ||
+ | |||
+ | **viewContent** | ||
+ | < | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | CONTENT NAME is event name. | ||
+ | CONTENT ID is event uuid. | ||
</ | </ |