OLD | NEW |
1 <link rel="import" href="../polymer/polymer.html"> | 1 <link rel="import" href="../polymer/polymer.html"> |
2 <link rel="import" href="google-analytics-loader.html"> | 2 <link rel="import" href="google-analytics-loader.html"> |
3 | 3 |
4 <!-- | 4 <!-- |
5 Element for querying the Google Analytics Core Reporting API. | 5 Element for querying the Google Analytics Core Reporting API. |
6 | 6 |
7 ##### Example | 7 ##### Example |
8 | 8 |
9 <google-analytics-query | 9 <google-analytics-query |
10 ids="ga:1174" | 10 ids="ga:1174" |
11 metrics="ga:sessions" | 11 metrics="ga:sessions" |
12 dimensions="ga:country" | 12 dimensions="ga:country" |
13 sort="-ga:sessions" | 13 sort="-ga:sessions" |
14 max-results="5"> | 14 max-results="5"> |
15 </google-analytics-query> | 15 </google-analytics-query> |
16 | 16 |
17 @element google-analytics-query | 17 @element google-analytics-query |
18 @extends google-analytics-base | 18 @demo |
19 @homepage https://googlewebcomponents.github.io/google-analytics | 19 @homepage https://googlewebcomponents.github.io/google-analytics |
20 --> | 20 --> |
21 | 21 |
22 <dom-module id="google-analytics-query"> | 22 <dom-module id="google-analytics-query"> |
23 | 23 |
24 <template> | 24 <template> |
25 <google-analytics-loader all-ready="{{setupReady}}"></google-analytics-loade
r> | 25 <google-analytics-loader all-ready="{{setupReady}}"></google-analytics-loade
r> |
26 </template> | 26 </template> |
27 | 27 |
28 </dom-module> | 28 </dom-module> |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 get _hasRequiredParams() { | 380 get _hasRequiredParams() { |
381 return !!(this.ids && this.metrics && this.startDate && this.endDate); | 381 return !!(this.ids && this.metrics && this.startDate && this.endDate); |
382 }, | 382 }, |
383 | 383 |
384 }); | 384 }); |
385 | 385 |
386 }()); | 386 }()); |
387 | 387 |
388 </script> | 388 </script> |
OLD | NEW |