Hello, locally Google Analytics works, but when I put on AWS, I have an error
Here is the code in my config.js
user: { metaData: { enabled: true, lastUsedAt: true, sessionsCount: true, createdAt: true, requestHistorySize: 4, devices: true, }, }, analytics: { // Configuration for generic tracking plugin GoogleAnalytics: { trackingId: ‘UA-18902XXX’, trackDirectives: true, // Optional enableAutomaticEvents: true, // Optional - set to false to disable trackEndReasons: false, // Optional - when set to true the custom metrics 1-6 are used to track endReasons sessionTimeoutInMinutes: 5, // Optional - default is 5 skipUnverifiedUser: true, // Optional - default is true }, // Configurations for platform-specific plugins GoogleAnalyticsAlexa: { trackingId: ‘UA-18902XXX’ }, },
Error log
{ "errorType": "TypeError", "errorMessage": "Cannot read property 'lastUsedAt' of undefined", "trace": [ "TypeError: Cannot read property 'lastUsedAt' of undefined", " at GoogleAnalytics.saveStartStateAndLastUsed (/var/task/node_modules/jovo-analytics-googleanalytics/dist/src/GoogleAnalytics.js:41:102)", " at Middleware.run (/var/task/node_modules/jovo-core/dist/src/core/Middleware.js:76:30)", " at Middleware.run (/var/task/node_modules/jovo-core/dist/src/core/Middleware.js:54:69)", " at App.handle (/var/task/node_modules/jovo-core/dist/src/core/BaseApp.js:203:46)", " at async App.handle (/var/task/node_modules/jovo-framework/dist/src/App.js:265:9)", " at async Runtime.exports.handler (/var/task/index.js:26:3)" ] }
Thanks for your help