You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Add this code to a new file, analytics.js
// REMEMBER TO INSERT THE CORRECT PRODUCT KEY BELOW !!
(function(g) {
var productId = "YOUR-PRODUCT-KEY-HERE";
var version = "1.0"; // Your app version here
I forgot to change the version on subsequent releases, as I think most people will, and no one wants to maintain this. Can the plugin be smart enough to instead read the version number from the app package itself? There's a Cordova plugin that does this, so I would think it's possible.
Thanks.
The text was updated successfully, but these errors were encountered:
The script that is provided for Analytics use in Cordova apps requires you to hardcode a version number.
I forgot to change the version on subsequent releases, as I think most people will, and no one wants to maintain this. Can the plugin be smart enough to instead read the version number from the app package itself? There's a Cordova plugin that does this, so I would think it's possible.
Thanks.
The text was updated successfully, but these errors were encountered: