Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Analytics Service

Reply
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Reports on custom events?

I record a custom event within the application which provides some variable data as one of the parameters. I can see the custom events in the log, but how can I get a report which shows the custom data? The custom event data is one of a large set of data, but not completely unique. Ideally, I'd like to see  report showing a count of each distinct parameter value sent with the custom event.

 

The code I use is:

 

Hashtable customParams = new Hashtable();
customParams.put("WT.tx_e", "v");
customParams.put("WT.tx_u", "1");
try
{
	WebtrendsDataCollector.getInstance().onProductView("/MyApp/MyScreen/details","details", "details", customParams, "", MySpecialData, "");
}
catch (IllegalWebtrendsParameterValueException err)
{
	WebtrendsDataCollector.getLog().e(err.getMessage());
}

 The MySpecialData variable contains the data I'd like to see a count of.

 

Bill

 

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: Reports on custom events?

I'm not sure you can do any complex reporting. The only place I see Custom Events being counted is in the "Events" report of the Webtrends portal.
Please use plain text.
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Re: Reports on custom events?

I had a follow-up that I thought I had posted, but cannot see anywhere now. Must have gone to the great bit-bucket in the sky. 

 

Anyway, I noticed that the code I posted isnt a custom event at all, but an OnProductView event. This actually makes sense inthe context of the application, but it makes the post harder to understand. 

 

So I modified my code a bit to provide data in some of the spots where I had placed an empty string in an effort to make it work better. I did some testing several days ago, and I cannot see any of my Product events showing up in the 'View Product' -or- 'View Product by Product Type' reports.  I can see them the Session and Events in their respective reports, but no the product ones. Any idea why?

 

Oh, and for testing purposes, having to waut 48 hours before you can see the results of your testing in a report (or see if the right data is shown/included etc)  REALLY SUCKS. How are we supposed to fine-tune the application and make sure the data is being reported well when it takes 2 days to complete one test!?

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: Reports on custom events?

Here is what I am using and it is working properly:

 

Hashtable customParams = new Hashtable();       

customParams.put("WT.tx_e", "v");       

customParams.put("WT.tx_u", "1");   


                try {                 

  WebtrendsDataCollector.getInstance().onProductView("/AppName/", "Main Screen/", "Product View", customParams, "Screen View", "PRODUCT-ID", "PRODUCT-SKU");

                }

catch (IllegalWebtrendsParameterValueException err)

{                    WebtrendsDataCollector.getLog().e(err.getMessage());           

    }

 

I see proper reports based on the Events report as well as showing me the proper SKU and ID inside the Product reports.

 

Hope that helps.

 

 

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 269
Registered: 07-15-2008
My Carrier: Bell

Re: Reports on custom events?

What dnepr suggests is what you will have to go with. There are no custom reports provided with the free Analytics service. You can upgrade your service with Webtrends to get additional features, or use the available report types to capture your data.

 

I have made a request for some kind of test mode that will allow you to temporarily increase the processing rate while you setup your reports.

Tim Windsor
Application Development Consultant
Please use plain text.