Sending data to Totango

Follow

With Skilljar, you can send training activity data directly to Totango's customer success software. This works out-of-the-box via Skilljar's Theming area - no developers required. We call Totango's Javascript Collector to send data, using user accounts to link the two systems and custom user-actions to track training events.

General Tracking

In the Global Code Snippet, you will add the general Totango tracking script. The script should look like:

<!-- Totango Tracking Code -->

<script>
window.totango_options = {
service_id: "SP-1160-01" // Your Totango service code (tenant ID)
}         
if (typeof(skilljarUser) != 'undefined') {
window.totango_options.user =        // Start of the USER Array
  { 
   id: skilljarUser.email,           // email address or other unique identifier of the user
   name: skilljarUser.name 
  }
window.totango_options.account =     // Start of the ACCOUNT Array
  {
   id: skilljarUser.id,        // Unique identifier of the account the user is part of
  }
}
(function() { var tracker_name=window.totango_options.tracker_name||"totango";window.totango_tmp_stack=[];window[tracker_name]={go:function(){return -1;},setAccountAttributes:function(){},identify:function(){},track:function(t,o,n,a){window.totango_tmp_stack.push({activity:t,module:o,org:n,user:a}); return -1;}}; var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'tracker.totango.com/totango3.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); })();
</script>

<!-- End Totango Tracking Code —>
Sending Course Enrollment Events

In the Conversion Code Snippet, pasting the following code will create a "Enrolled in Course" user-action in Totango. You do not have to specify this in Totango - sending a new user-action will automatically create one.

The example below uses the course title for Totango's "module" but you can change these to anything you like.

<script>
if (typeof(skilljarCourse) != 'undefined') {
totango.track("Enrolled in Course" + skilljarCourse.title);
}
</script>

Sending Course Completion Events

In the Completion Code Snippet, pasting the following code will create a "Completed Course" user-action in Totango.

<script>
if (typeof(skilljarCourse) != 'undefined') {
totango.track("Completed Course" + skilljarCourse.title);
}
</script>

Example of Results

The screenshot below shows an example of results in Totango.

Have more questions? Submit a request

Comments

Powered by Zendesk