Google analytics script not functioning on mobile portal

Description

No analytics are being reported for the mobile portal. The following script should be embedded on the mobile gateway using the sakai:pdaHtmlInclude: site property:

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1354622-4']); _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>

It looks like the script is on !gateway already, but I suspect the new gateway needs to be modified to enable the script.

Attachments

2
  • 17 Jan 2013, 07:11 AM
  • 17 Jan 2013, 07:02 AM

Activity

Gonzalo Silverio January 17, 2013 at 12:11 PM

Readed script without the escaped bits.

Gonzalo Silverio January 17, 2013 at 7:16 AM

Script looks right. Want to reopen this and reject the Pivotal Tracker Story? Thanks.

Gonzalo Silverio January 17, 2013 at 7:13 AM
Edited

Looks like there is ticks were unicoded. Should have been 'https://ssl(tick) 'http://www(tick)?

John Johnston January 17, 2013 at 7:12 AM

I have attached the ga script in a text file. Perhaps the syntax got messed up in pasting.

Gonzalo Silverio January 17, 2013 at 7:02 AM

See Firebug error message

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created January 11, 2013 at 2:08 PM
Updated March 4, 2013 at 10:39 AM
Resolved January 17, 2013 at 12:11 PM

Flag notifications