I'm using Charles Proxy as Sniffer to check and verify the body/payload of my Firebase Events?
I see the POST request to firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog in Batch, and in each event, inside the POST request, I found the sourceExtension attrib, that I think constains all the event data, but I cant to decode, I tryed with base64 and bytes, but I cant see the content of the property.
I know the documented way to check firebase events is thourght the web portal in debug view, but this question is about how to see the content in the request before it arrive to the google cloud.
I saw another related post in Stackoverflow, but without any answers:
See Firebase network traffic in debug purpose
Anyone know how to sniff Firebase events and decode correctly? thanks in advance.
Related
I have settled my google tag manager as from the guide.
I have got in place a page that redirect just after the tag gtm-load is collected into the dataLayer. It's actually a "transition" page that should redirect instantaneously.
In this way I make sure google-analytics.com/r/collect is called, as I can see from the network ta of my browser, seems the only way to do so for an "instant redirect page".
However I need to test it from the back-end side.
Is there any way to have a feedback from Google Analytics about the data is actually sent? For example something like google-analytics.com/get/data/lastEntry, so that I can use a restAPI to check it out?
As far as I know, google analytics provide only metrics through a web page, and no actual data sent to.
Moreover there are some Rest API here but they are only for configuration purpose.
you might pass a JavaScript function as a hitCallback parameter of analytics send command and it will be called right after hit data were sent:
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hitCallback
Here's an example of how to use it with GTM alongside another useful feature of eventcallback
https://www.simoahava.com/gtm-tips/hitcallback-eventcallback/
Hope this helps.
There is a realtime API in Google Analytics, so what I have done for testing is to call my test URL with utm campaign parameters attached. Then I made a call to the realtime API and filtered by my custom campaign.
The realtime API is fairly limited (no session based values, obviously, you cannot test custom dimensions etc), but at least this tells you if your hit has registered in GA.
Not sure if this is possible but maybe someone knows how to work around this.
I have a web application and I'm using the new analytics for firebase. I want to create a funnel for the registration process.
My funnel will look something like this
Pretty simple right. The issue is that I don't have a way of tracking when the users verify it's own email. Maybe the firebase team can add a new automatic event like the ones described here
If you want to file a feature request, Stack Overflow is not the right spot. You cn file a feature request with Firebase support.
But until such a feature is added, you'll have to implement the analytics event yourself. The most common way to do that is by sending the event from the client when you first detect that the email address is verified.
There are some subtle differences between this approach and one where the Firebase servers log it automatically, but it's as close as you can get for the moment, and relatively straightforward to implement.
I'm using Google Calendar API in my application.
The problem that I faced is that Google doesn't send me Push-Notifications.
I setup my app here https://console.developers.google.com/
Verified domain: https://console.developers.google.com/apis/credentials/domainverification
Watched calendar: https://developers.google.com/calendar/v3/reference/calendarList/watch and got successful response.
However, having done all of this, no push-notifications are received by my web-hook. It seems that Google just doesn't send them. Maybe I missed some step? I use https URL.
The problem was that the URL that I used for PUSH-NOTIFICATIONS wasn't whitelisted and if it was requested from other network(e.g. Google), then the request couldn't be processed.
Therefore, if there is such a problem, consider checking your URL availability outside your network. It should be accessible from anywhere and by anyone.
Google-checkout has a wizard that creates the html code for the button, but how do I have my website get confirmation that the transaction has been completed (or that it wasn't)?
EDIT: I have already seen pages such as https://developers.google.com/checkout/developer/Google_Checkout_HTML_API_Notification_API#Receiving_and_Processing_Notifications and the like. But I don't know how to implement them. For example: what is "HTTP Basic Authentication" , "HTTP request headers" , "HTTP 200 response code" , "POST" , etc.
So what I need is a simple (!) example with minimum code.
You would have to implement Google's Notification API. You can read about it here: Implementing the Notification HTML API.
Edit
In Response to:
Thanks. But unfortunately I don't know enough web developing to know
how to apply what is written there.
I'll be honest with you. Simple is relative and if you aren't familiar with some of the fundamental concepts as POST and request headers, it's likely you will never get a simple response.
Having said that, I believe the simplest solution for you is to manually confirm the transaction upon receipt of the confirmation email.
I envision that you would have some sort of management screen that displays a list of all 'pending' transactions. When you receive your confirmation email from Google, you would simply mark the corresponding transaction as having been completed. This is not entirely uncommon. In fact, since you are using single-item purchases using the Google button, this is probably the best option for you.
A more complex scenario (again not a simple solution), would be to create a service that will parse your emails and using some voodoo to map those emails to the corresponding transaction in your web app. This, though, is probably as advanced as implementing the Notification API.
I am creating a mobile ads project and I need to detect real ip/user_agent/os and all that stuff. I am able to track them down but my problem is I will give the publisher php code and will detect everything on their servers and then send a POST request to my server to store data but since I am giving the code to them they can modify it and send fake IP/os/user agent and impressions to earn more.
I can't encrypt my code. Can any one answer with best solution to stop this issue?
I found a way to do it
i am storing everything in cookies now so will be bit harder for publishers to flood