DavidWells / DavidWells/analytics
Problem using two separated identify calls
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the identify calls for the Google Analytics and Pendo plugins, focusing on how the traits object is written to and read from local storage. Reproduce the sequence described in the issue, including a page refresh, and verify that each plugin receives only the traits intended for it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- analytics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100