It is possible to use Google Tag Manager (GTM) to install the Minerva SDK on your web product(s). In addition, you can identify users and bucket them into groups using GTM.
Initialize Minerva SDK
Follow this guide to inject the Minerva SDK JavaScript snippet into your web product using GTM. The idea is to use the snippet on "All Pages" such that it is available everywhere on your web product. Below is an example of the snippet that you will find at the bottom of the Manage SDK Settings page on the Minerva Web App. That snippet is already configured for your API Key.
<script>!function(m,i,n,e,r,v,a){e=m[e]||(m[e]={}),r in e||(e[r]=function(){e[r].q.push(
arguments)},e[r].q=[]),e.config={apiKey:"12345678-1234-1234-1234-1234567890ab"},(
v=i.createElement(n)).src="//sdk.minervaknows.com/widget.js",v.async=!0,(
a=i.getElementsByTagName(n)[0]).parentNode.insertBefore(v,a)}(window,document,"script",
"Minerva","init");</script>
Enable Launch Button
On the Manage SDK Settings page on the Minerva Web App, you will need to enable the SDK on your domains or subdomains. To do this:
- For each Domain and/or Subdomains toggle it to the Active state.
- Within each Domain and/or Subdomain, toggle the Button Configuration to the Active state.
User Identification (Optional)
The final (optional) step is to enable user identification. This feature will allow you to curate which sets of Guidebooks and Guides are revealed to a subset of your users. In order to enable this, you will need to set up some Variable in GTM as well as new Tag that is triggered on All Pages, or All Element Clicks, depending on your needs.
- Create a User-Defined Variable using this guide.
- Create a Trigger for Clicking on All Elements using this guide.
- Create a Tag that will utilize the newly created Variable and Trigger using this guide.
Below is a sample snippet that you can use to properly identify and bucket your users.
<script>
Minerva.setUser({ id: "{{UserID}}", space: "{{UserDomain}}" })
</script>
Once you have completed all of the above, you should now see Groups being created in your Organization on the Minerva Web App with users being added to them.
Comments
0 comments
Article is closed for comments.