06-25-2011 03:54 PM
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
06-27-2011 08:14 AM
06-29-2011 04:28 PM
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!?
06-30-2011 09:55 AM
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
}
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.
06-30-2011 02:33 PM
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.