Skip to main content

Workspace Settings: Viewing Your Tracking Script

Learn how to locate, select, and copy the right Sona tracking script for your website, including form capture and web app options.

Overview

This guide shows you how to locate, select, and copy the correct Sona tracking script for your website implementation needs. Understanding how to access your tracking code is essential for proper data collection and ensures you are capturing the right user interactions based on your website structure and goals. With this guide, you will be ready to confidently retrieve and implement the right tracking solution for any type of website or web application.

When to use this guide

Access your tracking script when you need to:

  • Install Sona tracking on a new website or page.

  • Update existing tracking implementations.

  • Switch between form capture options.

  • Set up tracking for web applications with user authentication.

  • Provide tracking code to developers or technical team members.

  • Troubleshoot tracking implementation issues.

Prerequisites:

  • Access to your Sona workspace.

  • Permission to view Workspace Settings.

  • A basic understanding of your website structure, public versus authenticated pages.

Step 1: navigate to your tracking script

Access Workspace Settings: navigate to your Sona workspace, then click General in the main navigation or settings menu.

Locate the Tracking Pixel section: find and click Tracking Pixel under the Workspace Settings section, then wait for the tracking script options to load.

Step 2: select the right tracking script type

Choose your form capture option: select With Form Capture if you want to track form submissions and user interactions, or choose Without Form Capture if you only need basic page view tracking. Notice how the tracking script code changes based on your selection.

Determine your website type: for standard websites, continue with the default tracking script shown above. For web applications with user authentication, click the Setup for Web Apps tab.

Step 3: select the appropriate web app script (if applicable)

Choose anonymous or identified user tracking:

  • Select the Anonymous Users tracking pixel for public website pages, landing pages, and marketing pages accessible without login.

  • Select the Identified Users tracking pixel for pages behind user authentication, user dashboards, and account-specific content areas.

Step 4: copy and implement your script

Copy the tracking script: highlight the entire tracking script code displayed, copy it to your clipboard (Ctrl+C or Cmd+C), and double-check that you have copied the complete script.

Verify your selection: confirm you have selected the correct script type for your needs, ensure the script matches your form capture requirements, and verify you are using the right script for your website's authentication model.

You now have the correct tracking script ready for implementation on your website.

Key concepts and best practices

Understanding form capture options:

  • With Form Capture: automatically tracks form submissions, user interactions, and conversion events.

  • Without Form Capture: only tracks page views and basic navigation, ideal for privacy-focused implementations.

Web application tracking strategy:

  • Anonymous Users: use for public-facing pages where user identity is unknown.

  • Identified Users: use for authenticated areas where you can associate actions with specific users.

  • Hybrid Approach: many sites use both scripts on different page types for comprehensive tracking.

Implementation best practices:

  • Always test tracking scripts in a staging environment first.

  • Place tracking scripts in the <head> section of your HTML for optimal performance.

  • Use the same script type consistently across similar page types.

  • Document which script types you are using on different sections of your site.

Script selection guidelines:

  • Choose form capture based on your data collection needs, not just convenience.

  • Consider privacy regulations when deciding on form tracking.

  • Use identified user tracking only where users have explicitly logged in.

  • Implement anonymous tracking for marketing and public content pages.

Performance considerations:

  • Tracking scripts are designed to load asynchronously and not block page rendering.

  • Form capture scripts may have slightly more overhead but provide richer data.

  • Test page load times after implementation to ensure optimal performance.

FAQs

How do I know which tracking script to use?

Choose With Form Capture if you want to track form submissions and user interactions, or Without Form Capture for basic page view tracking only. For web applications with user authentication, also choose between the Anonymous Users script for public pages and the Identified Users script for authenticated areas.

Can I use more than one tracking script on my site?

Yes. Many sites use a hybrid approach, placing the Anonymous Users script on public-facing pages and the Identified Users script on authenticated areas, so both anonymous and logged-in activity is tracked appropriately across the site.

Where should I place the tracking script on my page?

Place tracking scripts in the <head> section of your HTML for optimal performance. Scripts are designed to load asynchronously so they do not block page rendering, but you should still test page load times and verify the implementation in a staging environment first.

Did this answer your question?