What is the Snippet?
Where is the Snippet?
- Open the WalkMe Editor.
- Log In.
- Click Publish in the blue admin bar.
- Open the Snippet tab.
- 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.
- Copy the snippet code:
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:
- 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
- If you don’t have access to your application’s HTML (or don’t want to alter it for whatever reason), we recommend mass deploying the snippet using the Player Extension (which is a browser extension). Read more here
- A third option for expediting the process of inserting the snippet is using Google Tag Manager. Read more here
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:
- Open your site
- Right click and select inspect the page
- Open the console
- Enter the following text query: _walkMe.getEnvId()
- 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.