Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: igooana/igooana
base: bdf64a27de
...
head fork: igooana/igooana
compare: d664f3fd71
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 2 contributors
View
2  Igooana/Dimension.cs
@@ -14,6 +14,8 @@ public class Dimension {
public static readonly PlatformOrDevice PlatformOrDevice = new PlatformOrDevice();
public static readonly Time Time = new Time();
public static readonly TrafficSources TrafficSources = new TrafficSources();
+ public static readonly Visitor Visitor = new Visitor();
+ public static readonly GeoNetwork GeoNetwork = new GeoNetwork();
protected internal Dimension(string dimensionString, string category = null, string description = null) {
this.dimensionString = dimensionString;
View
57 Igooana/Dimensions/GeoNetwork.cs
@@ -0,0 +1,57 @@
+using System;
+
+namespace Igooana.Dimensions {
+ public class GeoNetwork {
+ internal GeoNetwork() { }
+
+ /// <summary>
+ /// The continents of property visitors, derived from IP addresses
+ /// </summary>
+ public readonly Dimension Continent = new Dimension("ga:continent", "Geo Network", "The continents of property visitors, derived from IP addresses");
+
+ /// <summary>
+ /// The sub-continent of visitors, derived from IP addresses. For example, Polynesia or Northern Europe
+ /// </summary>
+ public readonly Dimension SubContinent = new Dimension("ga:subContinent", "Geo Network", "The sub-continent of visitors, derived from IP addresses. For example, Polynesia or Northern Europe");
+
+ /// <summary>
+ /// The countries of website visitors, derived from IP addresses
+ /// </summary>
+ public readonly Dimension Country = new Dimension("ga:country", "Geo Network", "The countries of website visitors, derived from IP addresses");
+
+ /// <summary>
+ /// The region of visitors to your property, derived from IP addresses. In the U.S., a region is a state, such as New York
+ /// </summary>
+ public readonly Dimension region = new Dimension("ga:region", "Geo Network", "The region of visitors to your property, derived from IP addresses. In the U.S., a region is a state, such as New York");
+
+ /// <summary>
+ /// The Designated Market Area (DMA) from where traffic arrived on your property
+ /// </summary>
+ public readonly Dimension Metro = new Dimension("ga:metro", "Geo Network", "The Designated Market Area (DMA) from where traffic arrived on your property");
+
+ /// <summary>
+ /// The cities of property visitors, derived from IP addresses
+ /// </summary>
+ public readonly Dimension City = new Dimension("ga:city", "Geo Network", "The cities of property visitors, derived from IP addresses");
+
+ /// <summary>
+ /// The approximate latitude of the visitor's city. Derived from IP address. Locations north of the equator are represented by positive values and locations south of the equator by negative values
+ /// </summary>
+ public readonly Dimension Latitude = new Dimension("ga:latitude", "Geo Network", "The approximate latitude of the visitor's city. Derived from IP address. Locations north of the equator are represented by positive values and locations south of the equator by negative values");
+
+ /// <summary>
+ /// The approximate longitude of the visitor's city. Derived from IP address. Locations east of the meridian are represented by positive values and locations west of the meridian by negative values
+ /// </summary>
+ public readonly Dimension Longitude = new Dimension("ga:longitude", "Geo Network", "The approximate longitude of the visitor's city. Derived from IP address. Locations east of the meridian are represented by positive values and locations west of the meridian by negative values");
+
+ /// <summary>
+ /// The domain name of the ISPs used by visitors to your property. This is derived from the domain name registered to the IP address
+ /// </summary>
+ public readonly Dimension NetworkDomain = new Dimension("ga:networkDomain", "Geo Network", "The domain name of the ISPs used by visitors to your property. This is derived from the domain name registered to the IP address");
+
+ /// <summary>
+ /// The name of service providers used to reach your property. For example, if most visitors to your website come via the major service providers for cable internet, you will see the names of those cable service providers in this element
+ /// </summary>
+ public readonly Dimension NetworkLocation = new Dimension("ga:networkLocation", "Geo Network", "The name of service providers used to reach your property. For example, if most visitors to your website come via the major service providers for cable internet, you will see the names of those cable service providers in this element");
+ }
+}
View
46 Igooana/Dimensions/TrafficSources.cs
@@ -3,9 +3,55 @@
namespace Igooana.Dimensions {
public class TrafficSources {
internal TrafficSources() { }
+
/// <summary>
/// The source of referrals to your property. When using manual campaign tracking, the value of the utm_source campaign tracking parameter. When using AdWords autotagging, the value is google. Otherwise the domain of the source referring the visitor to your property (e.g. document.referrer). The value may also contain a port address. If the visitor arrived without a referrer, the value is (direct)
/// </summary>
public readonly Dimension Source = new Dimension("ga:source", "Traffic Sources", "The source of referrals to your property. When using manual campaign tracking, the value of the utm_source campaign tracking parameter. When using AdWords autotagging, the value is google. Otherwise the domain of the source referring the visitor to your property (e.g. document.referrer). The value may also contain a port address. If the visitor arrived without a referrer, the value is (direct)");
+
+ /// <summary>
+ /// The path of the referring URL (e.g. document.referrer). If someone places a link to your property on their website, this element contains the path of the page that contains the referring link
+ /// </summary>
+ public readonly Dimension ReferralPath = new Dimension("ga:referralPath", "Traffic Sources", "The path of the referring URL (e.g. document.referrer). If someone places a link to your property on their website, this element contains the path of the page that contains the referring link");
+
+ /// <summary>
+ /// The full referring URL including the hostname and path.
+ /// </summary>
+ public readonly Dimension FullReferrer = new Dimension("ga:fullReferrer", "Traffic Sources", "The full referring URL including the hostname and path.");
+
+ /// <summary>
+ /// When using manual campaign tracking, the value of the utm_campaign campaign tracking parameter. When using AdWords autotagging, the name(s) of the online ad campaign that you use for your property. Otherwise the value (not set) is used
+ /// </summary>
+ public readonly Dimension Campaign = new Dimension("ga:campaign", "Traffic Sources", "When using manual campaign tracking, the value of the utm_campaign campaign tracking parameter. When using AdWords autotagging, the name(s) of the online ad campaign that you use for your property. Otherwise the value (not set) is used");
+
+ /// <summary>
+ /// The type of referrals to your property. When using manual campaign tracking, the value of the utm_medium campaign tracking parameter. When using AdWords autotagging, the value is ppc. If the user comes from a search engine detected by Google Analytics, the value is organic. If the referrer is not a search engine, the value is referral. If the visitor came directly to the property, and document.referrer is empty, the value is (none)
+ /// </summary>
+ public readonly Dimension Medium = new Dimension("ga:medium", "Traffic Sources", "The type of referrals to your property. When using manual campaign tracking, the value of the utm_medium campaign tracking parameter. When using AdWords autotagging, the value is ppc. If the user comes from a search engine detected by Google Analytics, the value is organic. If the referrer is not a search engine, the value is referral. If the visitor came directly to the property, and document.referrer is empty, the value is (none)");
+
+ /// <summary>
+ /// Combined values of ga:source and ga:medium.
+ /// </summary>
+ public readonly Dimension SourceMedium = new Dimension("ga:sourceMedium", "Traffic Sources", "Combined values of ga:source and ga:medium.");
+
+ /// <summary>
+ /// When using manual campaign tracking, the value of the utm_term campaign tracking parameter. When using AdWords autotagging or if a visitor used organic search to reach your property, the keywords used by visitors to reach your property. Otherwise the value is (not set)
+ /// </summary>
+ public readonly Dimension Keyword = new Dimension("ga:keyword", "Traffic Sources", "When using manual campaign tracking, the value of the utm_term campaign tracking parameter. When using AdWords autotagging or if a visitor used organic search to reach your property, the keywords used by visitors to reach your property. Otherwise the value is (not set)");
+
+ /// <summary>
+ /// When using manual campaign tracking, the value of the utm_content campaign tracking parameter. When using AdWords autotagging, the first line of the text for your online Ad campaign. If you are using mad libs for your AdWords content, this field displays the keywords you provided for the mad libs keyword match. Otherwise the value is (not set)
+ /// </summary>
+ public readonly Dimension AdContent = new Dimension("ga:adContent", "Traffic Sources", "When using manual campaign tracking, the value of the utm_content campaign tracking parameter. When using AdWords autotagging, the first line of the text for your online Ad campaign. If you are using mad libs for your AdWords content, this field displays the keywords you provided for the mad libs keyword match. Otherwise the value is (not set)");
+
+ /// <summary>
+ /// Name of the social network. This can be related to the referring social network for traffic sources, or to the social network for social data hub activities. E.g. Google+, Blogger, etc
+ /// </summary>
+ public readonly Dimension SocialNetwork = new Dimension("ga:socialNetwork", "Traffic Sources", "Name of the social network. This can be related to the referring social network for traffic sources, or to the social network for social data hub activities. E.g. Google+, Blogger, etc");
+
+ /// <summary>
+ /// Indicates visits that arrived to the property from a social source. The possible values are Yes or No where the first letter is capitalized
+ /// </summary>
+ public readonly Dimension HasSocialSourceReferral = new Dimension("ga:hasSocialSourceReferral", "Traffic Sources", "Indicates visits that arrived to the property from a social source. The possible values are Yes or No where the first letter is capitalized");
}
}
View
27 Igooana/Dimensions/Visitor.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Igooana.Dimensions {
+ public class Visitor {
+ internal Visitor() { }
+
+ /// <summary>
+ /// A boolean indicating if a visitor is new or returning. Possible values: New Visitor, Returning Visitor
+ /// </summary>
+ public readonly Dimension VisitorType = new Dimension("ga:visitorType", "Visitor", "A boolean indicating if a visitor is new or returning. Possible values: New Visitor, Returning Visitor");
+
+ /// <summary>
+ /// The visit index for a visitor to your property. Each visit from a unique visitor will get its own incremental index starting from 1 for the first visit. Subsequent visits do not change previous visit indicies. For example, if a certain visitor has 4 visits to your website, visitCount for that visitor will have 4 distinct values of '1' through '4'
+ /// </summary>
+ public readonly Dimension VisitCount = new Dimension("ga:visitCount", "Visitor", "The visit index for a visitor to your property. Each visit from a unique visitor will get its own incremental index starting from 1 for the first visit. Subsequent visits do not change previous visit indicies. For example, if a certain visitor has 4 visits to your website, visitCount for that visitor will have 4 distinct values of '1' through '4'");
+
+ /// <summary>
+ /// The number of days elapsed since visitors last visited your property. Used to calculate visitor loyalty
+ /// </summary>
+ public readonly Dimension DaysSinceLastVisit = new Dimension("ga:daysSinceLastVisit", "Visitor", "The number of days elapsed since visitors last visited your property. Used to calculate visitor loyalty");
+
+ /// <summary>
+ /// The value provided when you define custom visitor segments for your property
+ /// </summary>
+ public readonly Dimension UserDefinedValue = new Dimension("ga:userDefinedValue", "Visitor", "The value provided when you define custom visitor segments for your property");
+ }
+}
View
2  Igooana/Igooana.csproj
@@ -43,10 +43,12 @@
<Compile Include="Api.cs" />
<Compile Include="Auth.cs" />
<Compile Include="ConnectionException.cs" />
+ <Compile Include="Dimensions\GeoNetwork.cs" />
<Compile Include="Dimensions\PageTracking.cs" />
<Compile Include="Dimensions\Time.cs" />
<Compile Include="Dimensions\TrafficSources.cs" />
<Compile Include="Dimensions\PlatformOrDevice.cs" />
+ <Compile Include="Dimensions\Visitor.cs" />
<Compile Include="Ensure.cs" />
<Compile Include="Extensions\JsonExtensions.cs" />
<Compile Include="Json\Management\JsonResponse.cs" />

No commit comments for this range

Something went wrong with that request. Please try again.