Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Google Analytics SQL Import


Google Analytics SQL Import

Author
Message
farzad.panahi
farzad.panahi
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 30
ram_model (8/26/2013)
farzad.panahi (8/19/2013)
I think with some minor changes to the source code it can be made to work with YouTube analytics api.

Hi Farzad,

Can you let me know what changes need to be made to make it work for YouTube Analytics?

Thanks in advance

-Ram


You need to install YouTube Analytics nuget package https://www.nuget.org/packages/Google.Apis.youtubeAnalytics.v1 for the C# solution.

Then by reading the api or taking a look at samples like https://code.google.com/p/youtube-api-samples/source/browse/samples/dotnet/my_uploads.cs modify https://github.com/farzadpanahi/GoogleAnalyticsDataProcessingExtension/blob/master/src/GoogleAnalyticsDataProcessingExtension/GoogleAnalyticsDataProcessingExtension/GoogleAnalytics/GAService.cs file to use YouTubeService instead of AnalyticsService.

You can start modifying this method:
private AnalyticsService GetAnalyticsService(IAuthenticator authenticator)
{
return new AnalyticsService(new BaseClientService.Initializer() { Authenticator = authenticator, GZipEnabled = true });
}
summerpet39
summerpet39
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 1
Extracting data from Google Analytics requires some programming skills.. specially with OAuth 2.0. If you are comfortable with C# or other language .. use their official SDK found on github.

If you prefer not to re-invent the wheel then try some 3rd-party Google Analytics Connector like this one

There is another method of connecting to Google API too.. use of *.p12 file (Certificate file) ..
MMartin1
MMartin1
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1102 Visits: 2014
summerpet39 (1/14/2016)
Extracting data from Google Analytics requires some programming skills.. specially with OAuth 2.0. If you are comfortable with C# or other language .. use their official SDK found on github.

If you prefer not to re-invent the wheel then try some 3rd-party Google Analytics Connector like this one

There is another method of connecting to Google API too.. use of *.p12 file (Certificate file) ..

I was able to import on SSIS 2005 of all versions, without any programming tasks needed. It is a task within SSIS that you register in SSIS , after downloading. See the prior link in this thread.

----------------------------------------------------
How to post forum questions to get the best help
SQL Daddy
SQL Daddy
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 135
Hello anthony,

Here , I would like to answer about the query, I have already worked with Google Analytics import to SQL via SSIS . We have a specific resource of this , Where You will get the proper guide of work. To know more about this , Please follow this link
More about SSIS Google Analytics


Hope It will be helpful.
:-)

SSIS Json source : The Json file soure is used to to read data from Json file. We have mentioned source code with example.
SQL Daddy
SQL Daddy
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 135
Hello anthony,
I have did the same using ssis. I am sharing a link where you will get the proper guide. To know more about google analytic task go through SSIS google analytic here

Hope it will be helpful for you.

If you have any query, Feel free to discuss.
:-)

SSIS Json source : The Json file soure is used to to read data from Json file. We have mentioned source code with example.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search