Comments (9)
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.
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.
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.
I am getting the same thing.
from google-analytics-plugin.
A complete reinstall of the plugin and platforms fixed this.
from google-analytics-plugin.
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.
I was having a similar issue. Completely removing the plugins and platforms through CLI (then reinstalling them) fixed it.
from google-analytics-plugin.
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.
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)
- Not able to see any results in google analytics console HOT 2
- AJAX Single Pages not work
- Conflict error between cordova-plugin-google-analytics and cordova-plugin-geolocation. HOT 1
- Configuring play-services version on capacitor HOT 2
- Does this plugin work with the new Google Analytics 4? HOT 27
- Best practice suggestion, Change the @ connection to be an & instead. HOT 1
- Google Analytics and iOS 14.5 ATT requirements HOT 2
- Target has transitive dependencies that include statically linked binaries HOT 7
- Is it possible to create multiple instance for Google Analytics in iOS HOT 1
- Facing build error on Apple M1 Pro chip Mac Xcode, while choosing iOS Simulator. Issue only on build for simulator's, working fine for real devices. HOT 4
- Android startTrackerWithId call returns "" from nativeApiProvider.get().exec(bridgeSecret, service, action, callbackId, argsJson)
- iOS - Error while installing the plugin HOT 2
- Manifest merger failed : android:exported needs to be explicitly specified for element <receiver#com.google.android.gms.analytics.AnalyticsReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined HOT 2
- Android Build Failed HOT 13
- targeting Android 31 cause crash in some phones HOT 3
- Which plugin to use GA4 ? HOT 8
- Android 12 error Targeting S+ HOT 12
- Error about non-public selectors when validating HOT 2
- 1.9.3 release needed HOT 17
- Plugging getting error for Android 12 due to :capacitor-cordova-android-plugins:processReleaseManifest execution failed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-analytics-plugin.