Solutions to some commonly faced issues while using the RudderStack JavaScript SDK.
2 minute read
This guide contains the answers to some commonly-asked questions about setting up, using and troubleshooting the JavaScript SDK.
Should I disable adblockers on my browser?
Yes, it is important to ensure that no ad blockers are running on your browser, as they restrict the JavaScript SDK script from executing and storing user information in the browser.
Can I load multiple instances of RudderStack JavaScript SDK?
No, it is not possible to load multiple instances of the JavaScript SDK, as it is bound to exceed the maximum stack call size and give you an error.
How can I verify if the SDK is sending data to the specified destinations?
To verify if the SDK is transmitting events to the specified destinations successfully, check the Network tab of the developer tools in your web browser. The following demonstration is for Google Chrome:
If you cannot see any outbound requests like track, page etc. to the data plane URL, verify if you have installed the JavaScript SDK correctly. Also, check if any adblockers are enabled on your browser.
When using the JavaScript SDK, you may run into the following warning:
EventManager:: The "event" property defined under "traits" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (id,anonymous_id,user_id,sent_at,timestamp,received_at,original_timestamp,event,event_text,channel,context_ip,context_request_ip,context_passed_ip,group_id,previous_id).
This is because one or more keys in your traits, properties, or context.traits object have the same value as a reserved keyword.
RudderStack reserves the following keywords as keys for a standard event payload, and you should avoid using these while naming your event traits and properties:
How can I differentiate between events sent from a mobile device or a website?
The events tracked via JavaScript SDK contain context.userAgent that contain information on the user agent of the device. See Load JavaScript SDK for more information.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.