Skip to content

Commit 5ddb11c

Browse files
committed
add google analytics
1 parent ff274d9 commit 5ddb11c

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ There is no official release yet, but you can already use a snapshot version
6262
[![Arcbees.com](http://arcbees-ads.appspot.com/ad.png)](http://arcbees.com)
6363

6464
[![IntelliJ](https://lh6.googleusercontent.com/--QIIJfKrjSk/UJJ6X-UohII/AAAAAAAAAVM/cOW7EjnH778/s800/banner_IDEA.png)](http://www.jetbrains.com/idea/index.html)
65+
66+
[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/361ac462e4947df21a821a3fbbbc3367 "githalytics.com")](http://githalytics.com/ArcBees/gwtquery-elastic-plugin)

elastic-sample/src/main/java/com/arcbees/gquery/elastic/htmlsample/public/ElasticLayoutSample.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,5 +233,17 @@
233233
laborum
234234
</div>
235235
</div>
236+
<script>
237+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
238+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
239+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
240+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
241+
242+
ga('create', 'UA-43120417-20', 'auto', {'allowLinker': true});
243+
ga('require', 'linker');
244+
ga('linker:autoLink', ['github.com'] );
245+
ga('send', 'pageview');
246+
247+
</script>
236248
</body>
237249
</html>

elastic-sample/src/main/java/com/arcbees/gquery/elastic/widgetsample/public/WidgetSample.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,17 @@
1616
panel and are automatically laid out by the ElasticHtmlPanel. Resize the window to see how the plugin recompute the layout.
1717
</header>
1818
<section id="main"></section>
19+
<script>
20+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
21+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
22+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
23+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
24+
25+
ga('create', 'UA-43120417-20', 'auto', {'allowLinker': true});
26+
ga('require', 'linker');
27+
ga('linker:autoLink', ['github.com'] );
28+
ga('send', 'pageview');
29+
30+
</script>
1931
</body>
2032
</html>

0 commit comments

Comments
 (0)