OutStem Help
  • Intro to OutStem
  • Your Account
    • Creating your OutStem Account
    • Logging in
      • Resetting your password
      • Logging in with Third Party Providers
    • Manage Contact Information
      • For staff
      • For customers
    • Account Security
      • Update billing address
      • Set up Multi-factor Authentication
  • Releases
  • API Documentation
    • External Account Providers
  • Staff
    • Every Activity
      • Home Page
      • Activities
        • Activity Info
        • Instructions
        • Tools & Materials
        • Files & Images
        • References
        • Versions
        • Learning Goals
        • Prerequisites
        • Feedback
      • Collections
        • Collection Details
        • Curriculum Management
      • Packing Lists
        • Configuration
        • Packing Activities
      • Explore Groups
      • Progress Reports
        • Configurations
        • Writing up Activities
    • Registrations
      • Listings
        • Custom Fields Templates
      • Orders
        • FAST PASS
      • Settings
        • Equipment
        • Rooms
        • Equipment Availability
    • Sign in
      • Filter bar
      • Participant Management
        • Signing in a participant
          • Force sign in a participant
        • Signing out a participant
          • Force sign out a participant
        • Incidents
        • Batch attendance
        • Troubleshooting QR code scanner
        • Custom Info
      • Session Management
        • Creating a session
        • Feedbacks
        • Resources
      • Survey Management
        • Setting Up Surveys
        • Using Assigned Surveys
      • Online Sessions
    • Sysadmin
      • Domain Customization
        • Add tracking code to your registration forms
      • Staff
        • About staff permissions
        • Managing staff
      • Key Management
      • Memo Configuration
  • Archive
    • App Documentation (Legacy)
      • Registration Forms
        • portal-page
          • Portal Page
        • order-history
          • Order History
        • photos
          • Photos
        • camp-form
          • Camp Form
        • workshop-form
          • Workshop Form
        • event-form
          • Event Form
        • profile-page
          • User Profile Management Page
      • Registration Administration
        • How to Change
        • orders
          • Orders
        • schedules
          • Schedules
        • listings
          • Listings
        • calendar
          • Calendar
        • activities
          • Activities
        • collections
          • Collection
        • availabilities
          • Availabilities
        • registrations
          • Registrations
        • reports
          • Reports
        • initiatives
          • Initiatives
        • organizations
          • Organizations
        • coupons
          • Coupons
        • equipment_labels
          • Equipment_Labels
        • equipment
          • Equipment
        • equipment_availability
          • Equipment Availability
        • vehicles
          • Vehicles
      • Sign In Sign Out
        • homepage
          • Homepage
        • sign_in
          • Sign In
        • sign_out
          • Sign Out
Powered by GitBook
On this page
  • About tracking code on OutStem
  • Loading external scripts in JavaScript
  • Common analytics scripts

Was this helpful?

  1. Staff
  2. Sysadmin
  3. Domain Customization

Add tracking code to your registration forms

Business intelligence is critical to decision making. To help you understand your customers better, you should add JavaScript tracking code to the registration forms. This article will provide you mor

PreviousDomain CustomizationNextStaff

Last updated 3 years ago

Was this helpful?

About tracking code on OutStem

You can add custom Javascript to your OutStem forms using the Sysadmin application. You can add scripts in two locations of the page: in the <head> section and in the <body> section. The code is appended to the end of both sections. The code you add to the custom injection should be in correct JavaScript syntax, or the script will not correctly behave.

OutStem only supports Javascript Injections, you cannot inject HTML using the code injection feature.

Because is a single page application, we emulate the page load effect desired by analytics tools like Google Analytics by removing your script and loading it again every time the user navigates to a new page.

Tracking code you add is loaded on the following pages:

  • Forms Portal Page

  • Program Details Page

  • All Registration forms (events, workshops, and programs)

Loading external scripts in JavaScript

If your analytics vendor requires you to load some external javascript using the following syntax:

<script src="https://some-tracker.com/tracking.js"></script>

You need to change that syntax to the following format before adding it to Sysadmin.

var script = document.createElement('script');
script.src = "https://some-tracker.com/tracking.js";

script.onload = function () {
    // Perform initialization with the tracker script
};

document.head.appendChild(script); //or something of the likes

Common analytics scripts

Google site tag (gtag.js)

var script = document.createElement('script');
script.src = "https://www.googletagmanager.com/gtag/js?id=<YOUR_SITE_ID>";

script.onload = function () {
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '<YOUR_SITE_ID>');
};

document.head.appendChild(script); //or something of the likes
forms.outstem.io