am f4cefc19
: am 633f322b
: update the analytics tracking event calls to use new API for analytics.js bug: 16331906
* commit 'f4cefc19e87eae62b6f2f8cc40b154f9fbe4b3de': update the analytics tracking event calls to use new API for analytics.js bug: 16331906
This commit is contained in:
@@ -1642,8 +1642,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
|
||||||
_gaq.push(['_trackEvent', 'Suggestion Click', 'clicked: ' + $(link).text(),
|
ga('send', 'event', 'Suggestion Click', 'clicked: ' + $(link).text(),
|
||||||
'from: ' + $("#search_autocomplete").val()]);
|
'from: ' + $("#search_autocomplete").val());
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_item_selected($li, selected)
|
function set_item_selected($li, selected)
|
||||||
@@ -2610,8 +2610,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() {
|
||||||
_gaq.push(['_trackEvent', 'Google Click', 'clicked: ' + $(this).text(),
|
ga('send', 'event', 'Google Click', 'clicked: ' + $(this).text(),
|
||||||
'from: ' + $("#search_autocomplete").val()]);
|
'from: ' + $("#search_autocomplete").val());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
|
<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
|
||||||
| <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
|
| <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
|
||||||
| <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
|
| <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>
|
>Download</a>
|
||||||
|
|
||||||
</div><!-- end sum-details-links -->
|
</div><!-- end sum-details-links -->
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
| <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
|
| <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
|
||||||
<?cs /if ?>
|
<?cs /if ?>
|
||||||
| <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
|
| <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>
|
>Download</a>
|
||||||
|
|
||||||
</div><!-- end sum-details-links -->
|
</div><!-- end sum-details-links -->
|
||||||
|
@@ -622,7 +622,7 @@ var:sdk.linux_download
|
|||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
_gaq.push(['_trackEvent', 'SDK', 'ADT and Tools', $("#downloadForRealz").html()]);
|
ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,
|
$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,
|
||||||
|
Reference in New Issue
Block a user