Quick Start - Web

Get UXCam running on your website in 5 minutes

Web Quick Start

Get session recording working on your website in under 5 minutes.

Prerequisites

Note

Works with React, Angular, Vue, Next.js, and any HTML/JS site. Flutter Web is not currently supported.


Option 1: HTML Code Snippet (Recommended)

Add this script tag to your HTML <head>:

<script type="text/javascript">
(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//websdk.uxcam.com/uxcam.min.js","uxcam"));

uxcam("newTracker", "uxcamTracker", {
  appKey: "YOUR_APP_KEY"
});
</script>

Option 2: Google Tag Manager

  1. Create a new Custom HTML tag
  2. Paste the code snippet above
  3. Set trigger to All Pages
  4. Publish your container

See Google Tag Manager setup for detailed instructions.


Option 3: npm Package

npm install @uxcam/web-sdk
import uxcam from '@uxcam/web-sdk';

uxcam("newTracker", "uxcamTracker", {
  appKey: "YOUR_APP_KEY"
});

Verify It Works

  1. Load your website
  2. Navigate through a few pages
  3. Check your UXCam Dashboard - your session should appear within 30 seconds

Tip

Open browser DevTools Network tab and filter by "uxcam" to see SDK requests.


What's Captured Automatically?

  • Page views and navigation
  • Clicks, scrolls, and user interactions
  • Password and email fields are auto-occluded

Next Steps

You're recording sessions! Now customize your integration:


Content Security Policy

If your site uses CSP, you'll need to allow UXCam resources. See CSP configuration.


What's Next? ...