New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trackView() doesn't track #274
Comments
HI,
is still been supported Which version of google-analytics-plugin are you using?? |
The newest, installing it without version paramter.
|
can you post that error log too, please? |
The only issue I fixed for now is this:
Now the |
fix issue #274 startTrackerWithId() is using runInBackground
Please try with the v1.5.5 and let me know. |
This seems to be related to issue #168, please check that too |
It also doesn't work on android, so it's probably not an issue with the plist file (I'm also currently using build.phonegap). I'll give ngCordova another try (I used .26), but 1.5.5 gives me a build error:
|
Sorry, I don't have an IOS to compile this, I am committing the fix. I will need you help. |
cordova-plugin-google-analytics@1.5.6 |
Sadly ngCordova does crash on ios for me on first call of trackView (tested with 1.5.3 and newest ngCordova)
On Android I get an "invalid action". I cannot even guess what i'd be doing wrong by simply calling trackView. |
ok, test the v1.0.0 which doesn't have the new Campaign Measurement, this is been cause by the last code changes. |
Besides the ngCordova issue it comes down to trackView not getting the hit through. I also need the campaign measurement, so I can't use ngCordova anyways. What I personally need (and use on the web/mobile site): With viewName something like /controller/action/id.. a path basically. What i'm also wondering: When I pass a campaign measurement, why does it not appear in the parameters of the debug message? There are no errors besides the http status and invalid action on android (i guess -1 just says 'unknown error'). Event tracking works with any version. |
I also couldn't get pageviews to track on Android using v1.5.6 Events track fine, though. Switching to v1.0.0 didn't solve this problem. |
Using phonegap build, I have:
in my config.xml in my onDeviceReady, I have:
It loads the #signin page and I see the user pop up in real-time on GA. No page view though. |
@lavarith I am getting pageviews to track on Android using v1.5.6. Please use |
No such luck. Switched back to 1.5.6 and changed to:
|
I assume that I've got the 'Screen Name' wrong. I'm using a single page architecture with:
How do I determine the page name? or is that value anything you want? |
@lavarith You looked into the GA report for Screen section? |
I'm not sure where that is. I'm using a Web API key. Should I be using an app one? |
That was my problem and I feel ashamed :) There are still minor issues, like some devices getting tracked as "Desktop" (in mobile view...), but that doesn't matter much and is google's error. So maybe google is throwing a http status -1 if the api doesn't find a mobile view/property attached to the id? Proper documentation/error for this case would've saved me an entire day :( You can also just create a new data view instead of a new property. |
That worked! Thanks. @ventr1x In fairness, I found several blog posts saying that using the web version was what you're supposed to do. The README does say to use the "Google Analytics Mobile App property", but it may be worth clarifying this further in the directions. |
Both: You welcome, XD |
Hello All, we're usiung the plugin, have everything configured and we're using an mobile app property in our ionic/cordova app. The app is reporting in real time and tracking events, but we can't get it to track reccords in the remaketing audience we creates. Anyone could help us figure out what to do or where to look next? |
@Lyncros I think the remaketing audience (IDFA) need a lot of data before the report works properly. |
Adaugă `cordova-plugin-google-analytics@1.6.0` deoarece la momentul ăsta, ultima versiune, respectiv 1.7.4 are niște buguri de trackView. danwilson/google-analytics-plugin#274
Google seem to have changed it so that app and web views can be amalgamated. They say here:
I'm using this plugin to send TrackViews to a web property but they're not appearing. :( EDIT: In order to see these, you have to create a new "View" in Google Analytics for app data. At that point the live stream will show page views fine. |
Plugin is not tracking views.
Events are working fine.
web-app (ofc not using the plugin) is working fine.
google reports http status -1 (not always), which seems not to track.
Also if sometimes it's tracking at least the intial load, it never reports the correct active page or page title, it always takes it out of the title-tag (basically sends a hit without paramters).
I've also got a warning which i cant really place (also only sometimes):
Aug 8 10:57:12 iPhone *[2171] <Warning>: INFO: GoogleAnalytics 3.14 -[GAIAnalyticsPropertiesStore propertyRecordForTrackingId:] (GAIAnalyticsPropertiesStore.m:464): Record for tracking id UA-* not found
Current log was using the sample line with "Screen Title".
I tried multiple different variations.
My implementation is pretty basic atm as I had to ditch ngCordova for it (they're still using windows.analytics)
$window.ga.trackView('Screen Title');
The text was updated successfully, but these errors were encountered: