Google Analytics

Google Analytics enables you to measure and report on user activity on websites, web and mobile apps, and internet-connected devices.

Integrate the Google Analytics API with the Google Sheets API

Setup the Google Analytics API trigger to run a workflow which integrates with the Google Sheets API. Pipedream's integration platform allows you to integrate Google Analytics and Google Sheets remarkably fast. Free for developers.

Add Single Row with Google Sheets API on Page Opened from Google Analytics API
Google Analytics + Google Sheets
 
Try it
Add Multiple Rows with Google Sheets API on Page Opened from Google Analytics API
Google Analytics + Google Sheets
 
Try it
Get Values with Google Sheets API on Page Opened from Google Analytics API
Google Analytics + Google Sheets
 
Try it
Get Values in Range with Google Sheets API on Page Opened from Google Analytics API
Google Analytics + Google Sheets
 
Try it
Clear Cell with Google Sheets API on Page Opened from Google Analytics API
Google Analytics + Google Sheets
 
Try it
New Page Opened from the Google Analytics API

Emit new event when a page is viewed

 
Try it
New Row Added (Instant) from the Google Sheets API

Emit new events each time a row or rows are added to the bottom of a spreadsheet. To use this source with a spreadsheet in a Shared Drive, use the New Row Added (Shared Drive, Instant) source instead.

 
Try it
New Row Added (Shared Drive, Instant) from the Google Sheets API

Emit new events each time a row or rows are added to the bottom of a spreadsheet in a shared drive

 
Try it
New Updates (Instant) from the Google Sheets API

Emit new event each time a row or cell is updated in a spreadsheet. To use this source with a spreadsheet in a Shared Drive, use the New Updates (Shared Drive, Instant) source instead.

 
Try it
New Updates (Shared Drive, Instant) from the Google Sheets API

Emit new event each time a row or cell is updated in a spreadsheet in a shared drive

 
Try it
Create GA4 Property with the Google Analytics API

Creates a new GA4 property. See the documentation

 
Try it
Add Single Row with the Google Sheets API

Add a single row of data to Google Sheets

 
Try it
Add Multiple Rows with the Google Sheets API

Add multiple rows of data to a Google Sheet

 
Try it
Run Report with the Google Analytics API

Return report metrics based on a start and end date. See the docs here

 
Try it
Get Values with the Google Sheets API

Get all values from a sheet.

 
Try it

Overview of Google Analytics

The Google Analytics API lets you access data from your Google Analytics
account to build custom reports and dashboards. With the API, you can query
data from your account, customize the data returned, and access data in real
time.

Here are some examples of what you can build with the Google Analytics API:

  • A dashboard to track your website's traffic
  • A report to show which keywords are driving traffic to your website
  • A tool to track how users are interacting with your website
  • A report to show which browsers and devices are being used to access your
    website
  • A tool to track conversions and goal completions on your website

Connect Google Analytics

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_analytics: {
      type: "app",
      app: "google_analytics",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.google_analytics.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Google Sheets

Some examples of things you can build using the Google Sheets API include:

  • A web app that lets users input data into a Google Sheet
  • A script that automatically updates a Google Sheet with data from another
    source
  • A tool that generates graphs and charts from data in a Google Sheet
  • A service that sends data from a Google Sheet to another API or application

Connect Google Sheets

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_sheets: {
      type: "app",
      app: "google_sheets",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.google_sheets.$auth.oauth_access_token}`,
      },
    })
  },
})
Using Event Sources and Workflows: Analyze Twitter Sentiment in Real-Time and Save to Google Sheets
Using Event Sources and Workflows: Analyze Twitter Sentiment in Real-Time and Save to Google Sheets
Learn how you can use Pipedream event sources and serverless workflows to listen for new Twitter mentions, analyze the sentiment of each Tweet using the npm sentiment package (https://www.npmjs.com/package/sentiment), and then save that data to Google Sheets in real-time.
Save Zoom Cloud Recordings to Google Drive and Share on Slack
Save Zoom Cloud Recordings to Google Drive and Share on Slack
Save Zoom Cloud Recordings to Google Drive and Share on Slack.
Entering Data in Params Forms
Entering Data in Params Forms
Learn about the new model to enter expressions and reference previous step exports in params forms.

Community Posts

Building a Google Sheets Twitter Bot with Pipedream
Building a Google Sheets Twitter Bot with Pipedream
This is something that's been kicking around my head for a week or so and today I thought I'd try it. It ended up taking about 20 minutes total and 10 lines of code, of which 5 are a function I copied and pasted. While what I built is kind of trivial, I'm blown away by how much was done by built-in functions with Pipedream and how little work I had to do myself. In fact, most of my time was spent in setting stuff up outside of Pipedream itself. Alright, so what did I build?
Building a Twitter Scheduling System with Pipedream and Google Sheets
Building a Twitter Scheduling System with Pipedream and Google Sheets
A few months ago, I blogged about how I used Pipedream and Google Sheets to create a Twitter bot. The idea was simple - read a sheet - select a random row - and use that as the source of a new Tweet. I was thinking about this recently and how useful Google Sheets can be as a "light weight CMS" and figured out another interesting use case - Twitter scheduling.
Logging user credit changes using Google Sheets and Pipedream
Logging user credit changes using Google Sheets and Pipedream
One of the nice features SuperSaaS is a credit system which allows end-users to buy credit once and then easily pay for appointments without needing to go through the checkout each time. There are multiple things that can affect a credit balance. Credit purchases and new appointment, obviously, but also refunds due to canceled appointments, and manual credit adjustments by a superuser. This post is a step-by-step tutorial for setting up the logging of user credit information to a Google Sheet using Pipedream, a powerful API integration service.