Giter Club home page Giter Club logo

Comments (9)

waded avatar waded commented on June 2, 2024

Both analytics.trackView() and analytics.trackEvent() are working for me in an app built with Cordova CLI 3.5.0-0.2.6. If you can be more specific perhaps I can help.

from google-analytics-plugin.

iRealNirmal avatar iRealNirmal commented on June 2, 2024

I have written analytics.startTrackerWithId('id')

do i also have to write anything more like trackview or any other event.

And do I have to add jar files as library ?

from google-analytics-plugin.

Willshaw avatar Willshaw commented on June 2, 2024

I'm getting console errors on the first run of the app after installing the plugin:

For Android:

07-29 09:00:05.808: W/System.err(25371): java.lang.ClassNotFoundException: com.danielcwilson.plugins.analytics.UniversalAnalyticsPlugin
07-29 09:00:06.123: W/System.err(25371): Caused by: java.lang.NoClassDefFoundError: com/danielcwilson/plugins/analytics/UniversalAnalyticsPlugin
07-29 09:00:06.128: W/System.err(25371): Caused by: java.lang.ClassNotFoundException: com.danielcwilson.plugins.analytics.UniversalAnalyticsPlugin
07-29 09:00:06.133: I/System.out(25371): Error adding plugin com.danielcwilson.plugins.analytics.UniversalAnalyticsPlugin.

For iOS:

2014-07-29 08:55:40.405 Socialite[1347:60b] CDVPlugin class UniversalAnalyticsPlugin (pluginName: UniversalAnalytics) does not exist.
2014-07-29 08:55:40.406 Socialite[1347:60b] ERROR: Plugin 'UniversalAnalytics' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-07-29 08:55:40.407 Socialite[1347:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "INVALID",
  "UniversalAnalytics",
  "trackView",
  [
    "CatalogueView"
  ]
]

I installed with:

cordova plugin add https://github.com/danwilson/google-analytics-plugin.git

And I can see it listed:

$ cordova plugin list
com.danielcwilson.plugins.googleanalytics 0.6.0 "Google Universal Analytics Plugin"

I've got this in the deviceReady (with my correct GA code in):

analytics.startTrackerWithId('UA-XXXXXX-X');

Then I'm using trackView and trackEvent through the app.

This is Cordova 3.5.0 and the app running on an iPhone 5 with iOS7 and a Galaxy S2 with Android 4.1.2

from google-analytics-plugin.

MarcGodard avatar MarcGodard commented on June 2, 2024

I am getting the same thing.

from google-analytics-plugin.

MarcGodard avatar MarcGodard commented on June 2, 2024

A complete reinstall of the plugin and platforms fixed this.

from google-analytics-plugin.

iRealNirmal avatar iRealNirmal commented on June 2, 2024

I just solved it with trackview.
But your case is different, just try to uninstall and re-install with cli,command, if it was not installed properly then you will even not be able to uninstall it, in that case just write cli command of install.

from google-analytics-plugin.

macfam avatar macfam commented on June 2, 2024

I was having a similar issue. Completely removing the plugins and platforms through CLI (then reinstalling them) fixed it.

from google-analytics-plugin.

iRealNirmal avatar iRealNirmal commented on June 2, 2024

yes thanks, I did the same sorry forgot about this ticket. Closing this
issue.

On Mon, Nov 3, 2014 at 4:08 AM, macfam [email protected] wrote:

I was having a similar issue. Completely removing the plugins and
platforms through CLI (then reinstalling them) fixed it.


Reply to this email directly or view it on GitHub
#35 (comment)
.

With Regards,
Nirmal Bhagwani.

from google-analytics-plugin.

Fabii23 avatar Fabii23 commented on June 2, 2024

Runnig into this issue: java.lang.ClassNotFoundException: com.danielcwilson.plugins.analytics.UniversalAnalyticsPlugin . I don't want to do a complete re-install of the android platform, is there another fix ?

from google-analytics-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.