Google Analytics in Story.html file

Hi all - I've read here that you can put the Google analytics code into a story.html file so I can track hits.  But I can't figure out: HOW do I open the story.html file in order to add my GA code? If I right click on it, I don't have an "open with" option. I tried opening Notepad first but Notepad then wouldn't let me open an html file. And I've tried a few other things. Thanks!

10 Replies
Christine Hendrickson

Hi Laura,

I haven't personally tried this with Google Analytics, so I may not be of much help. 

However, it's a bit odd that Notepad won't open the HTML file. I'd make sure that you're opening the story.html file (if you're publishing for Web) and that it's not compressed within a zip folder. If it is compressed, try extracting it first. 

Also make sure that the file is on your local hard drive, typically the C: drive. 

If you still have trouble, you may want to chime in on this thread:

Getting Google Analytics from a Storyline Website - E-Learning Heroes

Best of luck!

Alexandros Anoyatis
  • Right click on the file you are trying to open and choose "properties"
  • Next to the "Opens with" instruction, click on "Change"
  • Choose your default program (preferably Wordpad or Notepad++).
  • Paste the Analytics code to the appropriate section of your story.html file.

Hope this helps,
Alex

Christine Hendrickson

Hi Laura,

Wonderful! Glad you're making some progress :D

You should be able to right-click on the extracted file and select "Send to" >> "Compressed (zipped) file". 

Just make sure that you name it something else, if you're saving in the same directory, or save it to a different location. 

Let us know if you have any trouble with this.

Thanks!