Remove google analytics tracking from iframes used in Drupal course about pages

This fixes two issues:
 - if the course pointed to doesn't exist, GA was added to the iframe twice
 - more importantly, we don't want to count these as separate views anyway--
   we just care about the about page itself.
 - I also added a note about where we would put our segment.io widget if we want it
   later

LMS-2581
This commit is contained in:
Victor Shnayder
2014-04-30 11:03:50 -04:00
parent 37d3d4a869
commit 9dd9422a74
2 changed files with 3 additions and 7 deletions

View File

@@ -13,10 +13,6 @@
<%block name="bodyclass">view-iframe-content view-partial-mktgregister</%block>
<%block name="headextra">
<%include file="../google_analytics.html" />
</%block>
<%block name="js_extra">
<script type="text/javascript">
(function() {

View File

@@ -22,9 +22,9 @@
<%block name="headextra"/>
% if not course:
<%include file="google_analytics.html" />
% endif
<!-- NOTE: if we want segment io on these iframes at some point, put
include file="widgets/segment-io.html"
here -->
<!-- repeated button styles needed for IE (copied from _shame.scss) -->
<style type="text/css" media="screen">