How to use Google Analytics with Phonegap without a plugin?

后端 未结 14 2068
北海茫月
北海茫月 2020-11-28 03:03

I am making an app and I want to get analytics from the users. I tried to use the Phonegap Plugin, but I didn\'t have any luck trying to implement it.

I was wonderin

14条回答
  •  情书的邮戳
    2020-11-28 03:31

    NOTE: Google Analytics Client Traking ID generated for mobile platform only supports for IOS and Android.So if you want to Track your google analytics,Be Sure you have Created it for website. Only Tracking ID for website work with phone gap all platform apps. You can then Simply download GALocalStorage from below link and then place it in you js folder under www folder

    www
     |__
        js
          |__
              GALocalStorage.js
    

    Then write the below code under your < head> tag,and its start showing Realtime active Users in your dashboards.

    https://github.com/ggendre/GALocalStorage

           
    

提交回复
热议问题