# Google Analytics without Plugins

**URL:** <https://forum.ionicframework.com/t/google-analytics-without-plugins/13200>\
**Category:** ionic-v1\
**Created:** [November 25, 2014, 3:36pm UTC](https://forum.ionicframework.com/t/google-analytics-without-plugins/13200 "2014-11-25T15:36:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rroques](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rroques/32/71133_2.png) [@rroques](https://forum.ionicframework.com/u/rroques)\
**Post date:** [November 25, 2014, 3:36pm UTC](https://forum.ionicframework.com/t/google-analytics-without-plugins/13200/1 "2014-11-25T15:36:07Z")

</div>

Hi,

I’m trying to user Google Analytics to track the usage of an app I’m developing, this app needs to run at all the 3 platforms, so I cannot user any of the plugins available because neither of them support WP8. I’m trying to use pure JS to call the GA APIs but I’m not receiving anything at the server.

The `<script>` to create GA, at this moment it’s inserted in the index.html file, but I’ve also tried to call it from app.js on `$ionicPlatform.ready` function and nothing appears in the GA page.

Did you guys ever faced a problem like that? Here should I call the `google_analytics('create', 'UA-XXXXX-Y', 'auto');`, index.html, app.js, custom angularjs service?

Thanks,  
rroques

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [November 25, 2014, 3:45pm UTC](https://forum.ionicframework.com/t/google-analytics-without-plugins/13200/2 "2014-11-25T15:45:28Z")

</div>

Maybe something in this post will help you: [GaPlugin with Ionic](http://forum.ionicframework.com/t/gaplugin-with-ionic/12273). Please see my comments on using ga.js. 😄
