@everymatrix/player-account-controller 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-controller",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/player-account-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -140,6 +140,24 @@
140
140
  getUserProfileInfo();
141
141
  getUserProfileConsent();
142
142
  }
143
+
144
+ if(pagePath == '/deposit'){
145
+ //Analytics event
146
+ if(typeof gtag == 'function'){
147
+ gtag('event', 'GoToDeposit', {
148
+ 'context': 'PlayerAccountController'
149
+ });
150
+ }
151
+ }
152
+
153
+ if(pagePath == '/withdrawal'){
154
+ //Analytics event
155
+ if(typeof gtag == 'function'){
156
+ gtag('event', 'GoToWithdrawal', {
157
+ 'context': 'PlayerAccountController'
158
+ });
159
+ }
160
+ }
143
161
  break;
144
162
 
145
163
  case 'SetActivePage':