Google Analytics

Sep 16, 2013

Hi

Web developer here, not working with the product directly but my partner is. He outputs the final product and then hands it off to me to incorporate into or delivery method, a website.

So the product outputs both separate web and mobile version with the mobile version outputting 5 HTML pages and web 1 HTML page so 6 total html pages. I have to add the Google Analytics code to the html pages. Each time we do a tweak or update, I have to manually add that code again.

Need a module that allows us to enter the GA code once in the UI that will keep it there.

Best regards, Jay

8 Replies
Jay Crutchfield

In addition, just discovered that we need to also re-add all the custom meta data. This metadata is needed to be able to control what Facebook and other services grab for their posts.

Example

<code>

<link rel="shortcut icon" href="favicon.ico">
<link type="image/vnd.microsoft.icon" href="favicon.ico" rel="shortcut icon">
<link media="screen" href="iet.css" rel="stylesheet" type="text/css">
<meta content="text/html" name="dcterms.format">
<meta content="article" property="og:type">
<meta content="http://myiet.com" property="og:url">
<meta content="My Site" property="og:site_name">
<meta content="http://myiet.com/image.jpg" property="og:image">
<meta content="A long description" name="description">
<meta content="A long description" name="abstract">
<meta content="My Keywords" name="keywords">
<meta content="My Title" name="dcterms.title">
<meta content="2013-09-03T10:13-04:00" name="dcterms.date">
<meta content="My Title" property="og:title">
<meta content="Me" name="dcterms.creator">
<meta content="und" name="dcterms.language">
<meta content="http://mysite.com/iet/index.html" name="dcterms.identifier">
<meta content="A long description" property="og:description">

</code>

Brett Rockwood

I don't think there is an easy way around what you're trying to do. Everytime SL publishes its content it recreates these HTML files from scratch so you'll need to re-enter any code customizations each time. This issue has come up with other customizations beside Google Analytics. Would make a good feature request.

Johanna Stix

Hi

we've added the google analythics stuff just to story.html and story_html5.html. This worked so far (depending on what you want to track).

If your customer has they same code for each course (not sure what he is tracking) you could even try to change the 2 files in the install folder of articulate (eg C:\Program Files (x86)\Articulate\Articulate Storyline\Content\mobile contains the story_html5.html)

But this is a workaround and would not help if you need to change the code per course.

In addition, I'm not sure that articulate support can help if you change these files and your system won't work as expected any more.

So I would just advice this if you are absolutely sure you know what you are doing

Jay Crutchfield

Yes, the metadata is specific per course.

The analytics code is the same across all.

The ultimate goal would be a button somewhere in the UI like "Add Meta Data". This could be a form text field where I could enter one line, then have the option to add another text field to add another line, etc. Add some error checking and then those lines would be added to head.

A separate button would be "Add Tracking Code Head" and "Add Tracking Code Body Close" or something like that. Where the option is there to add the tracking code. This data is saved per project and then would only need to be entered once.

Maybe they could be add-on modules with limited support, or if could get them working properly, then it is part of the package.

Just some thoughts and hopefully that makes sense, thanks for quick replies

Jade Kelsall

On most occasions when you update and republish a resource, there won't be any changes to the story.html file.

What I normally do is add my GA code and metadata to my story.html file, rename it index.html, then each time I republish I can just delete the newly generated story.html file and keep my customised index.html.

This discussion is closed. You can start a new discussion or contact Articulate Support.