1. Home
  2. Set Up WalkMe
  3. Deployment Methods
  4. WalkMe Snippet and Deployment Method Overview

WalkMe Snippet and Deployment Method Overview

Updated on July 1, 2021 Download PDFDownload as PDF

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:

Where is the Snippet?

  1. Open the WalkMe Editor
  2. Log In
  3. Open the Editor Menu and select “Snippet”
  4. 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.
  5. Copy the snippet code:
  6. 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.
💡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()
  5. If it returns undefined, the Snippet is not properly set up.  If the query returns a value, then you’re all set!


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.

Was this article helpful?

Related Articles

< Back