C
C#16mo ago
Knuceles

✅ Google Analytics Cookies

So I learned that google analytic cookies (identified as _ga, _gid, AMP_Token for name pairs) are generated from client-side from analytics.js. So if I open a browser, and visit a site that uses google analytics, I could find those cookies easily. I want to try implementing a C# program that could obtain those cookies. If I were to send an HTTPWebrequest, and inspect cookies, I believe only the server-side generated cookies show. So how would I see client-side generated cookies?
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(URL);

req.CookieContainer = new CookieContainer();
using (var response = (HttpWebResponse)req.GetResponse())
{
Console.WriteLine(response.Cookies);
}
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(URL);

req.CookieContainer = new CookieContainer();
using (var response = (HttpWebResponse)req.GetResponse())
{
Console.WriteLine(response.Cookies);
}
4 Replies
Knuceles
Knuceles16mo ago
Trying to get the cookies for an non-abusive purpose.
jcotton42
jcotton4216mo ago
What purpose?
Knuceles
Knuceles16mo ago
I just want to see how to get client-side generated cookies Because I only know how to get cookies in the first request I send
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts