summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmain@google.com <smain@google.com>2014-10-15 02:15:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-15 02:15:35 +0000
commit6fbe299fa5bcc084cd69899afdc3c77767b7c1f5 (patch)
tree4396a3a371f7ed73f72206acd4692ac1b81e3037
parentc93723bdf9b2ce4dc0426817b8bec924d9f97a79 (diff)
parentd8d20f52ec0550477b773cee4c0f0343f2a9301f (diff)
downloadframeworks_base-6fbe299fa5bcc084cd69899afdc3c77767b7c1f5.zip
frameworks_base-6fbe299fa5bcc084cd69899afdc3c77767b7c1f5.tar.gz
frameworks_base-6fbe299fa5bcc084cd69899afdc3c77767b7c1f5.tar.bz2
am d8d20f52: update analytics event tracking calls to use new script bug: 16331906
* commit 'd8d20f52ec0550477b773cee4c0f0343f2a9301f': update analytics event tracking calls to use new script bug: 16331906
-rw-r--r--docs/html/design/downloads/index.jd26
-rw-r--r--docs/html/design/patterns/actionbar.jd2
-rw-r--r--docs/html/design/style/color.jd2
-rw-r--r--docs/html/design/style/iconography.jd2
-rw-r--r--docs/html/design/style/typography.jd4
-rw-r--r--docs/html/distribute/tools/promote/badges.jd4
-rw-r--r--docs/html/distribute/tools/promote/device-art.jd2
-rw-r--r--docs/html/preview/setup-sdk.jd2
-rw-r--r--docs/html/sdk/installing/studio.jd2
9 files changed, 23 insertions, 23 deletions
diff --git a/docs/html/design/downloads/index.jd b/docs/html/design/downloads/index.jd
index b83a2b0..74c41e5 100644
--- a/docs/html/design/downloads/index.jd
+++ b/docs/html/design/downloads/index.jd
@@ -26,13 +26,13 @@ available.</p>
<div class="layout-content-col span-4">
<p>
- <!--<a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Fireworks Stencil']);"
+ <!--<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Fireworks Stencil');"
href="{@docRoot}downloads/design/Android_Design_Fireworks_Stencil_20120814.png">Adobe&reg; Fireworks&reg; PNG Stencil</a>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Illustrator Stencil']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Illustrator Stencil');"
href="{@docRoot}downloads/design/Android_Design_Illustrator_Vectors_20120814.ai">Adobe&reg; Illustrator&reg; Stencil</a>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'OmniGraffle Stencil']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'OmniGraffle Stencil');"
href="{@docRoot}downloads/design/Android_Design_OmniGraffle_Stencil_20120814.graffle">Omni&reg; OmniGraffle&reg; Stencil</a>-->
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Photoshop Sources']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Photoshop Sources');"
href="{@docRoot}downloads/design/Android_Design_Stencils_Sources_20131106.zip">Adobe&reg; Photoshop&reg; Stencils and Sources</a>
</p>
@@ -64,7 +64,7 @@ modify to match your theme, plus source files.</p>
<div class="layout-content-col span-4">
<p>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Action Bar Icons']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Action Bar Icons');"
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Action Bar Icon Pack</a>
</p>
@@ -89,10 +89,10 @@ modify to match your theme, plus source files.</p>
</div>
<div class="layout-content-col span-4">
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Wear Toolkit AI']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Toolkit AI');"
href="{@docRoot}downloads/design/Android_Wear_Toolkit_20140722.ai">Adobe&reg; Illustrator&reg; Toolkit</a>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Wear Toolkit PDF']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Toolkit PDF');"
href="{@docRoot}downloads/design/Android_Wear_Toolkit_20140722.pdf">PDF Toolkit</a>
</div>
</div>
@@ -110,9 +110,9 @@ modify to match your theme, plus source files.</p>
</div>
<div class="layout-content-col span-4">
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Wear App Patterns AI']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear App Patterns AI');"
href="{@docRoot}downloads/design/Android_Wear_Patterns_20140722.ai">Adobe&reg; Illustrator&reg; App Patterns</a>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Wear App Patterns PDF']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear App Patterns PDF');"
href="{@docRoot}downloads/design/Android_Wear_Patterns_20140722.pdf">PDF App Patterns</a>
</div>
</div>
@@ -131,7 +131,7 @@ modify to match your theme, plus source files.</p>
</div>
<div class="layout-content-col span-4">
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Wear Sample PSD Mocks']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Sample PSD Mocks');"
href="{@docRoot}downloads/design/Android_Wear_Sample_Assets.zip">Adobe&reg; Photoshop&reg; mocks</a>
</div>
</div>
@@ -164,9 +164,9 @@ requirements of UI and high-resolution screens.</p>
<div class="layout-content-col span-4">
<p>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Roboto ZIP']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Roboto ZIP');"
href="{@docRoot}downloads/design/roboto-1.2.zip">Roboto</a>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Roboto Specemin Book']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Roboto Specemin Book');"
href="{@docRoot}downloads/design/Roboto_Specimen_Book_20131031.pdf">Specimen Book</a>
</p>
@@ -190,7 +190,7 @@ shade that can be used as a complement when needed.</p>
<div class="layout-content-col span-4">
<p>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Color Swatches']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Color Swatches');"
href="{@docRoot}downloads/design/Android_Design_Color_Swatches_20120229.zip">Color Swatches</a>
</p>
diff --git a/docs/html/design/patterns/actionbar.jd b/docs/html/design/patterns/actionbar.jd
index a1adbd3..f28df01 100644
--- a/docs/html/design/patterns/actionbar.jd
+++ b/docs/html/design/patterns/actionbar.jd
@@ -182,7 +182,7 @@ files for further customization.
</p>
<p>
-<a onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Action Bar Icons (@actionbar page)']);"
+<a onClick="ga('send', 'event', 'Design', 'Download', 'Action Bar Icons (@actionbar page)');"
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Download the Action Bar Icon Pack</a>
</p>
diff --git a/docs/html/design/style/color.jd b/docs/html/design/style/color.jd
index a7daacf..e00f6bc 100644
--- a/docs/html/design/style/color.jd
+++ b/docs/html/design/style/color.jd
@@ -115,7 +115,7 @@ between visual components. Note that red and green may be indistinguishable to c
<p>Blue is the standard accent color in Android's color palette. Each color has a corresponding darker
shade that can be used as a complement when needed.</p>
-<p><a onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Color Swatches (@color page)']);"
+<p><a onClick="ga('send', 'event', 'Design', 'Download', 'Color Swatches (@color page)');"
href="{@docRoot}downloads/design/Android_Design_Color_Swatches_20120229.zip">Download the swatches</a></p>
<img src="{@docRoot}design/media/color_spectrum.png">
diff --git a/docs/html/design/style/iconography.jd b/docs/html/design/style/iconography.jd
index ec7638d..ce7a9af 100644
--- a/docs/html/design/style/iconography.jd
+++ b/docs/html/design/style/iconography.jd
@@ -140,7 +140,7 @@ files for further customization.
</p>
<p>
-<a onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Action Bar Icons (@iconography page)']);"
+<a onClick="ga('send', 'event', 'Design', 'Download', 'Action Bar Icons (@iconography page)');"
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Download the Action Bar Icon Pack</a>
</p>
diff --git a/docs/html/design/style/typography.jd b/docs/html/design/style/typography.jd
index 6923f0b..a665097 100644
--- a/docs/html/design/style/typography.jd
+++ b/docs/html/design/style/typography.jd
@@ -12,7 +12,7 @@ page.metaDescription=How to use typography in your Android apps.
<div class="layout-content-col span-5">
<p>
- <a class="download-button" onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Roboto ZIP']);"
+ <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Roboto ZIP');"
href="{@docRoot}downloads/design/roboto-1.2.zip">Download Roboto</a>
</p>
@@ -30,7 +30,7 @@ variant in regular and bold weights, along with an italic style for each weight.
<img src="{@docRoot}design/media/typography_variants@2x.png" width="220">
-<p><a onClick="_gaq.push(['_trackEvent', 'Design', 'Download', 'Roboto Specimen Booke (@typography page)']);"
+<p><a onClick="ga('send', 'event', 'Design', 'Download', 'Roboto Specimen Book (@typography page)');"
href="{@docRoot}downloads/design/Roboto_Specimen_Book_20131031.pdf">Specimen Book</a></p>
</div>
diff --git a/docs/html/distribute/tools/promote/badges.jd b/docs/html/distribute/tools/promote/badges.jd
index e91a804..4bea8be 100644
--- a/docs/html/distribute/tools/promote/badges.jd
+++ b/docs/html/distribute/tools/promote/badges.jd
@@ -101,7 +101,7 @@ function buildButton(form) {
+ selectedValue + imageEnd);
// Send the event to Analytics
- _gaq.push(['_trackEvent', 'Distribute', 'Create Google Play Badge', 'Package ' + selectedValue]);
+ ga('send', 'event', 'Distribute', 'Create Google Play Badge', 'Package ' + selectedValue);
} else if (form["publisher"].value != "Example, Inc.") {
$("#preview").show();
var publisherName = escapeHTML(form["publisher"].value);
@@ -113,7 +113,7 @@ function buildButton(form) {
+ selectedValue + imageEnd);
// Send the event to Analytics
- _gaq.push(['_trackEvent', 'Distribute', 'Create Google Play Badge', 'Publisher ' + selectedValue]);
+ ga('send', 'event', 'Distribute', 'Create Google Play Badge', 'Publisher ' + selectedValue);
} else {
alert("Please enter your package name or publisher name");
}
diff --git a/docs/html/distribute/tools/promote/device-art.jd b/docs/html/distribute/tools/promote/device-art.jd
index a204ea1..1736060 100644
--- a/docs/html/distribute/tools/promote/device-art.jd
+++ b/docs/html/distribute/tools/promote/device-art.jd
@@ -428,7 +428,7 @@ feature image or screenshots for your Google Play app listing.</p>
g_currentImage = img;
createFrame();
// Send the event to Analytics
- _gaq.push(['_trackEvent', 'Distribute', 'Create Device Art', g_currentDevice.title]);
+ ga('send', 'event', 'Distribute', 'Create Device Art', g_currentDevice.title);
});
});
});
diff --git a/docs/html/preview/setup-sdk.jd b/docs/html/preview/setup-sdk.jd
index 7ad881a..46e4aa0 100644
--- a/docs/html/preview/setup-sdk.jd
+++ b/docs/html/preview/setup-sdk.jd
@@ -350,7 +350,7 @@ sure that you theme extends the material theme:</p>
if ($("input#agree").is(':checked')) {
$("#tos").fadeOut('fast');
$("#landing").fadeIn('fast');
- _gaq.push(['_trackEvent', 'L Preview', 'System Image', $("#downloadForRealz").html()]);
+ ga('send', 'event', 'L Preview', 'System Image', $("#downloadForRealz").html());
location.hash = "";
return true;
} else {
diff --git a/docs/html/sdk/installing/studio.jd b/docs/html/sdk/installing/studio.jd
index 776e312..233213e 100644
--- a/docs/html/sdk/installing/studio.jd
+++ b/docs/html/sdk/installing/studio.jd
@@ -697,7 +697,7 @@ for possible resolutions to known issues: <a href="http://tools.android.com/know
window.location = "/sdk/installing/index.html?pkg=studio";
}, 1000);
});
- _gaq.push(['_trackEvent', 'SDK', 'Android Studio', $("#downloadForRealz").html()]);
+ ga('send', 'event', 'SDK', 'Android Studio', $("#downloadForRealz").html());
return true;
} else {
$("label#agreeLabel,#bitpicker input").parent().stop().animate({color: "#258AAF"}, 200,