Solved! Go to Solution.
I'm using the uncompiled widget with 3.3 viewer and it doesn't appear to have any major issues. I get a few warnings about deprecated functions, but it logs some data to google analytics that I can view. I'll keep trying it out. Looks positive.
private function init():void
{
//Get the initial parameters from the config file
if (configXML)
{
gaAccount = configXML.account;
logWidgets = configXML.logwidgets == "true";
logBasemaps = configXML.logbasemaps == "true";
logDrawtools = configXML.logdrawtools == "true";
}
//only set listeners if there is an account in the config file
if (gaAccount != "")
{
tracker = new GATracker( this, gaAccount, "AS3", false );
//Log a visit marked as Home page as this will occur when viewer is first opened.
tracker.trackPageview( "/" + configXML.flexviewer);
AppEvent.addListener(AppEvent.WIDGET_RUN, listenHandler);
AppEvent.addListener(AppEvent.BASEMAP_SWITCH, listenHandler);
AppEvent.addListener(AppEvent.SET_MAP_ACTION, listenHandler);
systemManager.addEventListener(GoogleAnalyticsWidgetEvent.LOG_PAGE, logPageHandler);
}
}
Hi Robert,
Thanks for the help, the widget was compiled perfectly with the 3 updated lines of code.
Att,