Commit 28522568 by Mark L. Chang

added dummy analytics object

parent 2e9bf4ac
...@@ -18,4 +18,15 @@ ...@@ -18,4 +18,15 @@
% endif % endif
</script> </script>
<!-- end Segment.io --> <!-- end Segment.io -->
% else:
<!-- dummy segment.io -->
<script type="text/javascript">
%if context_course:
var course_location_analytics = "${context_course.location}";
%endif
var analytics = {
track: function() { return; }
};
</script>
<!-- end dummy segment.io -->
% endif % endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment