This some 2 independent fixes: 'gameanalytics not defined' and missing js-file for wasm version.
Fix 49651e1:
The 'GameAnalytics.js' file was loaded after Defold Engine startup. This caused the 'gameanalytics not defined' error to appear on the first (cold) loading of the game page.
Fix 4cd2db4:
To have the 'GameAnalytics.js' file included not only in the asm.js bundle, but also in the wasm bundle. By default Defold creates a bundle only for the wasm version of HTML5 Appication.
This some 2 independent fixes: 'gameanalytics not defined' and missing js-file for wasm version. Fix 49651e1: The 'GameAnalytics.js' file was loaded after Defold Engine startup. This caused the 'gameanalytics not defined' error to appear on the first (cold) loading of the game page.
Fix 4cd2db4: To have the 'GameAnalytics.js' file included not only in the asm.js bundle, but also in the wasm bundle. By default Defold creates a bundle only for the wasm version of HTML5 Appication.