Google and Analytics and Javascript
Jul 24, 2012
Hi there
I have a storyline setup, working well. I can track peoples journey with it in general terms by just tagging the HTML page with Analytics code, but what I really want to do is send events from the storyline back to analytics.
Can I use the 'Execute Javascript' function to do anything like this? Used to be something in flash which did something like this, essentially a AJAXy event that sent code back to the browser on an action - is there anyway of doing anything similar?
If not why is execute javascript there I'm guessing it's a bridge to the online option, but we are nowhere near big enough top justify that cost!
A
13 Replies
PS Great product!
Doesn't answer your question, but for others looking for traffic info on their projects, I use statcounter.com. Just insert the javascript into the story.html file and it works like a champ.
Picking up this idea a year later....
I have successfully put Google Analytics code in the story.html and story_html5.html files. What I'm interested in is being able to track every page/screen in the course. I tried putting a trigger on each screen using Execute JavaScript action, but am not getting page-level data in Google Analytics.
In GA I'm looking in Content > Site Content > All Pages and Content Drilldown.
Could you use the web object feature to embed the GA code into each slide?
Thanks Jade for chiming in here, although I'm not certain that James is still subscribed to this thread so you may want to send him a private message.
Ok - I'm going to try it out myself first as this is exactly what I need to do! I'll let him know if it works
Sounds good Jade, thanks for the update.
I do something similar...keep in mind that Google Analytics says it can take up to 24 hours to show results!
I built a small lib to help with this. See here...
https://community.articulate.com/discussions/articulate-storyline/google-analytics-in-storyline#reply-298362
Thanks for sharing Mark!
I'm hoping there's an update to this request and someone can confirm we can track action level functionality via Google, or other method via JavaScript
Hi Tracy,
It's not anything built into Storyline right now, but you're still able to use Javascript to set up something custom.
Just chiming in to get updates to this thread if there is more information. Using GA more easily both in SL and Rise would be a huge help for us.
This discussion is closed. You can start a new discussion or contact Articulate Support.