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
Hi Team,
I'm using electron application to send google analytics data. Custom dimention report count not match event data.
Please help me to resolve this issue.
Could you please confirm, setting presistent parameters is reset or it will append if pass new dimension value.
This issue happen due to not reset custom mension and mapping wrong data in google anaytics?
// Retrieve the userid value, and if it's not there, assign it a new uuid.
const userId = nodeStorage.getItem('userid') || uuidv4();
// (re)save the userid, so it persists for the next app session.
nodeStorage.setItem('userid', userId);
//Initialize universal-analytics
const usr = ua(env.gaAccountId, userId);
Hi Team,
I'm using electron application to send google analytics data. Custom dimention report count not match event data.
Please help me to resolve this issue.
Could you please confirm, setting presistent parameters is reset or it will append if pass new dimension value.
This issue happen due to not reset custom mension and mapping wrong data in google anaytics?
Code:
//** Universal Analytics - start **/
const ua = require('universal-analytics');
const { v4: uuidv4 } = require('uuid');
const { JSONStorage } = require('node-localstorage');
const nodeStorage = new JSONStorage(app.getPath('userData'));
function trackEvent(category, action, label, value, dimensionIndex, dimensionValue) {
//setting persistent parameters
if (dimensionIndex) {
usr.set(dimensionIndex, dimensionValue);
}
usr
.event({
ec: category,
ea: action,
el: label,
ev: value,
})
.send();
}
The text was updated successfully, but these errors were encountered: