Everything you need to get started with CoSurf
Getting CoSurf up and running on your website is super simple. Just add one script tag to your site.
First, grab your unique organization key from the Installation page in your dashboard.
Copy and paste this code snippet right before your closing </body> tag:
<!-- CoSurf Co-browsing -->
<script>
window.CoSurfConfig = { organizationKey: 'YOUR_KEY_HERE' };
</script>
<script src="https://cdn.co-surf.com/js/cosurf-client.js" async></script>
YOUR_KEY_HERE with your actual organization key from the dashboard.
Open your website and check the browser console. You should see a message saying "CoSurf initialized".
Once installed, here's how to start your first co-browsing session:
You can customize CoSurf's behavior with additional configuration options:
<script>
window.CoSurfConfig = {
organizationKey: 'YOUR_KEY_HERE',
apiEndpoint: 'https://your-domain.com', // Optional: Custom API endpoint
enableRecording: true, // Optional: Enable session recording
autoConnect: true, // Optional: Auto-connect on session link
customStyles: { // Optional: Custom styling
primaryColor: '#4f46e5'
}
};
</script>
There are two ways to create a co-browsing session:
You can also create sessions using our JavaScript API (see API section below).
During a session, you can use annotation tools to guide your customer:
All sessions can be automatically recorded for later playback:
For advanced use cases, CoSurf provides a JavaScript API:
// Create a session programmatically
CoSurf.createSession({
customerName: 'John Doe',
metadata: { ticketId: '12345' }
}).then(session => {
console.log('Session created:', session.id);
console.log('Share this link:', session.url);
});
// Listen for session events
CoSurf.on('session:started', (session) => {
console.log('Session started!', session);
});
CoSurf.on('session:ended', (session) => {
console.log('Session ended', session);
});
If the CoSurf script isn't loading:
</body> tagIf your customer can't join the session:
Nope! CoSurf works entirely in the browser. No downloads, no plugins, no extensions.
CoSurf works on all modern browsers: Chrome, Firefox, Safari, and Edge. Mobile browsers are supported too!
Absolutely. All sessions are encrypted end-to-end with bank-grade encryption. Sensitive data is automatically masked.
Yes! CoSurf works perfectly on mobile devices, both for agents and customers.
That depends on your plan. Check your billing page for details.