This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
I can't seem to get any revenue tracking from my Unity app. The revenue documentation says to send a revenue event like:
But the Unity plugin has a limited API, there really is only TrackState and TrackAction. I'm currently doing this:
I can see all of the total occurrences of the "purchase action". And in my next release I will be adding an "events" parameter to try and match the documentation:
Is there something else that I am missing? Should this be inside a call to TrackState? Is there something in the panel that I would need to set up in order for these events to register as revenue?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Andrew,
I would use the following based on your code:
Dictionary<string, object> parms = new Dictionary<string, object>();
arms.Add("&&events","event1" ); //set custom events
parms.Add("&&products", string.Format("{0};{1};{2};{3}", productType, productId, quantity, dollarValue)); //set product string
ADBMobile.TrackAction("purchase", parms);
Thanks,
Asheesh
Views
Replies
Total Likes
Hi Andrew,
I would use the following based on your code:
Dictionary<string, object> parms = new Dictionary<string, object>();
arms.Add("&&events","event1" ); //set custom events
parms.Add("&&products", string.Format("{0};{1};{2};{3}", productType, productId, quantity, dollarValue)); //set product string
ADBMobile.TrackAction("purchase", parms);
Thanks,
Asheesh
Views
Replies
Total Likes
Thanks Asheesh, I will give that a try. Do you know why the "&&" characters are necessary?
Views
Replies
Total Likes
This does appear to be working btw.
Views
Replies
Total Likes
Great...its a syntax.
Views
Replies
Total Likes