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

DSP Certificate w/ Google Forms
View
Manual Ical Send Triggered
View
Wait Code Send Webhook
View
Receive updates when a billing plan is activated in PayPal
View
HTTP Rssfeedread Create Webhook
View
Agentic Telegram AI bot with LangChain nodes and new tools
View
Automated Image Metadata Tagging (Community Node)
View
Splitout Filter Automation Webhook
View
Telegram Code Create Triggered
View
Wait Limit Update Webhook
View