Keisuke, Here is the 3.6 version. Both compiled and uncompiled have been updated:
Hi Robert,Thanks for the help, the widget was compiled perfectly with the 3 updated lines of code.Att,
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); } }
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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.