Google ECommerce integration summary

Stitch’s Google ECommerce integration replicates data using the Google Analytics Reporting API v4. Refer to the Schema section for a list of objects available for replication.

Google ECommerce feature snapshot

A high-level look at Stitch's Google ECommerce (v15-10-2015) integration, including release status, useful links, and the features supported in Stitch.

STITCH
Release Status Released Supported By

Stitch

Stitch Plan

Free

DATA SELECTION
Table Selection

Unsupported

Column Selection

Unsupported

REPLICATION SETTINGS
Anchor Scheduling

Supported

Advanced Scheduling

Unsupported

Table-level Reset

Unsupported

Configurable Replication Methods

Unsupported

TRANSPARENCY
Extraction Logs

Unsupported

Loading Reports

Supported

Connecting Google ECommerce

Google ECommerce setup requirements

To set up Google ECommerce in Stitch, you need:

  • At least Read & Analyze permissions in the account you want to connect to Stitch. See Google’s documentation for more info.

  • To have recent data in the account you want to connect to Stitch. Verify that there is data from the past 30 days in the account before continuing.

  • To pause all ad-blocking software. Because Google authentication uses pop ups, you may encounter issues if ad blockers aren’t disabled during the setup.

  • To enable the Enable ECommerce setting in your Google Analytics account. If you have ECommerce data in your account, this setting is already enabled and you can move on.

Step 1: Add Google ECommerce as a Stitch data source

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click the Add Integration button.

  3. Click the Google ECommerce icon.

  4. Click Sign in with Google Analytics.

Step 2: Authorize Stitch and select a Google Analytics profile

  1. Next, you’ll be prompted to log into your Google account and to approve Stitch’s access to your Google ECommerce data. Note that we will only ever read your data.
  2. Click Allow to continue.
  3. After your credentials are validated, you’ll be prompted to select the Google Analytics profile you want to connect to Stitch:

    Selecting a Google Analytics profile.

    Remember: Profiles need to have Read & Analyze permissions to be detected by Stitch. If you don’t see the profile you want in this list, we recommend that you double-check the permission settings.

  4. When finished, click Continue to save the integration and complete the setup.

Step 3: Create a replication schedule

In the Replication Frequency section, you’ll create the integration’s replication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Google ECommerce integrations support the following replication scheduling methods:

To keep your row usage low, consider setting the integration to replicate less frequently. See the Understanding and Reducing Your Row Usage guide for tips on reducing your usage.

Initial and historical replication jobs

After you finish setting up Google ECommerce, its Sync Status may show as Pending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial replication job for the integration. This may take some time to complete.

Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.


Google ECommerce replication

Stitch replicates data in this way to account for updates made to existing records within the default attribution window of 15 days, thus ensuring you won’t make decisions based on stale (or false) data. As a result, you may see a higher number of replicated rows than what’s being generated in Google ECommerce.

Setting the Replication Frequency to a higher frequency - like 30 minutes - can result in re-replicating recent data and contribute to greater row usage. Selecting a lower frequency can help keep your row count low.


Google ECommerce table schemas

After the first successful sync of your Google ECommerce data, you’ll see a single table in your data warehouse. The table follows this naming convention:

ecommerce[GA profile id]_integration version

For example: ecommerce123456789_v2. In this case, the profile ID is 123456789 and the version of the ECommerce integration is 2.


ecommerce[YOUR_GA_PROFILE_ID]_v2

Replication Method :

Key-based Incremental

Replication Key :

start-date

Primary Key :

id

The ecommerce[YOUR_GA_PROFILE_ID]_v2 table contains ECommerce data from your Google Analytics account. Refer to the table schema for the metrics and dimensions that are included.

id
STRING

A unique ID generated during replication.

accountid
STRING

The account ID associated with your Google Analytics ECommerce account.

campaign
STRING

The campaign name (utm_campaign).

keyword
STRING

This column contains the keyword description (utm_term).

medium
STRING

This column contains the medium name (utm_medium).

profileid
STRING

Your Google Analytics profile ID.

profilename
STRING

Your Google Analytics profile name.

socialnetwork
STRING

This column contains the name of the social network (e.g. Facebook, YouTube, etc.)

source
STRING

This column contains the name of the order source. (utm_source).

transactionid
STRING

The order ID, which you can use to join the referral data back to your orders data. Refer to Google’s documentation for background on tracking setup and management.

transactions
INTEGER

The total number of transactions.



Questions? Feedback?

Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.