Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4cefc19 authored by smain@google.com's avatar smain@google.com Committed by Android Git Automerger
Browse files

am 633f322b: update the analytics tracking event calls to use new API for...

am 633f322b: update the analytics tracking event calls to use new API for analytics.js bug: 16331906

* commit '633f322b':
  update the analytics tracking event calls to use new API for analytics.js bug: 16331906
parents 7ddf7943 633f322b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1642,8 +1642,8 @@ var gDocsListLength = 0;

function onSuggestionClick(link) {
  // When user clicks a suggested document, track it
  _gaq.push(['_trackEvent', 'Suggestion Click', 'clicked: ' + $(link).text(),
            'from: ' + $("#search_autocomplete").val()]);
  ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).text(),
            'from: ' + $("#search_autocomplete").val());
}

function set_item_selected($li, selected)
@@ -2610,8 +2610,8 @@ function addResultClickListeners() {
  $("#searchResults a.gs-title").each(function(index, link) {
    // When user clicks enter for Google search results, track it
    $(link).click(function() {
      _gaq.push(['_trackEvent', 'Google Click', 'clicked: ' + $(this).text(),
                'from: ' + $("#search_autocomplete").val()]);
      ga('send', 'event', 'Google Click', 'clicked: ' + $(this).text(),
                'from: ' + $("#search_autocomplete").val());
    });
  });
}
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
  <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
  &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
  &#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
    onclick="_gaq.push(['_trackEvent', 'Samples', 'Download', <?cs var:projectDir ?>]);"
    onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);"
    >Download</a>

</div><!-- end sum-details-links -->
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
&#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
<?cs /if ?>
&#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
    onclick="_gaq.push(['_trackEvent', 'Samples', 'Download', <?cs var:projectDir ?>]);"
    onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);"
    >Download</a>

</div><!-- end sum-details-links -->
+1 −1
Original line number Diff line number Diff line
@@ -622,7 +622,7 @@ var:sdk.linux_download
          }
        }, 500);
      });
      _gaq.push(['_trackEvent', 'SDK', 'ADT and Tools', $("#downloadForRealz").html()]);
      ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
      return true;
    } else {
      $("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,