AutomationFlowsMarketing & Ads › Get analytics of a website and store it Airtable

Get analytics of a website and store it Airtable

Get analytics of a website and store it Airtable. Uses manualTrigger, googleAnalytics, airtable. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesGoogle AnalyticsAirtable
Marketing & Ads Trigger: Event Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "205",
  "name": "Get analytics of a website and store it Airtable",
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        270,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Google Analytics",
      "type": "n8n-nodes-base.googleAnalytics",
      "position": [
        470,
        300
      ],
      "parameters": {
        "viewId": "",
        "additionalFields": {
          "metricsUi": {
            "metricValues": [
              {
                "alias": "Sessions",
                "expression": "ga:sessions"
              }
            ]
          },
          "dimensionUi": {
            "dimensionValues": [
              {
                "name": "ga:country"
              }
            ]
          },
          "dateRangesUi": {
            "dateRanges": {
              "endDate": "2020-08-30T18:30:00.000Z",
              "startDate": "2019-12-31T18:30:00.000Z"
            }
          }
        }
      },
      "credentials": {
        "googleAnalyticsOAuth2": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        670,
        300
      ],
      "parameters": {
        "values": {
          "number": [
            {
              "name": "Metric",
              "value": "={{$json[\"total\"]}}"
            }
          ],
          "string": [
            {
              "name": "Country",
              "value": "={{$json[\"ga:country\"]}}"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    },
    {
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        870,
        300
      ],
      "parameters": {
        "table": "Table 1",
        "options": {},
        "operation": "append",
        "application": ""
      },
      "credentials": {
        "airtableApi": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Analytics": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Google Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Get analytics of a website and store it Airtable. Uses manualTrigger, googleAnalytics, airtable. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →