WalkMe Snippet and Deployment Method Overview

Last Updated April 27, 2022

What is the Snippet?

The snippet is a piece of JavaScript code that allows WalkMe to appear on your site. Each WalkMe Editor account has a unique snippet code that can be accessed inside the Editor:

🎓 Digital Adoption Institute


If you have a Test site, you may choose to first publish your WalkMe items to this site before publishing to your end-users on your Production site. The Snippet is slightly different for each environment. Since the Snippet is different for each environment, you will need to deploy it separately for each environment.

Deploy the Test Snippet for your Test (or Sandbox or Staging) site; then items published to Test will appear on your Test site. Similarly, deploy the Production Snippet for your site; then items published to Production will appear on your Production site.

It is also possible to create custom Environments suitable for your individual business needs. Read more here.

Where Can I Find the Snippet?

  1. Select “Snippet” from inside the Editor Menu
  2. Select an environment
    • Each environment has a slightly different snippet code. If you have a test/sandbox/staging site, copy the snippet for Test. If you would like the snippet for publishing to your end-users, copy the snippet for Production.
  3. Copy the snippet code:
  4. WalkMe Enabled Toggle Switch
    • If for some urgent reason you must disable WalkMe in any environment, you may simply click the WalkMe Enabled toggle. Once toggled OFF, the WalkMe snippet will be deactivated.

Methods For Deploying the Snippet

Deployment is a simple, one-time task done by your IT team.

There are several ways to deploy the WalkMe snippet. The correct one for you depends on the specifics of your application. Click on each link below to learn more about these options:

  1. If you have access to your application’s HTML, we recommend simply pasting the snippet into the head tag of each page on which you want WalkMe content to appear. Read more here.
  2. If you don’t have access to your application’s HTML (or don’t want to alter it for whatever reason), we recommend inserting the snippet by mass deploying the Player browser extension. Read more here.
  3. A third option for expediting the process of inserting the snippet is using Google Tag Manager. Read more here.

After adding the snippet, perform a settings publish (Settings > Publish Settings) to all relevant environments from the WalkMe Editor to generate the files and allow WalkMe to load properly on the site. Without a settings publish, WalkMe files will not load properly and a 403 error will display in the code’s network requests.

💡Tip: WalkMe Compass Guide

WalkMe Compass offers in-app, step-by-step guidance to help you on this subject. Click on the link below to be redirected to the WalkMe Editor. You must be logged in to your editor in order for the guidance to launch.

→ View the WalkMe Deployment Guide

How do I Test that the Snippet is Working?

Once the snippet is in place, you will be able to see your published content from the Editor. To test the snippet to make sure it’s set up correctly:

  1. Open your site
  2. Right-click and select inspect the page
  3. Open the console
  4. Enter the following text query:  _walkMe.getEnvId()
    • This command will return a value indicating which environment loaded:
    • If it returns undefined, the Snippet is not properly set up and you can contact Support for assistance

Was this article helpful?

Thanks for your feedback!

Select account type

< Back

Mobile account login

< Back