From fe3057f9135b2c0307572e17954f3ac43a12d4ce Mon Sep 17 00:00:00 2001
From: Scott Main
Date: Wed, 3 Oct 2012 15:23:06 -0700
Subject: add analytics event tracking for Design downloads, SDK downloads,
Badges and Device art.
Change-Id: I479b0059678d31fb993f6ddc68f5a7ef5ee26ecc
---
docs/html/design/downloads/index.jd | 27 +++++++++++++++--------
docs/html/design/patterns/actionbar.jd | 3 ++-
docs/html/design/style/color.jd | 3 ++-
docs/html/design/style/iconography.jd | 3 ++-
docs/html/design/style/typography.jd | 6 +++--
docs/html/distribute/googleplay/promote/badges.jd | 10 +++++++--
docs/html/distribute/promote/device-art.jd | 2 ++
7 files changed, 38 insertions(+), 16 deletions(-)
(limited to 'docs/html')
diff --git a/docs/html/design/downloads/index.jd b/docs/html/design/downloads/index.jd
index 5f78aea..00f4467 100644
--- a/docs/html/design/downloads/index.jd
+++ b/docs/html/design/downloads/index.jd
@@ -12,7 +12,8 @@ You can also download individual files listed below.
@@ -37,10 +38,14 @@ available.
@@ -66,7 +71,8 @@ modify to match your theme, plus source files.
@@ -91,8 +97,10 @@ requirements of UI and high-resolution screens.
@@ -115,7 +123,8 @@ shade that can be used as a complement when needed.
diff --git a/docs/html/design/patterns/actionbar.jd b/docs/html/design/patterns/actionbar.jd
index 5484ba3..353cee6 100644
--- a/docs/html/design/patterns/actionbar.jd
+++ b/docs/html/design/patterns/actionbar.jd
@@ -293,7 +293,8 @@ files for further customization.
-Download the Action Bar Icon Pack
+Download the Action Bar Icon Pack
diff --git a/docs/html/design/style/color.jd b/docs/html/design/style/color.jd
index 5be34ac..a7daacf 100644
--- a/docs/html/design/style/color.jd
+++ b/docs/html/design/style/color.jd
@@ -115,7 +115,8 @@ between visual components. Note that red and green may be indistinguishable to c
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.
-Download the swatches
+Download the swatches
diff --git a/docs/html/design/style/iconography.jd b/docs/html/design/style/iconography.jd
index 78e8680..76f4aa4 100644
--- a/docs/html/design/style/iconography.jd
+++ b/docs/html/design/style/iconography.jd
@@ -110,7 +110,8 @@ files for further customization.
-Download the Action Bar Icon Pack
+Download the Action Bar Icon Pack
diff --git a/docs/html/design/style/typography.jd b/docs/html/design/style/typography.jd
index f58c876..427b8c6 100644
--- a/docs/html/design/style/typography.jd
+++ b/docs/html/design/style/typography.jd
@@ -18,8 +18,10 @@ italic weights by default.
-Download Roboto
-Specimen Book
+Download Roboto
+Specimen Book
diff --git a/docs/html/distribute/googleplay/promote/badges.jd b/docs/html/distribute/googleplay/promote/badges.jd
index d6f15fb..806f92f 100644
--- a/docs/html/distribute/googleplay/promote/badges.jd
+++ b/docs/html/distribute/googleplay/promote/badges.jd
@@ -88,6 +88,9 @@ function buildButton(form) {
$("#button-preview").html(linkStart + "apps/details?id=" + form["package"].value
+ imageStart + altText + imageSrc
+ selectedValue + imageEnd);
+
+ // Send the event to Analytics
+ _gaq.push(['_trackEvent', 'Distribute', 'Create Google Play Badge', 'Package ' + selectedValue]);
} else if (form["publisher"].value != "Example, Inc.") {
$("#preview").show();
$("#snippet").show().html(linkStartCode + "search?q=pub:" + form["publisher"].value
@@ -96,6 +99,9 @@ function buildButton(form) {
$("#button-preview").html(linkStart + "search?q=pub:" + form["publisher"].value
+ imageStart + altText + imageSrc
+ selectedValue + imageEnd);
+
+ // Send the event to Analytics
+ _gaq.push(['_trackEvent', 'Distribute', 'Create Google Play Badge', 'Publisher ' + selectedValue]);
} else {
alert("Please enter your package name or publisher name");
}
@@ -199,8 +205,8 @@ alt="Get it on Google Play (small)" />
alt="Get it on Google Play (large)" />
-
+
diff --git a/docs/html/distribute/promote/device-art.jd b/docs/html/distribute/promote/device-art.jd
index af36625..93f772a 100644
--- a/docs/html/distribute/promote/device-art.jd
+++ b/docs/html/distribute/promote/device-art.jd
@@ -299,6 +299,8 @@ feature image or screenshots for your Google Play app listing.
g_currentFilename = data.name;
g_currentImage = img;
createFrame();
+ // Send the event to Analytics
+ _gaq.push(['_trackEvent', 'Distribute', 'Create Device Art', g_currentDevice.title]);
});
});
});
--
cgit v1.1