Welcome!

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
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss
Accepted Solution

Dashbooard is not updated in blackberry analytics

I am trying the  demo applicationn of blackberry analytic , but  report is not updating in my account :smileysad:. please help

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,847
Registered: ‎10-16-2009
My Carrier: Bell

Re: Dashbooard is not updated in blackberry analytics

If you just started using Analytics you will need to either wait a day to see stats or set a custom date range that includes today to see current stats.

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss

Re: Dashbooard is not updated in blackberry analytics

I have  set  custom date  also but still It is not updating  :smileysad:

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,847
Registered: ‎10-16-2009
My Carrier: Bell

Re: Dashbooard is not updated in blackberry analytics

Have you set the value in the sample to the value needed for your account?

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss

Re: Dashbooard is not updated in blackberry analytics

package mypackage;


import com.webtrends.mobile.analytics.rim.WebtrendsConfig;

import com.webtrends.mobile.analytics.rim.WebtrendsConfigurator;

import com.webtrends.mobile.analytics.rim.WebtrendsDataCollector;

import com.webtrends.mobile.rim.WebtrendsUiApplication;


public class MyApp extends WebtrendsUiApplication {

    public static void main(String[] args) {

        MyApp theApp = new MyApp();

        theApp.enterEventDispatcher();

    }

    public MyApp() {

        WebtrendsConfigurator.LoadConfigFile(new AnalyticsConfig());
        WebtrendsDataCollector wtDC = WebtrendsDataCollector.getInstance();

        wtDC.Initialize();

        pushScreen(new MyScreen());
    }

    private class AnalyticsConfig extends WebtrendsConfig {



        public String wt_dc_app_name() {

            return "sample";

        }

        public String wt_dc_app_version() {

            return "1.0.1";
        }

        public String wt_dc_dcsid() {

            return "dcswcrmlj9dv0hgctfq9y6lw8_3w4g"; // Analytics Demo
        }


        public String wt_dc_debug() {

            return "true";
        }

        public String wt_dc_timezone() {

            return "+5:30";
        }

        public String wt_dc_url() {

            return "http://dc.webtrends.com/v1";

        }

        public String wt_dc_app_category() {

            return "Utilities";

        }

        public String wt_dc_request_permission() {
            
            return "true";
            
        }
        public String wt_dc_app_publisher() {

            return "cdn123";

        }
    }
}

 

package mypackage;

import com.webtrends.mobile.analytics.IllegalWebtrendsParameterValueException;

import com.webtrends.mobile.analytics.rim.WebtrendsDataCollector;

import net.rim.device.api.ui.Field;

import net.rim.device.api.ui.FieldChangeListener;

import net.rim.device.api.ui.component.ButtonField;

import net.rim.device.api.ui.container.MainScreen;


public final class MyScreen extends MainScreen implements FieldChangeListener{

    ButtonField b;

    public MyScreen() {

        b=new ButtonField();

        b.setChangeListener(this);

        add(b);

    }

    public boolean onClose() {

        try {

            WebtrendsDataCollector.getInstance().onApplicationTerminate("Application Terminate", null);

        } catch (IllegalWebtrendsParameterValueException err) {

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

        System.exit(0);

        return true;
    }

    public void fieldChanged(Field field, int context) {

        if(field==b){

            try {

                WebtrendsDataCollector.getInstance().onAdClickEvent("/mainscreen", "Main Screen", "menu", null, "Demo Ad");

            } catch (IllegalWebtrendsParameterValueException e1) {

                System.out.println(e1.toString());
                e1.printStackTrace();
            }
        }
    }



}

I made a space with name "sample" in my account

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,847
Registered: ‎10-16-2009
My Carrier: Bell

Re: Dashbooard is not updated in blackberry analytics

Can you PM me your account details (company name)? I can look into it more from the admin side.

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss

Re: Dashbooard is not updated in blackberry analytics

sir thanks for replying . sir what are the necessary value  for showing report in my account

Please use plain text.
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss

Re: Dashbooard is not updated in blackberry analytics

sir , I have sent  my details

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,847
Registered: ‎10-16-2009
My Carrier: Bell

Re: Dashbooard is not updated in blackberry analytics

Everything looks good in your dashboard. Does your device have a BIS data plan active? 

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Contributor
nidhicdn
Posts: 17
Registered: ‎10-25-2012
My Carrier: ss

Re: Dashbooard is not updated in blackberry analytics

Sir I tested it on simulator

Please use plain text.