-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hello,
I've followed the instructions on the Readme.
- Added plugin to
gatsby-config
{
resolve: 'gatsby-plugin-segment-js',
options: {
prodKey: 'KEY_HERE',
},
}
- Then, tracking an event:
window.analytics.track('test');
On development mode, I get Cannot read property 'track' of undefined.
Am I doing something wrong?
I know I can check if window.analytics exists, but the docs imply that this plugin was handling that?
alexfornuto and michaeldaviddev
Metadata
Metadata
Assignees
Labels
No labels