Open adigourdi opened 5 years ago
Are you using version 1.8.6? I'm also having this issue and have found that if I revert back to version 1.8.3 it works fine. Someone posted this issue https://github.com/danwilson/google-analytics-plugin/issues/536, but when I follow the steps in there my Android app just crashes when I launch it.
I'd be perfectly fine just sitting at version 1.8.3, however if I ever remove the android platform and re-add it then it automatically updates the plugin version and I'm going to run into this issue again. At this point I've been fighting with this for days. I'm probably just going to document this issue in my App's readme file and try to maintain version 1.8.3.
Seems like this 1.8.6 issue has been going on for awhile. No response. No updates so it looks like our best bet is probably to just downgrade and make sure Ionic doesn't automatically update it to 1.8.6. Rack another up one for Ionic Native. 👎
I believe fixing the version with "1.8.3"
(in package.json
and config.xml
) instead of "^1.8.3"
or "~1.8.3"
should do it
I will downgrade soon and get back to you with any updates
Ya that fixes it. But if you ever remove a platform using ionic cordova platform rm android`` and then re-add it using
ionic cordova platform add androidit updates the
package.jsonand
config.xml files so that they are again using
^1.8.6```. I'm not sure how to prevent that from happening.
Providing your config.xml, package.json and package-lock.json are all using 1.8.3, don't ever use 'ionic cordova platform add android', as like you say, it ignores the lock file and reapplies the ^ to package.json - use 'cordova platform add android' instead, and it will work correctly. Unless I'm mistaken, this has been the case for many moons, but no-one has commented on the ionic prefixed command being bugged.
@ryanhalley Thank you! I will try this.
thanks @selected-pixel-jameson. it working fine now.
I did something that adjusted my package file and boom. Issue is happening again. Would be great if this got fixed. Glad I test my builds before every release to make sure the analytics are working.
I'm trying to track app start (and other views) but nothing shows up on Google Analytics, and no errors are reported on the console
This is the code I'm using on
app.component.ts
The track start command should fire normally, with a dispatch of 3s, it should show up on analytics right away
Log result on console, no errors occured
For the record, Google Analytics Admin no longer allows registering mobile app tracking without firebase, so I created it as a website, and created a mobile view
I set the domain as
https://mobile.website.com
and tried setting the compaign url intrackView
ashttps://mobile.website.com/start
, and still nothingI checked the tracking ID, and it's correct
Info