Skip to content
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

Few More Examples #8

Open
YodasMyDad opened this issue Jul 3, 2018 · 1 comment
Open

Few More Examples #8

YodasMyDad opened this issue Jul 3, 2018 · 1 comment
Assignees

Comments

@YodasMyDad
Copy link

Could you add a few more examples of how to use your project, especially the ecommerce tracking stuff. Just added to the readme would be great.

@Kolky
Copy link
Owner

Kolky commented Jul 3, 2018

I personally use it to track timing of certain tasks in desktop-applications, for example:

using (var timer = analytics.TrackTimerHit("LongRunningTask", "TaskParametersAsString"))
{
   // Do stuff
}

Tracking e-commerce is not much different;

var hit= analyticsSession.TrackTransactionHit("TransactionId");
hit.Parameters.TransactionRevenue= "Revenue"
hit.Parameters.TransactionShipping= "ShippingCosts"
hit.Parameters.App.ApplicationName = "AppName";
hit.Parameters.App.ApplicationId = "com.company.app";
hit.Parameters.App.ApplicationVersion = executingAssembly.GetAssemblyGitVersion().ToString();
hit.Send();

@Kolky Kolky self-assigned this Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants