am 3ff2fd14
: am d7dbaf5c
: am ed677d7a
: update analytics event for searches to make query case-insensitive and save the URL instead of doc title.
* commit '3ff2fd14b1276e3b9c0473bd987c1bb34925ef86': update analytics event for searches to make query case-insensitive and save the URL instead of doc title.
This commit is contained in:
@@ -1728,8 +1728,8 @@ var gDocsListLength = 0;
|
|||||||
|
|
||||||
function onSuggestionClick(link) {
|
function onSuggestionClick(link) {
|
||||||
// When user clicks a suggested document, track it
|
// When user clicks a suggested document, track it
|
||||||
ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).text(),
|
ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).attr('href'),
|
||||||
'from: ' + $("#search_autocomplete").val());
|
'query: ' + $("#search_autocomplete").val().toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_item_selected($li, selected)
|
function set_item_selected($li, selected)
|
||||||
@@ -2702,8 +2702,8 @@ function addResultClickListeners() {
|
|||||||
$("#searchResults a.gs-title").each(function(index, link) {
|
$("#searchResults a.gs-title").each(function(index, link) {
|
||||||
// When user clicks enter for Google search results, track it
|
// When user clicks enter for Google search results, track it
|
||||||
$(link).click(function() {
|
$(link).click(function() {
|
||||||
ga('send', 'event', 'Google Click', 'clicked: ' + $(this).text(),
|
ga('send', 'event', 'Google Click', 'clicked: ' + $(this).attr('href'),
|
||||||
'from: ' + $("#search_autocomplete").val());
|
'query: ' + $("#search_autocomplete").val().toLowerCase());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user