Skip to main content

Workspace Settings: Viewing Your Tracking Script

Updated this week

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're capturing the right user interactions based on your website structure and goals. With this guide, you'll be ready to confidently retrieve and implement the perfect tracking solution for any type of website or web application.

When to Use This

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

  • Basic understanding of your website structure (public vs. authenticated pages)

Step-by-Step Instructions

Step 1: Navigating to Your Tracking Script

  1. Access Workspace Settings

    • Navigate to your Sona workspace

    • Click on General in the main navigation or settings menu

  2. Locate the Tracking Pixel Section

    • Find and click on Tracking Pixel under the Workspace Settings section

    • Wait for the tracking script options to load

Step 2: Selecting the Right Tracking Script Type

  1. Choose Your Form Capture Option

    • Select With Form Capture if you want to track form submissions and user interactions

    • Choose Without Form Capture if you only need basic page view tracking

    • Notice how the tracking script code changes based on your selection

  2. Determine Your Website Type

    • For standard websites: Continue with the default tracking script from step 3

    • For web applications with user authentication: Click on the Setup for Web Apps tab

Step 3: Selecting the Appropriate Web App Script (If Applicable)

  1. Choose Anonymous or Identified User Tracking

    • Select Anonymous Users tracking pixel for:

      • Public website pages

      • Landing pages

      • Marketing pages accessible without login

    • Select Identified Users tracking pixel for:

      • Pages behind user authentication

      • User dashboards

      • Account-specific content areas

Step 4: Copying and Implementing Your Script

  1. Copy the Tracking Script

    • Highlight the entire tracking script code displayed

    • Copy the code to your clipboard (Ctrl+C or Cmd+C)

    • Double-check that you've copied the complete script

  2. Verify Your Selection

    • Confirm you've selected the correct script type for your needs

    • Ensure the script matches your form capture requirements

    • Verify you're using the right script for your website authentication model

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

Key Concepts / 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're 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

Did this answer your question?