{"id":14968660,"url":"https://github.com/gridonic/commerce_google_tag_manager","last_synced_at":"2025-10-26T05:30:38.041Z","repository":{"id":47773381,"uuid":"154511911","full_name":"gridonic/commerce_google_tag_manager","owner":"gridonic","description":" Provides Commerce integration for Enhanced Ecommerce via Google Tag Manager","archived":false,"fork":false,"pushed_at":"2021-08-13T14:59:49.000Z","size":167,"stargazers_count":3,"open_issues_count":6,"forks_count":3,"subscribers_count":4,"default_branch":"8.x-1.x","last_synced_at":"2025-01-31T15:11:31.604Z","etag":null,"topics":["drupal-commerce","drupal8","enhanced-ecommerce","google-tag-manager"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/commerce_google_tag_manager","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gridonic.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}},"created_at":"2018-10-24T14:06:14.000Z","updated_at":"2021-08-13T14:19:21.000Z","dependencies_parsed_at":"2022-09-23T19:32:15.469Z","dependency_job_id":null,"html_url":"https://github.com/gridonic/commerce_google_tag_manager","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcommerce_google_tag_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcommerce_google_tag_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcommerce_google_tag_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridonic%2Fcommerce_google_tag_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridonic","download_url":"https://codeload.github.com/gridonic/commerce_google_tag_manager/tar.gz/refs/heads/8.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264672,"owners_count":19443388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["drupal-commerce","drupal8","enhanced-ecommerce","google-tag-manager"],"created_at":"2024-09-24T13:40:22.146Z","updated_at":"2025-10-26T05:30:37.697Z","avatar_url":"https://github.com/gridonic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commerce Google Tag Manager Enhanced Ecommerce\n\nProvides Commerce integration for Enhanced Ecommerce via Google Tag Manager.\n\n## Features\n\nThe module tracks the following [Enhanced Ecommerce](https://developers.google.com/tag-manager/enhanced-ecommerce)\nevents:\n\n* **Views of Product Details** when viewing a commerce product entity.\n* **Additions or Removals from cart**\n* **Checkout** with the possibility to track checkout options\n* **Purchases**\n\nAll events are tracked server-side and stored in the session. The next \"regular\" page view\nloads all stored events via ajax and pushes them to Google Tag Manager via data layer.\n\nThe module offers a service to track other Enhanced Ecommerce events such as _Product Impressions_.\n\n## Configuration\n\nThe module does (currently) not offer any configuration options. The configuration is\nhandled inside Google Analytics and Google Tag Manager.\n\n### Google Analytics\n\n* Enable `Ecommerce` and `Enhanced Ecommerce Reporting` in the settings of your property\n* Add labels for each checkout step under `Checkout Labeling` (optional) \n\n### Google Tag Manager\n\nYou need to create separate tags and triggers for each of the tracked Enhanced Ecommerce events.\n\nFirst of all, create triggers of event type `Custom Event` with the following event\nnames:\n\n* `addToCart`\n* `removeFromCart`\n* `productDetailViews`\n* `checkout`\n* `purchase`\n\nNext, create tags for each trigger:\n\n* Set the tag type to `Google Analytics - Universal Analytics`\n* Set the track type to `Event`\n* Set the category to `Ecommerce`\n* Set the corresponding action, e.g. `Add to Cart`\n* Reference your Google Analytics settings.\nImportant: The settings need the options `Enable Enhanced Ecommerce Features` and `Use data layer`\nto be activated. You can either create a new Google Analytics settings variable or override these\noptions for the existing Google Analytics setting.\n* Select the correct trigger, e.g. `addToCart`\n\n## Testing and Debugging\n\n* Enable Preview in Google Tag Manager\n* In the same browser, navigate to the website and check that the debug window is displayed\n* Verify that the Enhanced Ecommerce tags are fired e.g. by visiting a product page, adding \nproducts to the cart or going through the checkout process.\n* Check the Ecommerce reports in Google Analytics.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridonic%2Fcommerce_google_tag_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridonic%2Fcommerce_google_tag_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridonic%2Fcommerce_google_tag_manager/lists"}