@everymatrix/casino-collections-providers 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-collections-providers",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -110,6 +110,14 @@
110
110
 
111
111
  const openGame = (gameId:any, launchUrl:URL, gameName:string):void => {
112
112
  window.postMessage({ type: 'OpenCollectionsProvidersGame', gameId, launchUrl, gameName}, window.location.href);
113
+
114
+ //Analytics event
115
+ if(typeof gtag == 'function'){
116
+ gtag('event', 'OpenGame', {
117
+ 'context': 'CollectionsProviders',
118
+ 'gameName': `${gameName}`
119
+ });
120
+ }
113
121
  };
114
122
 
115
123
  const openCategory = (categoryId:any):void => {