analytics
analytics copied to clipboard
Problem using two separated identify calls
I have two plugins installed:
- Google Analytics
- Pendo (created by me)
I need to have two different calls to the identify method, one for google analytics and one for Pendo.
I make the first call using the following logic:
plugins: {
all: false,
"google-analytics": true
}
In the second call I'm using the following logic:
plugins: {
all: false,
pendo: true
}
Error:
It seems that Analytics stores the traits object in the local storage, so when I make the identify call for Pendo, it saves the treats in the local storage, if I refresh the page, the identify call for google analytics will send the Pendo treats to Google Analytics.
Yeah this is how the library works right now.
I think we'd need an option to identify to not persist traits like:
analytics.identify('xyz-123', {}, {
plugins: {
all: false,
pendo: true
},
+ persist: false
})
Will need to think about this one on how to implement