Skip to content

Instantly share code, notes, and snippets.

@LindaLawton
Created July 20, 2015 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LindaLawton/4f2fd8f34b3a582d88e5 to your computer and use it in GitHub Desktop.
Save LindaLawton/4f2fd8f34b3a582d88e5 to your computer and use it in GitHub Desktop.
Create a Google Analytics service using a Public API key
AnalyticsService services = new AnalyticsService(new BaseClientService.Initializer()
{
ApiKey = "[API key]", // from https://console.developers.google.com (Public API access)
ApplicationName = "Analytics API Sample",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment