Workflow: Manual Googleanalytics Import

Workflow Details

Download Workflow
{
    "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": "analytics-dev"
            },
            "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": "Airtable Credentials n8n"
            },
            "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
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Effortless Email Management with AI
View
Slack Stickynote Automate Webhook
View
Create Onfleet tasks from Spreadsheets
View
HTTP Slack Create Webhook
View
Webhook Slack Create Webhook
View
Splitout Code Monitor Scheduled
View
OpenAI Assistant for Hubspot Chat
View
Filter Summarize Send Scheduled
View
Syncro Alert to OpsGenie
View
Manual Executecommand Automate Triggered
View