I implemented inapp purchase successfully in android app. I just want to log the purchase event in google analytics. If the application is in foreground, i can log the event through PurchaseObserver. But If the application in background, how to log the event in google analytics. Currently i am using EasyTracking library to log the events.
Please Help.
thanks in advance.
Try something like this with the new v2 Google Analytics Android API