How to Add Tracking Code to Your Webinar
Use Tracking Code Setup to add JavaScript, tracking pixels, and other tracking snippets to your webinar pages.
You can add one code snippet to the hosted webinar experience using Global Tracking Code, or add different code to specific pages such as the Registration Page, Thank You Page, or Webinar Viewing Page.
Before You Start
Make sure you have:
- An editable webinar.
- The complete tracking snippet from the service you want to connect.
- A clear idea of which webinar page you want to track.
- Any placement instructions provided by your tracking service.
If you are using Google Analytics, enter a Google Analytics UA number in the Google Analytics UA Number field. For GA4 and other services, use the complete code snippet provided by the service in the appropriate code field. Do not try to create a tracking script from an ID unless the provider specifically tells you to do so.
Open Tracking Code Setup
- From My Webinars, open the webinar you want to edit.
- Open Advanced Setup.
- Expand Tracking Code Setup.
The section includes Google Analytics UA Number, Global Tracking Code, and switches for adding code to individual webinar pages. The section description is “Set up tracking pixels and scripts for external services.”
Important: This setting is intended for webinar pages hosted by StealthSeminar. It does not automatically add code to an external registration page or to the page where you embed a registration widget. Add code to those pages using the settings provided by the external platform.
Add Code to Every Page
Use Global Tracking Code when the same snippet should run whenever a viewer arrives at the hosted webinar experience.
- Paste the complete snippet into Global Tracking Code.
- Use page-specific switches only when you need different code for individual pages.
The Global Tracking Code field is designed for code that should run regardless of which supported webinar page the viewer opens.
Add Code to Specific Pages
- Find the page you want to track.
- Turn on the switch beside that page.
- When the page fields appear, paste the code into the location recommended by your provider.
You can add code to these pages:
- Registration Page Tracking Code
- Thank You Page Tracking Code
- Countdown Page Tracking Code
- Webinar Viewing Tracking Code
- Webinar Completed Tracking Code
- Replay Tracking Code
The placement fields appear only after you turn on the switch for a page.
Choose Where the Code Goes
Each enabled page has three placement fields:
| Field | Where the code is added |
|---|---|
| Inside Head | Inside the page’s <head> section. |
| After Head | Immediately after the page’s head section. |
| Bottom of Page | Near the end of the page. |
Follow your provider’s instructions whenever possible. If no placement is specified, Inside Head is usually the best starting point for a tracking pixel or page-view script.
Use more than one location only when your provider gives you separate snippets or specific instructions for each location.
Save Your Changes
- Scroll to the bottom of the editor.
- If you are editing an existing webinar, click Update Webinar.
- If you are creating a new webinar, click Create Webinar.
- To save your current work and leave the editor, click Save to draft.
Save to draft saves the current step and returns you to My Webinars so you can continue later.
Turning off a page switch and saving removes the tracking code saved for that page. Clearing an individual code field and saving also removes that saved snippet.
How to Check Your Setup
- Save your changes.
- Open the webinar in a private or incognito browser window.
- Visit the exact page where you added the code.
- Use the testing or debugging tool provided by your analytics or tracking service.
- Confirm that the expected page visit or event was received.
- Repeat the test for each page where you added code.
Some tracking services take a few minutes to display new activity. When available, use a test event or test environment so your checks do not affect your live reports. StealthSeminar’s internal verification process also recommends registering for the webinar and moving through the relevant pages to confirm that the snippets load correctly.
Common Issues and Solutions
| Problem | Solution |
|---|---|
| I cannot find Custom JavaScript. | Open the webinar editor and go to Advanced Setup > Tracking Code Setup. The current editor uses the name Tracking Code Setup. |
| The fields for a page are not showing. | Turn on the switch for that page. The placement fields appear only for enabled pages. |
| The code is not being detected. | Confirm that you pasted the complete snippet, used the correct page-specific field, and saved the webinar. Then test the exact page again. |
| I do not know which location to use. | Follow your provider’s instructions. If none are provided, start with Inside Head. |
| I entered a tracking ID, but nothing works. | If it is a Google Analytics UA number, enter it in Google Analytics UA Number. For other services, ask the provider for the complete tracking snippet. |
| My code disappeared after I turned off a page. | This is expected. Turning off a page and saving removes the code stored for that page. Turn the switch back on, add the code again, and save. |
| My code works on the webinar page but not on my registration page. | Tracking Code Setup applies to hosted webinar pages. If your registration page is hosted on another platform, add the code using that platform’s settings as well. |