update analytics event tracking calls to use new script
bug: 16331906 Change-Id: I4cd8f08509cfb887a424696553404ba3c635151b
This commit is contained in:
@ -26,13 +26,13 @@ available.</p>
|
|||||||
<div class="layout-content-col span-4">
|
<div class="layout-content-col span-4">
|
||||||
|
|
||||||
<p>
|
<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® Fireworks® PNG Stencil</a>
|
href="{@docRoot}downloads/design/Android_Design_Fireworks_Stencil_20120814.png">Adobe® Fireworks® 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® Illustrator® Stencil</a>
|
href="{@docRoot}downloads/design/Android_Design_Illustrator_Vectors_20120814.ai">Adobe® Illustrator® 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® OmniGraffle® Stencil</a>-->
|
href="{@docRoot}downloads/design/Android_Design_OmniGraffle_Stencil_20120814.graffle">Omni® OmniGraffle® 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® Photoshop® Stencils and Sources</a>
|
href="{@docRoot}downloads/design/Android_Design_Stencils_Sources_20131106.zip">Adobe® Photoshop® Stencils and Sources</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ modify to match your theme, plus source files.</p>
|
|||||||
<div class="layout-content-col span-4">
|
<div class="layout-content-col span-4">
|
||||||
|
|
||||||
<p>
|
<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>
|
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Action Bar Icon Pack</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -89,10 +89,10 @@ modify to match your theme, plus source files.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-content-col span-4">
|
<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® Illustrator® Toolkit</a>
|
href="{@docRoot}downloads/design/Android_Wear_Toolkit_20140722.ai">Adobe® Illustrator® 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>
|
href="{@docRoot}downloads/design/Android_Wear_Toolkit_20140722.pdf">PDF Toolkit</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -110,9 +110,9 @@ modify to match your theme, plus source files.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-content-col span-4">
|
<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® Illustrator® App Patterns</a>
|
href="{@docRoot}downloads/design/Android_Wear_Patterns_20140722.ai">Adobe® Illustrator® 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>
|
href="{@docRoot}downloads/design/Android_Wear_Patterns_20140722.pdf">PDF App Patterns</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -131,7 +131,7 @@ modify to match your theme, plus source files.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-content-col span-4">
|
<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® Photoshop® mocks</a>
|
href="{@docRoot}downloads/design/Android_Wear_Sample_Assets.zip">Adobe® Photoshop® mocks</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -164,9 +164,9 @@ requirements of UI and high-resolution screens.</p>
|
|||||||
<div class="layout-content-col span-4">
|
<div class="layout-content-col span-4">
|
||||||
|
|
||||||
<p>
|
<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>
|
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>
|
href="{@docRoot}downloads/design/Roboto_Specimen_Book_20131031.pdf">Specimen Book</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ shade that can be used as a complement when needed.</p>
|
|||||||
<div class="layout-content-col span-4">
|
<div class="layout-content-col span-4">
|
||||||
|
|
||||||
<p>
|
<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>
|
href="{@docRoot}downloads/design/Android_Design_Color_Swatches_20120229.zip">Color Swatches</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ files for further customization.
|
|||||||
</p>
|
</p>
|
||||||
<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>
|
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Download the Action Bar Icon Pack</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
@ -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
|
<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>
|
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>
|
href="{@docRoot}downloads/design/Android_Design_Color_Swatches_20120229.zip">Download the swatches</a></p>
|
||||||
|
|
||||||
<img src="{@docRoot}design/media/color_spectrum.png">
|
<img src="{@docRoot}design/media/color_spectrum.png">
|
||||||
|
@ -140,7 +140,7 @@ files for further customization.
|
|||||||
|
|
||||||
</p>
|
</p>
|
||||||
<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>
|
href="{@docRoot}downloads/design/Android_Design_Icons_20131106.zip">Download the Action Bar Icon Pack</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ page.metaDescription=How to use typography in your Android apps.
|
|||||||
<div class="layout-content-col span-5">
|
<div class="layout-content-col span-5">
|
||||||
|
|
||||||
<p>
|
<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>
|
href="{@docRoot}downloads/design/roboto-1.2.zip">Download Roboto</a>
|
||||||
</p>
|
</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">
|
<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>
|
href="{@docRoot}downloads/design/Roboto_Specimen_Book_20131031.pdf">Specimen Book</a></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -101,7 +101,7 @@ function buildButton(form) {
|
|||||||
+ selectedValue + imageEnd);
|
+ selectedValue + imageEnd);
|
||||||
|
|
||||||
// Send the event to Analytics
|
// 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.") {
|
} else if (form["publisher"].value != "Example, Inc.") {
|
||||||
$("#preview").show();
|
$("#preview").show();
|
||||||
var publisherName = escapeHTML(form["publisher"].value);
|
var publisherName = escapeHTML(form["publisher"].value);
|
||||||
@ -113,7 +113,7 @@ function buildButton(form) {
|
|||||||
+ selectedValue + imageEnd);
|
+ selectedValue + imageEnd);
|
||||||
|
|
||||||
// Send the event to Analytics
|
// 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 {
|
} else {
|
||||||
alert("Please enter your package name or publisher name");
|
alert("Please enter your package name or publisher name");
|
||||||
}
|
}
|
||||||
|
@ -428,7 +428,7 @@ feature image or screenshots for your Google Play app listing.</p>
|
|||||||
g_currentImage = img;
|
g_currentImage = img;
|
||||||
createFrame();
|
createFrame();
|
||||||
// Send the event to Analytics
|
// 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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -350,7 +350,7 @@ sure that you theme extends the material theme:</p>
|
|||||||
if ($("input#agree").is(':checked')) {
|
if ($("input#agree").is(':checked')) {
|
||||||
$("#tos").fadeOut('fast');
|
$("#tos").fadeOut('fast');
|
||||||
$("#landing").fadeIn('fast');
|
$("#landing").fadeIn('fast');
|
||||||
_gaq.push(['_trackEvent', 'L Preview', 'System Image', $("#downloadForRealz").html()]);
|
ga('send', 'event', 'L Preview', 'System Image', $("#downloadForRealz").html());
|
||||||
location.hash = "";
|
location.hash = "";
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -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";
|
window.location = "/sdk/installing/index.html?pkg=studio";
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
_gaq.push(['_trackEvent', 'SDK', 'Android Studio', $("#downloadForRealz").html()]);
|
ga('send', 'event', 'SDK', 'Android Studio', $("#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