Adobe PhoneGap Build's Plugin for Google Analytics is now available on PhoneGap Build!
Blog post: http://build.phonegap.com/blog/analyt...
Usage instructions: https://build.phonegap.com/docs/plugins
Full JavaScript API: https://github.com/bobeast/GAPlugin/b...
More plugins in the pipe!
Blog post: http://build.phonegap.com/blog/analyt...
Usage instructions: https://build.phonegap.com/docs/plugins
Full JavaScript API: https://github.com/bobeast/GAPlugin/b...
More plugins in the pipe!
ryan, Developer
- 1538 Posts
- 132 Reply Likes
- stoked
Posted 8 years ago
- 12 Posts
- 0 Reply Likes
- 7 Posts
- 0 Reply Likes
thanks mate...Are all phonegap plugin supported by cloud Build also.
now pls start working for Push notification plugin..dont wait for Christmas. our client needed it 27 Nov. He is aiming bazooka at us.
now pls start working for Push notification plugin..dont wait for Christmas. our client needed it 27 Nov. He is aiming bazooka at us.
- 33 Posts
- 0 Reply Likes
Has anyone been able successfully implement the GA plugin for build?
- 8261 Posts
- 263 Reply Likes
Hi Sean
Try this:
https://github.com/amirudin/pgb-analytic
Remember to change GA tracking id with yours (index.html at line 24)
Try this:
https://github.com/amirudin/pgb-analytic
Remember to change GA tracking id with yours (index.html at line 24)
- 11 Posts
- 0 Reply Likes
Hello,
Please, can someone show me how we can implement the GA with PhoneGap Build and link it to my Google Analytics account?
Thank you.
Please, can someone show me how we can implement the GA with PhoneGap Build and link it to my Google Analytics account?
Thank you.
- 8261 Posts
- 263 Reply Likes
Hi Sean
Try this:
https://github.com/amirudin/pgb-analytic
Remember to change GA tracking id with yours (index.html at line 24)
Try this:
https://github.com/amirudin/pgb-analytic
Remember to change GA tracking id with yours (index.html at line 24)
- 1 Post
- 0 Reply Likes
I've added the PG plugin using PGB to my app. I've even tried alerting on track success and plugin init success. Nothing gets reported back to GA however.
I've even waited a day to see if it updates and nothing at all gets posted back to Google Analytics. Does anyone know how to implement the plugin succesfully? or does anyone have this confirmed as working with a PG2.0 app using PGB?
I've even waited a day to see if it updates and nothing at all gets posted back to Google Analytics. Does anyone know how to implement the plugin succesfully? or does anyone have this confirmed as working with a PG2.0 app using PGB?
- 7 Posts
- 0 Reply Likes
I am having same issue Android
on unction goingAway() it shows JSON ERROR. while calling Button handler etc Successhandler is called always but as soon as .I exit the GA error come of JSON.
Has anyone got this working. I have alson installed Google anaytic SDK to my android enviourment.
on unction goingAway() it shows JSON ERROR. while calling Button handler etc Successhandler is called always but as soon as .I exit the GA error come of JSON.
Has anyone got this working. I have alson installed Google anaytic SDK to my android enviourment.
- 174 Posts
- 14 Reply Likes
I think the goingAway() issue is unrelated to whether data shows up in your GA dashboard. I would first comment that out so you are not calling unregister. Also, you should not need to install the Google analytic SDK to get this to work, unless you are trying to run it on the Android emulator.
Finally, check, double, and triple check, that you are passing the correct tracking id in your call to register which matches your dashboard account where you are trying to see the results.
If none of this gets you there, it would be helpful to see what messages are getting posted in your Eclipse or Xcode log, when run from an ide.
Finally, check, double, and triple check, that you are passing the correct tracking id in your call to register which matches your dashboard account where you are trying to see the results.
If none of this gets you there, it would be helpful to see what messages are getting posted in your Eclipse or Xcode log, when run from an ide.
- 214 Posts
- 7 Reply Likes
Why Analytics is not anymore in Usage instructions: https://build.phonegap.com/docs/plugins
??
Did you stop Analytics compatibility yesterday ?
Perhaps it is a relapse with issues of server build android ?
??
Did you stop Analytics compatibility yesterday ?
Perhaps it is a relapse with issues of server build android ?
- 8261 Posts
- 263 Reply Likes
Hi Yann
You do you mean with Analytics compatibility? Did you not able to use analytics on 2.0.0 and above?
-Amir
You do you mean with Analytics compatibility? Did you not able to use analytics on 2.0.0 and above?
-Amir
- 214 Posts
- 7 Reply Likes
new problem... this error :
cannot read property 'gaPlugin' of undefined
the code is
script src=GAPlugin.js
try{
ga=window.plugins.gaPlugin;
ga.init(fempty,fempty,"UA-XXXXXXX-1",10);
} catch (ex) { console.log(ex.message); alert(ex.message); }
cannot read property 'gaPlugin' of undefined
the code is
script src=GAPlugin.js
try{
ga=window.plugins.gaPlugin;
ga.init(fempty,fempty,"UA-XXXXXXX-1",10);
} catch (ex) { console.log(ex.message); alert(ex.message); }
- 214 Posts
- 7 Reply Likes
ok, it's working if I use the name var gaPlugin instead of ga
and if I not set a "var gaPlugin" in index.html
and if I not set a "var gaPlugin" in index.html
- 174 Posts
- 14 Reply Likes
I just looked in https://build.phonegap.com/docs/plugins, and the Analytics description is still there. Browser cache issue?
- 214 Posts
- 7 Reply Likes
- 174 Posts
- 14 Reply Likes
- 6 Posts
- 0 Reply Likes
I am using build phonegap for a project, and am now trying to add google analytics to it.
My project has this code
which fails with an exception that says window.plugins is 'undefined'
My config.xml has
My index.html has
What am I doing wrong?
My project has this code
function onDeviceReady() {
gaPlugin = window.plugins.gaPlugin;
gaPlugin.init(gaSuccess, gaError, "UA-XXXXXXX-X", 10);
}
which fails with an exception that says window.plugins is 'undefined'
My config.xml has
<gap:plugin name="GAPlugin" />
My index.html has
<script src="phonegap.js"></script>
<script src="GAPlugin.js"></script>
What am I doing wrong?
- 6 Posts
- 0 Reply Likes
<gap:plugin name="GAPlugin" />
worked for me.
These 2 things helped me
- Rearranged references to js files
- document.addEventListener("deviceready", onDeviceReady, false); (changed to false instead of true)
- 1 Post
- 0 Reply Likes
I am having the same problem, I have completed all of the steps above.
Has anyone figured out how to get this working?
Has anyone figured out how to get this working?
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers





ryan, Developer
Xxp2
ryan, Developer
I don't know if I would say its 'official' -- but that is the repository where the community has contributed numerous open-source PhoneGap plugins.
Xxp2
ryan, Developer