-
Notifications
You must be signed in to change notification settings - Fork 2.2k
AngularFireAnalyticsModule not send data #2505
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
Comments
Same issue here, using the same packages as the original poster. |
@WaseemRakab i think this is Firebase error and not a library error. |
Im not sure though, it could be, maybe the analytics data doesn’t show up instantly? Takes some time? |
In principle, nothing appears for the first 24 hours, but then real-time. Although I haven't seen anything in 1 month. |
Replicated this as well, all using the latest libraries. If you install the Google Analytics Debugger Chrome Extension you can see the events getting logged but they arent then being sent to Analytics. I then removed angular fire analytics and put the tags in manually to the index.html file and it starts logging events
However its now not hooked upto the angular router so each path change doesn't do anything. Leaving this content in the index.html file, i then imported One thing i also noticed is that it set a blank user_id property even though a user wasnt logged in. |
I don't think I could have phrased it any better that @jackcw has. I've been experiencing pretty much exactly the same thing over the past few weeks. Without explicitly initialising analytics with the vanilla What is even stranger is events do seem to be logged sometimes without an obvious pattern, making the exact cause of the issue quite tough to pin down. I'd be happy to provide any more info that may be of value. |
i've had some success downgrading to @angular/[email protected]. If i get some time i'll try diff the difference try work out what the change was but quite busy at the moment |
I believe this might be due to some overly aggressive tree-shaking happening, knocking out Firebase JS SDKs side-effects. Can you try the latest canary? |
@jamesdaniels just tried the canary but its not working sorry. The Google Analytics Debugger Chrome Extension doesnt show the sending request url in the console, flipped back to 6.0.0 and it shows the sending request url |
@Karman40 you will see a console log entry that says |
@jackcw i use |
Hi I am facing this issue as well. At least I am happy that it was not just a big user drop for some reason. There is no analytics call happening at all with the latest 6.0.2 and latest Angular 10 |
Hey guys is there any workarround for this? |
Hey @jamesdaniels could we expect a fix ? I understand that you are alone in this and if we can do anything to help it would be great letting us know |
Both analytics and performance monitoring (and ssr too) are not working on the latest version. |
Same on my end. |
Same here |
1 similar comment
Same here |
Same here, using angular 10 with ionic 5 |
I opened a support ticket. I am sorry guys. This might not be related and this analytics issue perhaps it's not so important but this is. I did mention both issues. I admire the work of @jamesdaniels and the spirit of him here maintaining this repo but he needs a backup :-D By all means this is not about @jamesdaniels doing something wrong here, but rather just wanting to help him, get someone helping here :-D |
@jimmykane i don’t understand why cookies would affect the analytics of angular fire not triggering |
@razfriman no that's unrealted to this ticket. It's another ticket for the Js sdk and auth. I just opened a ticket with both issues. |
Facing same problem here, no data shows in DebugView or StreamView !! @google-admin put more people in this project! |
same issue, noting is getting captured both analytics and performance! |
Support answered that this project is considered a 3rd party for them :-/ |
@jimmykane where did you open the ticket? Maybe more people opening tickets they put more attetion in here. |
@conde2 I also got the same reaction, it's just a 3rd party repo, doesn't make any sense. |
I just read the changelog and I don't understand how such a minor update could break the Analytics. But I rolled back to 6.0.0 and it's working fine now... What am I missing? |
So this is it? I use SSR and NG10 with |
Having the same issue. Any news? |
Same here. Downgrading to v6.0.0 did not help. Debug mode shows the events but it doesnt send them. Using Angular 10 with ionic 5 |
Maybe this issue could get pinned so it gets a little more attention? |
For any newcomers to this thread. AngularFireAnalytics is broken and does not send any data to Google. Some have suggested manually calling If you install the Google Analytics Debugger, you will see the events, page views, and user-data being captured... but they don't make it to Google Analytics or Firebase for a reason that is unknown to me. I'm going to continue to try and get this to work, but hopefully we can all use this issue to centralize all debugging info, plus proposed solutions to try and help w/ getting this resolved for all! I'm sure @jamesdaniels would appreciate some help here 😬 |
Today it's working. Using Angular 10.0.11 with server-side rendering and I would say clear your cache, but if that was the issue then I would not have seen the events printed in dev tools console. 🤷♂️ |
I just checked my data in Firebase. I can confirm that I'm still getting Analytics data, for some weeks now, after reverting to |
It's been 3 months since this severe bug was opened. Although @jamesdaniels has been helpful to this community, it doesn't look like there aren't any developers left who work/provide-support to this project. |
Unfortunately for those encountering this bug; I've been very focused on preparations for the summit, new product launches, other libraries, and helping some key partners with solutions as of late. While I've not had the cycles to dig into this yet, this issue will be my top priority when I'm able to carve out some engineering time from the rest of my responsibilities. I'm hoping to find the chance to settle back into coding in the next week or so & have been putting feelers out for others who could help with the maintenance burden. In the meantime, I welcome any assistance from the community here. |
Thanks, @jamesdaniels - you seem to be a lone warrior trying to keep this project up and running. AngularFire is a very useful library. I wish it was treated as a core(-ish) component of Angular and the major releases were aligned and tested rigorously. I guess along with technical issues you are also facing organizational challenges. |
Change arrow function to a normal function to use the arguments object as described in the gtag documentation. That way, analytics sends data back to Google again. Fixes #2505
@Capelinha found it! The fix has been cut on NPM |
It turns out gtag uses |
Thanks @jamesdaniels and @Capelinha for keeping this project alive ! |
great! does this mean performance monitoring will work again too? |
@rubenheymans I'm not sure, in the company I work for we use only analytics. You can test and tell us the result. |
I can confirm that this fix is working locally and in production (https://www.devintent.com/).
Unfortunately, it doesn't appear that this solves the issue with performance. Do we have that tracked in a separate issue? |
It looks like we can track the Performance issues in #2502. |
I've cut the fix in |
I believe with v6.0.4 this is no longer working again. Can anyone else confirm this? |
I would recommend checking you have provided the service for screen
tracking. Previously it would accidentally provide itself and now it's only
done if you provide it directly
…On Thu, 5 Nov 2020, 17:43 Kyle Abens, ***@***.***> wrote:
I believe with v6.0.4 this is no longer working again. Can anyone else
confirm this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2505 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXXZYSAPG6Z7TV72URHCL3SOLP5FANCNFSM4N65G6RQ>
.
|
Yes, please ensure that you've added the |
|
I was also facing the same issue. Following version combinations worked for me later. Anglular - 8.2.4 or Anglular - 10.0.3 Try to keep the versions as mention in this documentation. |
I simply cannot figure this one out. @angular/fire works great except for device analytics. Fine for SPA. Device logs the DEBUG events but nothing shows up in firebase or Analytics console. Firebase debug view shows no devices. Analytics Console setup process ends with checking for device connectivity but never works. Following the instructions for device build I pass appId, for SPA I pass measurementId and appId. So SPA works and Device not, so logically I tried adding in the measurementId to the device config. No work. Read everything on the web about @angular/fire/analytics and find no direct reference to passing measurementId to a device. What about these google-services.json files that are generated? Again, no reference to them in the @angular/fire docs. I did add these config files properly to my Cordova config (and work just fine for the reasons I added them) but analytics does not work. I've tried aligning my module versions according to https://www.npmjs.com/package/@angular/fire with no success. downgraded to the above mentioned working modules with no success. |
Version info
Angular:
9.1.11
Firebase:
7.15.1
AngularFire:
5.4.2
Other (e.g. Ionic/Cordova, Node, browser, operating system): Web
How to reproduce these conditions
My config:
I have measurementId in config.
But not send any data :/. i init more than 1 month.
Thnaks!
The text was updated successfully, but these errors were encountered: