| <?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}"> |
| <uiItem |
| row="0" col="0" |
| type="label" |
| text="Account:"/> |
| |
| <uiItem |
| row="0" col="1" |
| type="button" |
| text="Login to Google" |
| action="${google.login()}"/> |
| </uiGrid> |
| |
| <uiGrid colDefinitions="100px,Fit,Fit" visible="${google.analytics.hasNoAccount}"> |
| <uiItem |
| row="0" col="0" |
| type="label" |
| text="Accounts:"/> |
| |
| <uiItem |
| row="0" col="1" |
| type="button" |
| text="Create Analytics Project" |
| action="${google.analytics.createProject()}"/> |
| |
| <uiItem |
| row="0" col="2" |
| type="button" |
| text="Refresh" |
| action="${google.analytics.refreshProjects()}"/> |
| </uiGrid> |
| |
| |
| <uiGrid colDefinitions="100px,250px" visible="${google.analytics.hasAccount}"> |
| <uiItem |
| row="0" col="0" |
| type="label" |
| text="Accounts:"/> |
| |
| <uiItem |
| row="0" col="1" |
| type="pulldown" |
| list="${google.analytics.accounts}" |
| index="${google.analytics.accountIndex}"/> |
| |
| <uiItem |
| row="1" col="0" |
| type="label" |
| text="Properties:"/> |
| |
| <uiItem |
| row="1" col="1" |
| type="pulldown" |
| list="${google.analytics.properties}" |
| index="${google.analytics.propertyIndex}"/> |
| </uiGrid> |
| |
| <uiGrid colDefinitions="100px,200px"> |
| <uiItem |
| row="0" col="0" |
| type="label" |
| text="Property Id:"/> |
| |
| <uiItem |
| row="0" col="1" |
| type="input" |
| text="${google.analytics.propertyId}" |
| enabled="${google.analytics.canEditPropertyId}"/> |
| </uiGrid> |
| |
| <uiGrid colDefinitions="100px,Fit,Fit"> |
| <uiItem |
| col="1" |
| type="checkbox" |
| text="Enable Advertising ID" |
| checked="${google.analytics.adsEnabled}"/> |
| |
| <uiItem |
| col="2" |
| type="link" |
| text="What's this?" |
| url="https://developers.google.com/analytics/devguides/collection/android/v4/#ad-id"/> |
| </uiGrid> |
| </service> |