With Skilljar's integration with Totango, you can send student information and training activity data directly into Totango's customer success software.
You can read more about integrating Skilljar with Totango in Totango's help center article.
We call Totango's JavaScript Collector library to push data, using user accounts to link the two systems and custom user actions to track training events.
Here's what you'll need to get started:
- Access to Skilljar's Theming tab
- Access to Totango's Customer Success Center dashboard
Add General Tracking Script:
In the Analytics Tracking Code Snippet in Skilljar's Theming tab, add the general Totango tracking script::
<!-- Totango Tracking Code -->
<script>
window.totango_options = {
service_id: "SP-####-##", // Replace with your Totango service code (tenant ID)
}
if (typeof(skilljarUser) != 'undefined') {
window.totango_options.user = // Start of the USER object
{
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 —>
Including a Module in the General Tracking Script (Optional):
In the Global Code Snippet in Skilljar's Theming tab, add the following modified general Totango tracking script:
<!-- Totango Tracking Code -->
<script>
window.totango_options = {
service_id: "SP-####-##", // Replace with your Totango service code (tenant ID)
module: "########", // Replace with the module name
}
if (typeof(skilljarUser) != 'undefined') {
window.totango_options.user = // Start of the USER object
{
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 in Skilljar's Theming tab, adding 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 Enrollment Events including a Module (Optional):
<script>
if (typeof(skilljarCourse) != 'undefined') {
totango.track("Enrolled in Course: " + skilljarCourse.title, "Module name");
}
</script>
Where Module name is the name of the module you'd like to associate with.
Sending Course Completion Events:
In the Completion Code Snippet in Skilljar's Theming tab, adding the following code will create a "Completed Course" user action in Totango.
<script>
if (typeof(skilljarCourse) != 'undefined') {
totango.track("Completed Course: " + skilljarCourse.title);
}
</script>
Sending Course Completion Events Including a Module (Optional):
<script>
if (typeof(skilljarCourse) != 'undefined') {
totango.track("Completed Course: " + skilljarCourse.title, "Module name");
}
</script>
The module name is the name of the module you'd like to associate with.
Learn more about Conversion Tracking Advanced Javascript objects.
Example of Results:
The screenshot below shows an example of results in Totango.
For additional assistance, please reach out to our Customer Success team or support@skilljar.com!