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
initializeIterableSdk method works fine but sendIterableAnalytics fails with error 401 "No API key found on request". It says that initialize and track are in different scopes.
The way to fix it is import from correct place:
import{initialize,track}from'@iterable/web-sdk'
The text was updated successfully, but these errors were encountered:
As mentioned in docs https://github.com/Iterable/iterable-web-sdk#track
importing track method should be:
import { track } from '@iterable/web-sdk/dist/events';
so I implemented 2 custom methods, one for initialize and second for sending analytics (call them in separate components):
initializeIterableSdk
method works fine butsendIterableAnalytics
fails with error 401 "No API key found on request". It says that initialize and track are in different scopes.The way to fix it is import from correct place:
The text was updated successfully, but these errors were encountered: