I have a get API call from my asp.net mvc controller using HTTP client. API returns json data and also my controller returns json data. In network tab in chrome dev tool I can get the details of my controller call and the data but I am not getting any information about that API call.
Is it possible to inspect/ track API call details using chrome or fiddler? If yes how? Or is there any other tool that will intercept those call also.
The network tab in Chrome tracks all traffic to and from the client.
You will see all of the calls sent from the server to the browser. This includes images, css, javascript, etc. However, it also shows the result of ajax calls.
For an example, go to This page and open Chrome Developer Tools. Then go to the network tab. Then simply click on the demo button and you will see the call pop up.
Related
I'm trying to migrate my Google Tag Manager to the Server-Side version. The workflow is actually working, the client container sends data to the server container and finally I see the tracking arriving in GA4. What is not working is the Preview server.
My Server-Side and its Preview are deployed as distinct deployments in a K8s on premises.
I have 1 ingress for each of those, and they expose respectively analytics.mydomain.com and preview.mydomain.com. Sending an HTTP request to /healhz on both of these domains return OK.
Now, when I hit the preview button on the client container menu in my browser
I can successfully load the Preview dashboard
But if I reload the page I'm tracking, I don't see any new events collected.
Moreover, if I use the "Send request manually" option using this curl
curl -H 'x-gtm-server-preview: ZW52LTN8X1VtScensoredDYxN2M4MDkyMzU3ODRhYzYxOWM==' 'https://preview.mydomain.com/g/collect?v=2&en=page_view&tid=G-1234&cid=123.456&dl=https%3A%2F%2Fexample.com%2F'
The response I got is Not Found.
What could possibly be the issue here? I also tried to deploy it outside K8s in a simple docker container but I had the same problem, It won't load events and will always respond Not Found.
I want to use google forms to collect questionnaire responses but with a much more custom UI for doing so. Is there a way to send in responses from my custom application to my google forms api?
You can use the endpoint to fill the google form directly.
Steps -:
Create a google sheet.
Click on the Tool menu to create a google form.
Then create some google forms fields.
Now in the right top corner click on the 3 dots and select the Pre-fields link form.
Fill the info and click on the Get link and copy the link
Now you have a URL with the endpoints like this
Endpoints are
entry.1651815625.
entry.952362665
Google Sheet Link for Form -: "https://docs.google.com/forms/d/e/1FAIpQLSfxoz5dqXC-_LoGJWZCPasww6woHcOl0s48PYcCj-72uUJoBQ/viewform?usp=pp_url&entry.1651815625=Radha&entry.952362665=Krishna"
To Convert this link to this way
"https://docs.google.com/forms/d/e/1FAIpQLSfssz5dqXC-_LoGJWZCP93ww6woHcOl0s48PYcCj-72uUJoBQ/formResponse?&submit=Submit?usp=pp_url&entry.1651815625=Radha&entry.952362665=Krishna"
Instead of "viewform" you have to write "formResponse?&submit=Submit"
Now you can pass your own value and hit this URL to submit your google form directly.
For more info, you can watch this video from The Coding Bus
https://youtu.be/PVM7h5QCnnM
If you want to update the form's layout, it is possible to update it from your application using the Google Forms API. However, the Google Forms API currently does not support sending responses to your form, as shown here
At this time the Google Forms REST API doesn't support creating form responses as the Form.responses resource only includes two methods: get and list. Ref. https://developers.google.com/forms/api/reference/rest/v1/forms.responses?hl=en
You might use the Forms Service from Google Apps Script to create Google Forms Responses programmatically. To call this service from your app you might create a web-app in order have a HTTP GET / POST request end-point or use the Google Apps Script REST API.
Another option might be to use a "hack" to emulate the Google Forms POST request. See Auto-Fill or automate a Google Form
Related
Is it possible to 'prefill' a google form using data from a google spreadsheet?
how to create a google form response with app script
Load form responses with script in sheet - Create initial forms with nothing but an ID number
I'm trying to debug a web app and need to look at a series of requests/responses. I'm using the Firefox Developer's tools Network tool which shows the traffic and details but I'm not able to find the POST request body. Where is it? A screen shot of a Google request that includes POST operations is shown below.
I am using Chrome for some web scraping. How can I find manually the call to API endpoints url ?
The way I do it now it going to Network and look link by link. Is there a better way to quickly identify the call to database endpoints ?
Thanks
You can use fiddler or similar network sniffers.
You start fiddler. Then as you navigate to your website of interest, fiddler is going to show you all the url's that are sent to the website, as well as the website's responses.
I'm working on a web application that uses node.js + express. Our team has decided that all related pages must use a single URL and be distinguished only by its method.
So, for example: we have a group edition page. GET /groups gets the html, which includes the edition form, and POST /groups saves the changes.
The issue is that I only desire to track the POST /groups request. However, on the Google Analytics configurations, I only found URL-related tracking, nothing about specific HTTP methods.
Can this be done?
If you have implemented GA via the standard client-side tracking code then no, GA will not be aware of the http method (JavaScript has no access to http headers). It should however be trivial to render a Javascript if condition into the code depending on the request method.