How to Install RudderStack on Windows 10
- Open your preferred web browser and navigate to https://rudderstack.com/
- Click the "Get Started for Free" button.
- Fill out the registration form and click "Sign Up".
- After completing the registration process, log in to your RudderStack account.
- Click on the "Add Source" button to add a new source.
- Select "Web" as your source type.
- Choose the specifications for your source and click "Create Source".
- Copy the "Write Key" which will be used later for integrating RudderStack into your application.
- Download and install Node.js from https://nodejs.org/.
- Open a Command Prompt by pressing "Win + X" and selecting "Command Prompt".
- In the Command Prompt, type "npm install -g rudder-cli" to install the RudderStack CLI globally.
- Create a new folder for your project.
- Navigate to the folder in the Command Prompt and type "rudder init" to initialize a new RudderStack project.
- When prompted, enter your RudderStack Write Key.
- Type "npm install rudder-sdk-js" to install the RudderStack JavaScript SDK for your project.
- Edit your application code and add the following code snippet to integrate RudderStack:
<script src="https://cdn.rudderlabs.com/v1/rudder-analytics.min.js"></script>
<script>
const rudderanalytics = window.rudderanalytics;
rudderanalytics.load(WRITE_KEY);
</script>
Replace "WRITE_KEY" with your RudderStack Write Key.
- Save your changes and run your application to start sending data to RudderStack.
Congratulations! You have successfully installed and integrated RudderStack into your Windows 10 application.