-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track() is not firing any network calls when initializing with createInstance() #649
Comments
This code works for me if I changed the initialization of the library from const instance = amplitude.createInstance();
instance.add(pageViewTrackingEnrichment());
instance.init(decryptedAmplitudeKey, {
identityStorage: "localStorage",
defaultTracking: true,
loggerProvider: {
enable: () => true,
log: (message) => console.log(message),
debug: (message) => console.debug(message),
warn: (message) => console.warn(message),
error: (message) => console.error(message),
disable: () => false,
},
}); to amplitude.add(pageViewTrackingEnrichment());
amplitude.init(decryptedAmplitudeKey, {
identityStorage: "localStorage",
defaultTracking: true,
loggerProvider: {
enable: () => true,
log: (message) => console.log(message),
debug: (message) => console.debug(message),
warn: (message) => console.warn(message),
error: (message) => console.error(message),
disable: () => false,
},
}); The track() would work normally. I think there can be a potential bug in the |
Expected Behavior
In my Vue application, I installed a plugin to modify the event properties of the default
[Amplitude] Page Viewed
event.Here is the code for the plugin:
This is how I installed the plugin:
I expected that when I used the track(), it would send an analytics event for me. I also expected the default event
[Amplitude] Page Viewed
would also have a new event propertyCurrent Behavior
Right now the default event
[Amplitude] Page Viewed
would have the new property. This is what I expected. However, when I use the track(), it did not send any events or print out any errors. The firstconsole.log
would print out the information of the tracking event. But neither theconsole.error
in the catch block or theconsole.log
in the then block would print out any information of the tracking event. It also does not give me any network calls in my Network tab of my Chrome browser dev toolPossible Solution
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: