{"id":22743410,"url":"https://github.com/stape-io/spreadsheet-tag","last_synced_at":"2026-01-27T19:50:49.633Z","repository":{"id":134834588,"uuid":"477322946","full_name":"stape-io/spreadsheet-tag","owner":"stape-io","description":"Google Sheets tag for Google Tag Manager Server Side","archived":false,"fork":false,"pushed_at":"2025-07-24T20:31:22.000Z","size":283,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-17T06:19:15.597Z","etag":null,"topics":["google","gtm","gtm-custom-template","gtm-server-side","spreadsheet","spreadsheets","stape"],"latest_commit_sha":null,"homepage":"https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets","language":"Smarty","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stape-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-03T11:38:15.000Z","updated_at":"2025-09-22T14:41:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"280497a3-2f89-4df3-8706-271bae08f722","html_url":"https://github.com/stape-io/spreadsheet-tag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stape-io/spreadsheet-tag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stape-io%2Fspreadsheet-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stape-io%2Fspreadsheet-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stape-io%2Fspreadsheet-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stape-io%2Fspreadsheet-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stape-io","download_url":"https://codeload.github.com/stape-io/spreadsheet-tag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stape-io%2Fspreadsheet-tag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28819904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","gtm","gtm-custom-template","gtm-server-side","spreadsheet","spreadsheets","stape"],"created_at":"2024-12-11T01:22:37.324Z","updated_at":"2026-01-27T19:50:49.628Z","avatar_url":"https://github.com/stape-io.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Sheets Tag for Google Tag Manager Server-Side\n\nThe **Google Sheets Tag** for Google Tag Manager Server-Side allows you to send data directly from your server container to a specified Google Sheet. This enables you to log events, capture form submissions, or store any other data for analysis and reporting.\n\nThe tag supports two primary actions:\n\n- **Add row**: Appends a new row with your specified data to the end of the selected range.\n- **Update cells**: Overwrites the data in a specific cell or range of cells.\n\n## How to use the Google Sheets Tag\n\n1.  Add the **Google Sheets Tag** to your server container in GTM.\n2.  Select the **Action Type** (`Add row` or `Update cells`).\n3.  Provide the **Spreadsheet URL** of the Google Sheet you want to write to.\n4.  **(Optional)** Specify the Sheet Name (e.g., `Sheet1`). If omitted, the first visible sheet will be used.\n5.  Specify the **Rows Range** using A1 notation (e.g., `A1:Z1`).\n6.  In the **Data** section, map the values you want to send to the sheet. Each entry corresponds to a cell in the specified range.\n7.  Choose your **Authentication** method.\n    - **Stape Google Connection** – Uses a simplified setup via Stape's connection.\n    - **Own Google Credentials** – Uses Application Default Credentials from your GCP environment.\n8.  Add a trigger to fire the tag.\n\n\n## Parameters\n\n### Main Configuration\n- **Type**: The action to perform.\n    - **Add row**: Appends data. The `Rows Range` parameter will be used to determine the last row of the table to append the new data.\n    - **Update cells**: Replaces data in the specified `Rows Range`.\n- **Spreadsheet URL**: The full URL of the target Google Spreadsheet.\n- **Sheet Name**: The name of the specific sheet (tab) within the spreadsheet you want to write to. This is optional if the sheet name is included in the `Rows Range`.\n- **Rows Range**: The A1 notation of the range to interact with. For example, `A1:D1` for the first four columns of the first row. If `Sheet Name` is not provided, you can specify it here (e.g., `'My Sheet'!A1:D1`).\n\n### Authentication Credentials\n- **Auth Type**:\n    - **Stape Google Connection**: A simplified authentication method for Stape users. Requires enabling the **Google Sheets Connection** in your container settings. [Learn more](https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets#google-sheets-connection).\n    - **Own Google Credentials**: Uses Application Default Credentials from a Google Cloud Platform environment. This requires enabling the Google Sheets API on GCP, setting up a service account and granting it access to your Google Sheet. [Learn more](https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets#how-to-set-google-sheets-tag-up-for-non-stape-userstials).\n\n\n### Data\n- **Data List**: A table where you define the values to be sent. Each \"Cell Value\" you add will be placed in the next available cell of the `Rows Range` you defined (from left to right).\n\n## Useful resources\n\n- [How to write data from server Google Tag Manager to Google Sheets](https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets)\n- [How to set up the Stape Google Connection](https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets#google-sheets-connection)\n- [How to set up the Own Google Credentials](https://stape.io/blog/write-data-from-server-google-tag-manager-to-google-sheets#how-to-set-google-sheets-tag-up-for-non-stape-users)\n\n## Open Source\n\nThe **Google Sheets Tag for GTM Server-Side** is developed and maintained by the [Stape Team](https://stape.io/) under the Apache 2.0 license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstape-io%2Fspreadsheet-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstape-io%2Fspreadsheet-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstape-io%2Fspreadsheet-tag/lists"}