Forum Discussion
Rise & Google Analytics?
Can Google Analytics be integrated into Rise?
- LisaAdams20Community Member
We are also using Rise and couldn't find a way to add JavaScript for tracking the users clicks on various sections/links as there are no hyperlinks/html sections in index.html page for the e-learning contents. Can anybody let us know how to do the same?
- LisaWhalen1Community Member
Pete - no, I've only used it in Storyline, which was why I was originally asking how we can do this in Rise.
- LisaWhalen1Community Member
Weird...I posted a reply once, but it's not showing, neither are the comments I am getting emailed about.
I have not gotten this to work in Rise, which is why I joined this thread to begin with. I thought I saw that there was an update to Rise that allowed us to utilize Storyline triggers, but haven't been able to find that. I use Storyline much more than Rise.
Hi Lisa,
I see your responses here in this discussion - were you perhaps posting somewhere else, or with another Articulate ID?
We do have a Storyline block in Rise, perhaps that's what you're thinking of with triggers? Check it out here!
- LisaWhalen1Community Member
Thanks Ashley,
I was actually looking for a way to use a JavaScript trigger for Google Analytics event tracking within Rise, not bring it in via a Storyline Module. I do have both Rise and Storyline 360, but because I need to track interactivity, I stick to Storyline.
This is the link to Google Analytics event tracking. I've created my own tutorial that includes troubleshooting; however, I am not sure my company will let me post it. If I get permission, I will upload it right away.
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
Thanks Lisa for clarifying - and would love to see what you've done so far in this realm! I know a few folks have looked for similar as it's not yet a set up of Rise.
- DenisOHaraCommunity Member
don't think this is going to work in rise!
- LisaWhalen1Community Member
I haven't gotten the chance to ask if I could simply share my tutorial document yet, but can at least try pasting some code here.
Required Code in Head Section for Tracking Google Analytics
From Windows Explorer, right click on the published story.html file and select Open With DreamWeaver (or whatever HTML editor you use)For the event codes to connect to Google Analytics and show, you must add the following code in the head section after the </title> tag:
Add a few lines after the </title> tag before pasting the following text exactly as it is here, other than replacing YOUR GA UUID HERE with your own Google Analytics unique identifier.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-YOUR GA UUID HERE-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>Via Storyline Triggers:
Create an Execute JavaScript when the User clicks trigger in Storyline for the button you would like to track the event on.
Click the Script input box to bring up an entry box to enter the code below.
_gaq.push(['_trackEvent', 'Example_Module', 'downloaded', 'course-button-xxx']);
Code Explanation
'Example_Module' = the name of the module you are tracking events in
Note: this should be a unique name of each module you are tracking. If you have several in a series that have the same module name, you would want to add a 1, 2, 3 after each module name to differentiate between modules you are tracking.
'downloaded' – This refers to the type of event you are tracking. This could be downloaded, clicked, viewed, resource, etc. The example in this tutorial is for downloading a course. You would adjust it accordingly to your needs by way of something that makes sense to the event you are tracking, as this is how it will show in Google Analytics when you look for the reports.
xxx in 'course-button-xxx' = the name of the module they are downloading, to learn more
Below is an example from a test module to track a module called 'ga-test-course', with a button to track downloads 'downloaded', for a content called 'CIG-button'
_gaq.push(['_trackEvent', 'ga-test-course', 'downloaded', 'CIG-button']);
Hopefully this at least helps you get started. I will ask my manager about permission to publish my document here that also has screenshots.
- LisaWhalen1Community Member
I cannot use it in Rise, which is why I reached out to see if it can be done or if it could be added as a possiblility directly in Rise like it is in Storyline. I have, however, added Storyline pieces in Rise and obtained Google Analytics that way, via the SL module. However, I cannot find a way to add the individual javascript triggers in Rise on particular items. It would be WONDERFUL and I could use Rise more if that option was added. HINT HINT, lol
- LisaWhalen1Community Member
I have received permission from my company to post my generic version of the Google Analytics event tracking tutorial that we use in Storyline. You can bring Storyline modules into Rise and obtain event tracking via the imported Storyline module. In that scenario, you would need to import the Storyline file as a block in Rise and add the main Google Analytics javascript code to the head section of the main index.html file. This will let Google know to send event tracking and general Google Analytics to your Google Analytics account.
Note: If you insert a Storyline file into Rise that contains Google Analytics for tracking events, you can also obtain Google Analytics via Rise. In this case, you would add the main code to the HEAD section of the RISE project, like you would with the Storyline files. Note, the analytics will show the general analytics (country, device type, new vs returning users) for the entire Rise project and the event details for the Storyline block only.
- LawrenceFaulstiCommunity Member
@Lisa Whalen - Thanks so much for sharing! Do you know if it's possible to take your tutorial and apply it to Rise courses wrapped in Scorm 1.2 as well?
- LisaWhalen1Community Member
Yes and no. You can apply general Google Analytics to the main html files from Rise outputs, regardless of Scorm 1.2 or web page, etc. However, you cannot do event tracking in Rise yet (hoping they add a way to do this in a future release). Therefore, you can only get general analytics like location, device, page views, etc.
If you have a Storyline block in Rise that does have triggers in it for event tracking, then that is how you can get event tracking through Rise, but ONLY for that Storyline block. (See the Note in my previous post for combining Rise and Storyline blocks for event tracking.)