google-analytics-plugin icon indicating copy to clipboard operation
google-analytics-plugin copied to clipboard

Unable to configure this plugin with the new Google Analytics dashboard.

Open nikmartin opened this issue 7 years ago • 17 comments

When you go to Google Analytics to create a new mobile app property, yoiu are now forwarded to Firebase with the notice that Firebase Analytics replaces Google Analytics for mobile. Does this mean we should just create a new 'web property' for use with this plugin instead of a new 'mobile property'?

nikmartin avatar May 20 '17 18:05 nikmartin

The answer to the question is NO, because this plug-ins only works in the Google Analytics for mobile (except browser platform.) So with this new change; I think should be able to see the data in the Firebase; I didn't try this myself because it is a new change. If the portal doesn't works then it means that it will only works to receive data only from with the Firebase API(which I think it shouldn't be the case).

victorsosa avatar May 20 '17 19:05 victorsosa

To use this, Create a property for Web and create views for mobile app. It works like a charm.

nsoojin avatar May 22 '17 03:05 nsoojin

@nsoojin Can you explain your solution? Where do you create views for mobile app? Thanks!

r12r avatar Jun 02 '17 10:06 r12r

Also wondering about this, I don't want to make clients have to set up a firebase account, and this plugin will probably not work with it.

ghost avatar Jun 05 '17 12:06 ghost

Hey @r12r here are the steps

To set up app reporting using the Google Analytics Services SDK for iOS and Android, complete the following steps. Note that the Firebase SDK is the recommended tracking solution for Google Analytics.

Sign in to your Google Analytics account. Click Admin. In the PROPERTY column, select Create new property from the dropdown menu. Select Website. Provide a Website Name. You may use the name of your app. Provide a Website URL. You may use your company URL or the URL for your app’s marketing site. Click Get Tracking ID. In the VIEW column, select Create new view from the dropdown menu. Select Mobile app. Provide a Reporting View Name. Click Create View.

ghost avatar Jun 05 '17 12:06 ghost

@JamesWilkinson-ICFOlson Works! Thank you very much.

r12r avatar Jun 06 '17 14:06 r12r

Thank you too @JamesWilkinson-ICFOlson, works like a charm. Maybe this could be added to the documentation, I had real trouble to understand how to configure the property,and I couldn't find any relevant information elsewhere.

anna-git avatar Jun 11 '17 13:06 anna-git

Yes, some steps should be included int he documentation:

Prerequisites:

A Cordova 3.0+ project for iOS, Android, browser (PWA), and/or Windows Phone 8 A Mobile App property through the Google Analytics Admin Console (Android) Google Play Services SDK installed via Android SDK Manager

victorsosa avatar Jun 16 '17 13:06 victorsosa

Reopen until we have the docs in place

victorsosa avatar Jun 29 '17 12:06 victorsosa

Regarding the "Mobile App" approach - as mentioned, creating the Mobile App (vs website) approach forwards you to Firebase to enable Analytics. Having done that, the next step is to call something like $cordovaGoogleAnalytics.startTrackerWithId('UA-000000-01');

But how does one get the UA id? Google analytics no longer shows those for Firebase created accounts, at least that I can see?

viking2917 avatar Oct 11 '17 02:10 viking2917

Hello @JamesWilkinson-ICFOlson I did exactly what you said, all the steps. I use version 1.8.3 of the plugin, It works perfectly on IOS but nothing shows with Android devices. This is my code : $cordovaGoogleAnalytics.startTrackerWithId('UA-XXXXXXXXX-2'); $cordovaGoogleAnalytics.debugMode(); $cordovaGoogleAnalytics.setUserId(USER_ID); $cordovaGoogleAnalytics.trackView('Page_Title');

When I try to see my app log, this is what i have: github

royken avatar Oct 13 '17 16:10 royken

Hey all,

I just wanted to share my result.

The above solution worked for me perfectly, however, I could not see active pages in the real-time analytics. It took around 6 hours for the page view data to be visible on the analytics dashboard.

Thanks heaps guys!

Danbardo avatar Dec 12 '17 13:12 Danbardo

Well, I apprecciate your sharing, @Danbardo. I've just did @JamesWilkinson-ICFOlson's steps but I couldn't do the trick. Before, it was showing just users number and no pages. Now it's showing nothing. I'll wait until tomorrow to analyze again. I think it's good to clarify these details here because many people will pass through this.

Ludplay avatar Dec 29 '17 23:12 Ludplay

Sorry, my mistake! It's necessary to change the view at the top of Google Analytics's panel. Just now I got it. You will not see the real time views from App along with those from website. God, the tutorials around this implementation have nothing about these things... Doing this I am now seeing the users active and also the "time line", missing just the page name. I'm going to wait anyway.

Ludplay avatar Dec 29 '17 23:12 Ludplay

Well, cheers! It worked! I retested after 4 days and in the first moment, opening Analytics and analyzing the real time, I saw no difference. So, I went to the Analytics Home Page and I saw the views on the report. So, I tried again and the page finally appeared in the real time. Hope this helps someone.

Ludplay avatar Jan 02 '18 15:01 Ludplay

Hi @Ludplay,

It has been 48 hours and I am still not seeing any data (not even in real-time). Even the Tracking Code section says No data received in the past 48 hours. Did you experience something similar? How long did it take you to start seeing data?

bigreni avatar Jan 09 '18 22:01 bigreni

Just want to add that this method is also the secret sauce for the browser platform. Once I added a mobile view, my trackView calls all started showing up in both real-time and reports. Note that if you are looking at the report you may need to change the filter to include the current day to see the data. Thanks @JamesWilkinson-ICFOlson !

So in summary - create a GA web property, with a mobile view inside it. Clear as mud!

cgs avatar Dec 07 '18 23:12 cgs