See Sprig in action! Join a group demo - every Tuesday @ 11:00 AM PT. Register Here.
navy logo
Products
nav illo
Surveys
Capture user insights right in your product
nav illo
Replays
Trigger and record targeted session clips
nav illo
Prototype Tests
Run browser-based testing before you build
nav illo
AI Analysis
Turn user feedback into  product learnings
briefcase icon
Enterprise
integrations
Integrations
megaphone icon
Changelog
Use Cases
nav illo
Continuously optimize
Analyze your users’ experience through core flows
nav illo
Solve pain points
Uncover emerging trends in your users’ behavior
nav illo
Improve conversion
Understand why and how users are dropping off
nav illo
Save time and resources
Know which new features are worth the investment
group demo
Group Demo: How to Collect User Insights with Sprig
Register Now
arrow icon
Templates
templates
Template Gallery
Discover how our team and community use Sprig templates to inform product development.
View All
arrow icon
lenny template
Develop Product Sense to Build Great Products
lenny headshot
Lenny Rachitsky, Lenny’s Newsletter
View Template
arrow icon
lucy template
Identify Painpoints and Resolve User Issues
lucy headshot
Lucy Aziz, Coinbase
View Template
arrow icon
ben template
Gauge the Impact of User Motivation on Activation
ben headshot
Ben Williams, PLGeek
View Template
arrow icon
Customers
users icon
Meet our Customers
Learn how top companies leverage Sprig user insights to boost conversion, reduce churn, improve onboarding, and more.
View All
arrow icon
square nav photosquare left logo
Square uncovered 100+ actionable insights within the first 6 months
Read Now
arrow icon
coinbase nav photocoinbase left logo
Coinbase used hyper-targeted in-product surveys to identify user pain points
Read Now
arrow icon
classpass nav photoclasspass left logo
ClassPass improved usability and retention by optimizing core user journeys
Read Now
arrow icon
Resources
nav illo
Blog
Get expert advice on capturing user insights
nav illo
Events & Webinars
Learn from past Sprig events & register for upcoming ones
nav illo
Help Center
Explore our knowledge hub to get started in Sprig
nav illo
Video Tutorials
Get a crash course in Sprig with our guided video series
opendoor webinar
Panel + Demo: Supercharge Your Product Development
Watch now
arrow icon
Pricing
Sign InGet Started Free
navy logo
hamburger menu iconclose icon
Products
caret icon
SurveysReplaysPrototype TestsAI AnalysisEnterpriseIntegrationsChangelog
Use Cases
caret icon
Continuously optimize your product & websiteSurface and solve pain pointsImprove conversion ratesSave engineering time and resources
Templates
Customers
Resources
caret icon
BlogEvents & WebinarsHelp CenterVideo Tutorials
Pricing
Sign InGet Started Free
VIDEO TUTORIAL

How to Install Sprig with Javascript

Welcome to our guide to installing Sprig with the Sprig SDK.

Sprig customers have access to in-product studies, which allow you to target studies at specific users directly in your product. Starter plan customers have access to web in-product studies while Enterprise customers have access to both mobile and web in-product studies. In-product studies do require installation, and there are a few ways you can do so, including our native Javascript SDK.

Let’s walk through the installation method for Sprig via our Native Javascript SDK by navigating to the Integrations page in Sprig and selecting installation.

You can install Sprig with an HTML code snippet, which automatically ensures you have the latest version of our SDKs. In addition, you can install Sprig with NPM or YARN.

To install via HTML, add the following JavaScript snippet to your webpage to complete a Sprig JavaScript SDK installation. Add the snippet to every page on your website where you want Sprig to track your users. You can paste the snippet anywhere on the page, but preferably at the bottom of the document, before the </body> tag.

To install via NPM/Yarn, use the following shell command to install the Sprig SDK through NPM or Yarn as part of your web application. Sprig will be bundled with the rest of your front-end application and be immediately accessible on page load.

Keep in mind that with NPM and Yarn, you have to update the Sprig SDK manually to receive the latest functionality. We recommend updating the package frequently for improved functionality and bug fixes.

And there you have it! You’ve officially installed Sprig and are ready to launch targeted in-product studies.

Unlock your product’s full potential

Get Started Free
white sprig logo
Products
Surveys
Replays
Prototype Tests
AI Analysis
Integrations
Use Cases
Continuous Product Discovery
Improve Conversion
Identify Product Issues
Save Engineering Time
Resources
Blog
Events & Webinars
Customers
Help Center
Video Tutorials
Templates
Pricing
Company
About Us
Careers
Terms of Service
Privacy Policy
Data Processing Addendum
Security Standards
Status
Compare
vs Hotjar
vs Fullstory
vs Pendo
vs Qualtrics
Copyright 2023 Sprig, All Rights Reserved
linedkin logotwitter logo