Skip to content

Commit ad5a55d

Browse files
author
Tim Geyssens
committed
Some more UI finetuning
1 parent 45b10b8 commit ad5a55d

File tree

9 files changed

+168
-7
lines changed

9 files changed

+168
-7
lines changed

Analytics.Site/App_Data/Logs/UmbracoTraceLog.txt

Lines changed: 154 additions & 0 deletions
Large diffs are not rendered by default.

Analytics.Site/App_Data/Umbraco.sdf

0 Bytes
Binary file not shown.

Analytics.Site/App_Plugins/Analytics/account.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"Name": "www.nibble.be",
44
"Created": "2008-04-13T14:26:12+02:00",
55
"Updated": "2011-07-20T00:58:59.981+02:00"
6-
}
6+
}

Analytics.Site/App_Plugins/Analytics/backOffice/AnalyticsTree/partials/views.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</div>
66

77
<h4>Views</h4>
8-
<h6>Showing stats for {{ profile.WebsiteUrl }} </h6>
8+
99

1010
<canvas id="viewMonths" width="650" height="450"></canvas>
1111

Analytics.Site/App_Plugins/Analytics/backOffice/AnalyticsTree/view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<umb-panel ng-controller="Analytics.ViewController">
88
<umb-header>
99
<div class="span4">
10-
<h1>{{ sectionName }}</h1>
10+
<h1>Analytics for Umbraco</h1>
1111
</div>
1212
</umb-header>
1313

Analytics.Site/App_Plugins/Analytics/profile.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"Type": "WEB",
1111
"Created": "2008-04-13T14:26:12+02:00",
1212
"Updated": "2011-09-20T09:34:04.996+02:00"
13-
}
13+
}

Analytics.Site/App_Plugins/Analytics/settings.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<ClientId label="Client ID" description="This is the Client ID key from the Google API">206456221167-1a6npdlit92260gfaekomgon8cm0ratg</ClientId>
44
<ClientSecret label="Client Secret" description="This is the Client Secret from the Google API">_LklwvmJC0EIkEprcRB4keQ_</ClientSecret>
55
<RefreshToken label="Refresh Token" description="The refresh token used to acquire new access tokens. This is sensitive information.">1/LEYsT1k3k-UskgCFmDqEtMdyx-C5an5ltUFVT3PYm4A</RefreshToken>
6-
</Analytics>
6+
</Analytics>

Analytics/App_Plugins/Analytics/backOffice/AnalyticsTree/view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<umb-panel ng-controller="Analytics.ViewController">
88
<umb-header>
99
<div class="span4">
10-
<h1>{{ sectionName }}</h1>
10+
<h1>Analytics for Umbraco</h1>
1111
</div>
1212
</umb-header>
1313

Analytics/Controllers/AnalyticsApiController.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.CompilerServices;
45
using Analytics.Models;
56
using Skybrud.Social.Google;
67
using Skybrud.Social.Google.Analytics;
@@ -76,13 +77,19 @@ public ChartData GetVisitsOverMonths(string profile, DateTime? startDate, DateTi
7677
if (!endDate.HasValue)
7778
endDate = DateTime.Now;
7879

80+
TimeSpan span = endDate.Value - startDate.Value;
81+
82+
var dimensions = new[] {AnalyticsDimension.Year, AnalyticsDimension.Month};
83+
//if (span.TotalDays < 90)
84+
// dimensions = new[] {AnalyticsDimension.Month,AnalyticsDimension.Day};
85+
7986
// Get the visits from the Google Analytics API
8087
AnalyticsDataResponse data = GetGoogleService().Analytics.GetData(
8188
profile,
8289
startDate.Value,
8390
endDate.Value,
8491
new[] { AnalyticsMetrics.Visits, AnalyticsMetrics.Pageviews },
85-
new[] { AnalyticsDimension.Year, AnalyticsDimension.Month },
92+
dimensions,
8693
null,
8794
new[] { AnalyticsDimension.Year }
8895
);

0 commit comments

Comments
 (0)