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

            List<PaidSearchVisitSummary> visits = gaService.getPaidSearchVisits(fromDate, toDate, site);

            foreach (PaidSearchVisitSummary visit in visits)
            {
                AnalyticsRepository.recordPaidSearchVisitSummary(visit);
            }
        }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
0
        private static void GetEventData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetEventData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository AnalyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<SiteEvent> events = gaService.getEventData(fromDate, toDate, site);

            foreach (SiteEvent siteEvent in events)
            {
                AnalyticsRepository.recordAnalyticsEvent(siteEvent);
            }
        }
Exemplo n.º 4
0
        private static void GetAdwordsCostData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetAdwordsCostData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository analyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<AdwordsCost> adwordsCosts = gaService.getAdwordsData(fromDate, toDate, site);
            analyticsRepository.deleteAdwordsCostData(site, fromDate, toDate);
            foreach (AdwordsCost adwordsCost in adwordsCosts)
            {
                analyticsRepository.recordAdwordsCostData(adwordsCost);
            }
        }
Exemplo n.º 5
0
        private static void GetSearchData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetSearchData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository AnalyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<Search> searchData = gaService.getSiteSearchData(fromDate, toDate, site);

            foreach (Search search in searchData)
            {
                AnalyticsRepository.recordAnalyticsSiteSearch(search);
            }
        }
Exemplo n.º 6
0
        private static void GetVisitSourceData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetVisitSourceData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository AnalyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<DetailedVisit> visits = gaService.getVisitSourceData(fromDate, toDate, site);

            foreach (DetailedVisit visit in visits)
            {
                AnalyticsRepository.recordAnalyticsVisitSource(visit);
            }
        }
Exemplo n.º 7
0
        private static void GetSourceTimeData(DateTime fromDate, DateTime toDate, Site site)
        {
            System.Console.WriteLine("GetSourceTimeData for site : " + site.siteId + ", GA account : " + site.account);
            AnalyticsRepository AnalyticsRepository = new AnalyticsRepositoryImpl();
            GAService gaService = new GAService_Impl();

            List<SourceTime> gaSourceTimes = gaService.getSourceTimeData(fromDate, toDate, site);

            foreach (SourceTime sourceTime in gaSourceTimes)
            {
                AnalyticsRepository.recordAnalyticsSourceTime(sourceTime);
            }
        }