Add the AptEdge snippet to Zendesk Guide

  1. From the Guide Admin portal, select the Themes tab.
  2. Under Live Theme, select Customize.
  3. In the bottom right corner, select Edit code.
  4. From the list of files, scroll down and open script.js.
  5. At the bottom of the page, paste the AptEdge snippet that you copied.
  6. Select Publish to save your changes.

Control which users see AptEdge

You can restrict the visibility of AptEdge to specific users and user groups using conditional statements before initializing AptEdge in the script.js file:

if ( some condition ) {
	// Add AptEdge snippet here
}

Attributes of the current signed-in user, such as their email, tags, role, and groups are accessible using the HelpCenter object provided by Zendesk. To see the available attributes:

  1. Open the Help Center in your browser and log in.
  2. Open the console in Developer Tools. Refer to these instructions if you’re using Chrome.
  3. Type in HelpCenter, then press Enter to view the details of the object.

For instance, to show AptEdge only for users with the tag “foo”:

if ( HelpCenter.user.tags.includes('foo') ) {
	// Add AptEdge snippet here
}