blob: ea199e168cc08ce3d2d678e628c14cdcfde64850 [file] [log] [blame]
<?xml version="1.0"?>
<service
format="1"
category="Analytics"
name="Google Analytics"
description="Lets you measure user interactions with your app across various devices and environments."
learnMore="https://developers.google.com/analytics/"
icon="logo_analytics_color_2x_web_32dp.png"
execute="recipe.xml">
<uiGrid colDefinitions="100px,200px" visible="${google.isLoggedOut}">
<uiLabel
row="0" col="0"
text="Account:"/>
<uiButton
row="0" col="1"
text="Login to Google"
action="${google.login()}"/>
</uiGrid>
<uiGrid colDefinitions="100px,Fit,Fit" visible="${google.analytics.hasNoAccount}">
<uiLabel
row="0" col="0"
text="Accounts:"/>
<uiButton
row="0" col="1"
text="Create Analytics Project"
action="${google.analytics.createProject()}"/>
<uiButton
row="0" col="2"
text="Refresh"
action="${google.analytics.refreshProjects()}"/>
</uiGrid>
<uiGrid colDefinitions="100px,250px" visible="${google.analytics.hasAccount}">
<uiLabel
row="0" col="0"
text="Accounts:"/>
<uiPulldown
row="0" col="1"
list="${google.analytics.accounts}"
index="${google.analytics.accountIndex}"/>
<uiLabel
row="1" col="0"
text="Properties:"/>
<uiPulldown
row="1" col="1"
list="${google.analytics.properties}"
index="${google.analytics.propertyIndex}"/>
</uiGrid>
<uiGrid colDefinitions="100px,200px">
<uiLabel
row="0" col="0"
text="Property Id:"/>
<uiInput
row="0" col="1"
text="${google.analytics.propertyId}"
enabled="${google.analytics.canEditPropertyId}"/>
</uiGrid>
<uiGrid colDefinitions="100px,Fit,Fit">
<uiCheckbox
col="1"
text="Enable Advertising ID"
checked="${google.analytics.adsEnabled}"/>
<uiLink
col="2"
text="What's this?"
url="https://developers.google.com/analytics/devguides/collection/android/v4/#ad-id"/>
</uiGrid>
</service>