HitBuilders.ExceptionBuilder builder = new HitBuilders.ExceptionBuilder() īuilder.SetDescription(ExceptionMessageToTrack) Public void Track_App_Exception(String ExceptionMessageToTrack, Boolean isFatalException) HitBuilders.EventBuilder builder = new HitBuilders.EventBuilder() Public void Track_App_Event(String GAEventCategory, String EventToTrack) GATracker.Send(new HitBuilders.ScreenViewBuilder().Build()) GATracker.SetScreenName(PageNameToTrack) Public void Track_App_Page(String PageNameToTrack) GATracker.EnableAutoActivityTracking(true) GATracker.EnableExceptionReporting(true) GATracker = GAInstance.NewTracker(TrackingId) GAInstance = GoogleAnalytics.GetInstance(AppContext.ApplicationContext) Public void Initialize(Context AppContext) Private static GoogleAnalytics GAInstance Public string TrackingId = "XX-XXXXXXXX-X" I have found this one and those are my code till now: public class GAService So I have searched for an other tutorial especially for Xamarin user. I have tried to follow this tutorial from Google in which they ask me to edit the adle file but I don't have this file in my solution (maybe because I am in Xamarin, I don't know). I am working on an Android app using Xamarin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |