🗓️ Live Webinar August 17: How Allbirds solves identity resolution in the warehouse with dbt Labs, Snowflake, and RudderStack

Register Now

JavaScript SDK integration with RudderStack

Get more out of RudderStack's JavaScript SDK

The RudderStack JavaScript SDK also enables you to filter and load your preferred destinations, and disable sending your events to other destinations. This way, you have full control over which third-party tools get access to your data. For example, you can send a specific set of events only to Google Analytics and Intercom, and disable sending those events to other destinations. The JavaScript SDK also enables sending a page view containing markers that indicate whether a page is ad-blocked or not. This way, you can analyze the data to find what percent of your site's page views are affected by ad-blockers. For more information, visit RudderStack's JavaScript SDK on GitHub.


What you can do with JavaScript SDK Source

Track, capture, and send your customer event data from your website to a wide range of common, popular marketing, sales, and product tools as well as a variety of cloud data warehouses.

Automatically capture certain event-specific and user-specific information which highlights a customer’s unique behavioral traits.

Send event payloads to multiple destinations with a single JavaScript SDK, reducing the negative impact to website performance that comes from using multiple SDKs.

Determine what percentage of your web pages are affected by ad-blockers.

How to set up JavaScript SDK Source Integration

It's quite simple! Refer to our step-by-step guide and start using the JavaScript SDK in no time!



How can we help you?

What does the RudderStack JavaScript SDK do?

The RudderStack JavaScript API makes it easy for you to send your customer event data from your website to any destination in no time. After integrating this SDK, you will also be able to connect your website to multiple destinations such as Google Analytics, Hotjar, Amplitude, and more, to send your event data in real-time.

How do I load analytics.js correctly?

To load analytics.js correctly, copy either the minified or non-minified version of the code given in our documentation. To test if the library is loaded correctly, open the JavaScript console on your browser and run this command: rudderanalytics. If the command returns an object, the library is loaded successfully. If not, please verify if you have set up rudderanalytics.js correctly.

What are the different JavaScript SDK APIs?

The different key methods used in the JavaScript SDK APIs are load(), identify(), page(), track(), alias(). While the load() method is used to load rudder-analytics.js on your website, the other API calls are used to get information related to the user and their actions on the website.

Customer Data Platform for Developers | RudderStack
HIPPA Compliant