@everymatrix/casino-tournaments-thumbnail-controller 1.0.2 → 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/casino-tournaments-thumbnail-controller",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/casino-tournaments-thumbnail-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -116,6 +116,13 @@
116
116
  const loginAction = () => {
117
117
  if (loginevent) {
118
118
  window.postMessage({ type: loginevent, transition: 'Login' }, window.location.href);
119
+
120
+ //Analytics event
121
+ if(typeof gtag == 'function'){
122
+ gtag('event', 'OpenLoginModal', {
123
+ 'context': 'TournamentsThumbnailController'
124
+ });
125
+ }
119
126
  }
120
127
 
121
128
  if (loginurl) {
@@ -126,6 +133,13 @@
126
133
  const registerAction = () => {
127
134
  if (registerevent) {
128
135
  window.postMessage({ type: registerevent, transition: 'Register' }, window.location.href);
136
+
137
+ //Analytics event
138
+ if(typeof gtag == 'function'){
139
+ gtag('event', 'OpenRegisterModal', {
140
+ 'context': 'TournamentsThumbnailController'
141
+ });
142
+ }
129
143
  }
130
144
 
131
145
  if (registerurl) {
package/yarn-error.log CHANGED
@@ -29,7 +29,7 @@ Trace:
29
29
  npm manifest:
30
30
  {
31
31
  "name": "@everymatrix/casino-tournaments-thumbnail-controller",
32
- "version": "1.0.2",
32
+ "version": "1.0.4",
33
33
  "main": "index.js",
34
34
  "svelte": "src/index.ts",
35
35
  "scripts": {