diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index 9a081bf00..7b1faa466 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -1728,8 +1728,8 @@ var gDocsListLength = 0; function onSuggestionClick(link) { // When user clicks a suggested document, track it - ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).text(), - 'from: ' + $("#search_autocomplete").val()); + ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).attr('href'), + 'query: ' + $("#search_autocomplete").val().toLowerCase()); } function set_item_selected($li, selected) @@ -2702,8 +2702,8 @@ function addResultClickListeners() { $("#searchResults a.gs-title").each(function(index, link) { // When user clicks enter for Google search results, track it $(link).click(function() { - ga('send', 'event', 'Google Click', 'clicked: ' + $(this).text(), - 'from: ' + $("#search_autocomplete").val()); + ga('send', 'event', 'Google Click', 'clicked: ' + $(this).attr('href'), + 'query: ' + $("#search_autocomplete").val().toLowerCase()); }); }); }