mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Some analytic stuff
This commit is contained in:
parent
89db8eb728
commit
1c0e00e4ba
7 changed files with 50 additions and 9 deletions
|
@ -177,7 +177,7 @@ namespace PlexRequests.Helpers.Analytics
|
|||
request.ContentLength = Encoding.UTF8.GetByteCount(postDataString);
|
||||
|
||||
// write the request body to the request
|
||||
using (var writer = new StreamWriter(request.GetRequestStream()))
|
||||
using (var writer = new StreamWriter(await request.GetRequestStreamAsync()))
|
||||
{
|
||||
await writer.WriteAsync(postDataString);
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ namespace PlexRequests.Helpers.Analytics
|
|||
{ "v", "1" },
|
||||
{ "tid", TrackingId },
|
||||
{ "t", type.ToString() },
|
||||
{"cid", "" }
|
||||
{"cid", Guid.NewGuid().ToString() }
|
||||
};
|
||||
|
||||
if (!string.IsNullOrEmpty(username))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue