Giter Site home page Giter Site logo

dotnetanalyticsapi's People

Contributors

ramyothman avatar schaafm avatar sire avatar steve-crook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnetanalyticsapi's Issues

How to use Custom Dimensions?

Firstly, thanks for writing the great library!

I am trying to use a custom dimension and I found that I can get a type using:

 Analytics.Data.CustomVariablesorColumns.Dimensions.dimensionXX

But I do not see a way to specify which of my custom dimensions to use. How would I use a custom dimension with the library?

Thanks in advance!

A Little Help

I am so thankful for what you have done. I would be stuck without it.

I am having some small issues.

I can't figure out how to use the filters. I don't see anything on it in the documentation, and I'm not that smart.

I am using this code:
List<Analytics.Data.DataItem> metrics = new List<Analytics.Data.DataItem>();
//metrics.Add(Analytics.Data.Visitor.Metrics.visitors);
metrics.Add(Analytics.Data.Session.Metrics.visits);
//metrics.Add(Analytics.Data.Session.Metrics.timeOnSite);
metrics.Add(Analytics.Data.Adwords.Metrics.adClicks);
metrics.Add(Analytics.Data.Adwords.Metrics.adCost);
metrics.Add(Analytics.Data.Adsense.Metrics.adsenseAdsClicks);
//metrics.Add(Analytics.Data.Adsense.Metrics.adsenseRevenue);
metrics.Add(Analytics.Data.Session.Metrics.Calculated.visitBounceRate);
//metrics.Add(Analytics.Data.Session.Metrics.
List<Analytics.Data.DataItem> dimensions = new List<Analytics.Data.DataItem>();
//dimensions.Add(Analytics.Data.GeoNetwork.Dimensions.country);
//dimensions.Add(Analytics.Data.GeoNetwork.Dimensions.city);
dimensions.Add(Analytics.Data.TrafficSources.Dimensions.campaign);
dimensions.Add(Analytics.Data.TrafficSources.Dimensions.keyword);
List<Analytics.Data.DataItem> filters = new List<Analytics.Data.DataItem>();
filters.Add(Analytics.Data.Session.Metrics.visits);

        System.Data.DataTable table = manager.GetGaDataTable(DateTime.Today.AddDays(-5), DateTime.Today, metrics, dimensions, filters, metrics);

Unfortunately, it seems to filter off all results. I want my list to include anything that has over 50 visits. How would I do that?

You can also see that I have commented out adsenseRevenue, and timeOnSite. Both of these metrics throw a conversion error something like this:

String was not recognized as a valid DateTime.Couldn't store <0.0> in timeOnSite Column. Expected type is DateTime.

and...

Input string was not in a correct format.Couldn't store <2.52E-4> in adsenseRevenue Column. Expected type is Decimal.

I'm not smart enough to fix either problem.

I would really appreciate any help that you would be willing to provide.

Thanks,

Mike

Error:"invalid_grant", Description:"", Uri:""

Hi there,
i've got this error today (there was no error yesterday ).. i tried to solve but i couldnt. There is no problem at local mach., i've got this message on server mach; http://prntscr.com/3jeunz
By the way, i didnt exceeded any limit. And also i'm on shared hosting i cant change server settings (NTP settings, like Google says; https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtAuthorization#helpme ).

Can u help me ?
Thanks for the work!

API Slow?

Hi, I came across your library when needing to build a web service that will connect and pull data from Google Analytics using a Service Account. It's great.

However I had only one problem .. in AnalyticsManager.cs, in the GetGaData method, when it calls analyticsService.Data.Ga.Get with the parameters I provide and calls request.Execute, the execute method takes approx 35 seconds to return data, seemlingly regardless of the dimensions, metrics, filters or sampling level.

Have you seen this issue?

Cryptographic Exception

Hi,
When i try to run Analytics test I get the following error:

An exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll but was not handled in user code

I'm not sure why i get this issue.

I have done the following:

Added the ...gserviceaccount.com to my Account user management
In the code added the e mail to Analytics.AnalyticsManager manager
Added my profile number manager.SetDefaultAnalyticProfile("999999999");

I'm not sure if I meant to change anything else or am missing anything?

Any help would be much appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.