Example #1
0
        private static void GetGeoSystemData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetGeoSystemData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository AnalyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<GeoSystem> geoSystems = gaService.getGeoSystemData(fromDate, toDate, site);

            foreach (GeoSystem geoSystem in geoSystems)
            {
                AnalyticsRepository.recordAnalyticsGeoSystem(geoSystem);
            }
        }