Easily push SQL Server data to Google Analytics using the CData SSIS Tasks for Google Analytics.
SQL Server databases are commonly used to store enterprise records. It is often necessary to move this data to other locations. The CData SSIS Task for Google Analytics allows you to easily transfer Google Analytics data. In this article you will export data from SQL Server to Google Analytics.
Add Source and Destination Components
To get started, add a new ADO.NET Source control and a new Google Analytics Destination control to the data flow task.

Configure the ADO.NET Source
Follow the steps below to specify properties required to connect to the SQL Server instance.
- Open the ADO.NET Source and add a new connection. Enter your server and database information here.
- In the Data access mode menu, select "Table or view" and select the table or view to export into Google Analytics.
- Close the ADO NET Source wizard and connect it to the destination component.
Create a New Connection Manager for Google Analytics
Follow the steps below to set required connection properties in the Connection Manager.
- Create a new connection manager: In the Connection Manager window, right-click and then click New Connection. The Add SSIS Connection Manager dialog is displayed.
- Select CData GoogleAnalytics Connection Manager in the menu.
- Configure the connection properties. A typical connection requires:
- Profile
OAuth 認証標準を使用してGoogle Analytics に接続します。ユーザーアカウントまたはサービスアカウントで認証できます。組織全体のアクセススコープを本製品に許可するには、サービスアカウントが必要です。下記で説明するとおり、本製品はこれらの認証フローをサポートします。
ユーザー資格情報の接続プロパティを設定せずに接続できます。次を設定して、接続してください。 Profile:接続するGoogle アナリティクスのプロファイル、またはビューに設定。この値はProfiles テーブルから取得できます。指定しない場合は、初めに返されたプロファイルが使われます。接続すると、本製品はデフォルトブラウザでOAuth エンドポイントを開きます。ログインして、アプリケーションにアクセス許可を与えます。本製品がOAuth プロセスを完了します。他のOAuth 認証フローについては、ヘルプドキュメントの「OAuth 認証の使用」を参照してください。
Configure the Google Analytics Destination
In the destination component Connection Manager, define mappings from the SQL Server source table into the Google Analytics destination table.
- Double-click the Google Analytics destination to open the destination component editor.
- In the Connection Managers tab, select the connection manager previously created.


Run the Project
You can now run the project. After the SSIS Task has finished executing, data from your SQL table will be exported to the chosen table.
