{"id":16365015,"url":"https://github.com/alexpunct/google-tag-manager","last_synced_at":"2025-04-14T13:21:52.388Z","repository":{"id":74356164,"uuid":"47491326","full_name":"alexpunct/google-tag-manager","owner":"alexpunct","description":"Magento Google Tag Manager Extension with dataLayer and GA eCommerce support","archived":false,"fork":false,"pushed_at":"2015-12-18T11:44:38.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T13:21:47.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/alexpunct.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":"2015-12-06T09:55:13.000Z","updated_at":"2018-03-16T15:06:16.000Z","dependencies_parsed_at":"2023-03-21T01:51:07.348Z","dependency_job_id":null,"html_url":"https://github.com/alexpunct/google-tag-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpunct%2Fgoogle-tag-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpunct%2Fgoogle-tag-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpunct%2Fgoogle-tag-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpunct%2Fgoogle-tag-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexpunct","download_url":"https://codeload.github.com/alexpunct/google-tag-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"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":[],"created_at":"2024-10-11T02:42:21.825Z","updated_at":"2025-04-14T13:21:52.343Z","avatar_url":"https://github.com/alexpunct.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Tag Manager for Magento\n\nFully featured Google Tag Manager extension for Magento CE. \n\nCurrent module version: 1.0.0\nTested on Magento Community Edition 1.x. \n\n### 1. Features\n\n* GTM script embedded in all pages\n\n* dataLayer implementation:\n\n\t* Magento context sent via dataLayer (default *disabled*)\n\t\n\t\t* **magentoModule** - the request module name (example: `catalog` for product and category pages, `checkout` for cart and checkout, `cms` for homepage or other CMS pages)\n    \t* **magentoController** - the request controller name (example: `product` for product pages, `category` for category pages, `cart` for cart, `onepage` for one page checkout, `index` for homepage)\n    \t* **magentoAction** - the request action name (example: `view` for products and categories, `index` for cart and one page checkout, `index` for homepage)\n    \t* **customerGroupId** - the Customer Group Id (example: `0` for Not Logged In customers, `1` for Logged in customers in the General group). The groups can be found and modified in `Customers \u003e Customer Groups` in admin\n    \t* **storeCode** - the current Store Code (example: `default`)\n    \t* **storeId** - the current Store Id (example: `1`)\n    \t* **locale** - the locale code for the current store (example: `en_GB`)\n\n\t* Category Page data (default *disabled*)\n\t\n\t\t* **categoryId** - the category id (example: `10`)\n    \t* **categoryName** - category name (example: `Accessories`)\n    \t* **categoryIsAnchor** - whether is an anchor category (example: `1` or `0`). An anchor category is one that has enabled the left column with the category filters\n    \t* **categoryProductsCount** - number of products in the category (example: `20`)\n    \t* **categoryCmsBlockId** - the CMS block associated to the category, if any. Each category can be set to display only products or a CMS block and products or only a CMS block (example: `7`)\n    \t* **categoryDisplayMode** - the category display mode (example: `PRODUCTS` for products only, `PAGE` for CMS block only or `PRODUCTS_AND_PAGE` for both CMS blocks and products)\n    \t* **pageCategory** - current section (hardcoded to `category`). You can also use this to filter only category pages in GTM\n\t\n\t* Product Page data (default *disabled*)\n\t\n\t\t* **productId** - the product id (example: `111`)\n    \t* **productSku** - the product unique identifier for your business, known as **SKU** (example: `abc-123`)\n    \t* **productName** - the product name (Example: `Retro chic eyeglasses`)\n    \t* **productType** - the product type id (Example: `simple` or `configurable` or `bundle` or `downloadable`)\n    \t* **productInStock** - whether the product is in stock (example: `0` or `1`)\n    \t* **productPrice** - the product price (example: `295.0000`)\n    \t* **productSpecialPrice** - the product special price, if exists (example: `250.0000`). You can use this to identify if a product is on discount.\n    \t* **pageCategory** - current section (hardcoded to `product`). You can also use this to filter only product pages in GTM\n\t\n\t* Order Success page (default ***enabled***). **This IS compatible with Google Analytics Ecommerce tracking.**\n\t    \n\t    * **transactionId** - the Magento order increment id (example: `145000018`)\n        * **transactionAffiliation** - the store id where the order was placed (example: `1`)\n        * **transactionTotal** - the order grand total in the currency it was placed (example: `383.0900`)\n        * **transactionProducts** - the list of products in the order as array (example: `[{\"name\":\"Retro Chic Eyeglasses\",\"sku\":\"ace002\",\"category\":\"\",\"price\":\"295.0000\",\"quantity\":\"1.0000\"}]`)\n        * **transactionShipping** - the shipping amount (example: `88.0900`)\n        * **transactionTax** - the transaction tax amount (example: `10.0000`)\n        * **transactionCurrency** - the currency the transaction was placed in (example: `GBP`)\n        * **pageCategory** - current section (hardcoded to `new_order`). You can also use this to filter only the order success page in GTM\n\t\nA demo of the module implemented can be found here: http://sandbox.bitloop.co.uk. You can inspect the page using firebug and search for `Google Tag Manager` or you can use the `Tag Assistant` Chrome Extension by Google.\n\t\n### 2. Installation\n\nJust clone the repo or download the files, then add them to your Magento installation, relative to the Magento root folder.\n\n### 3. Configuration\n\nThe configuration is located in `System \u003e Configuration \u003e BitLoop \u003e Google Tag Manager`.\n\n##### 3.1 General Configuration\n\n* Enabled (default No)\n\nWhether to enable Google Tag Manager on your website/store\n\n* Container ID\n\nYour Google Tag Manager Container ID. Provided by Google when you create a new container inside GTM. Recommended is to have one container even if you have multiple domains.\n\n##### 3.2 Data Layer Configuration\n\n* Send Magento Context data (default No)\n\n    When set to Yes, it sends to GTM custom parameters about each page view that you can capture, analyse or use them as triggers in GTM\n\n* Category page data (default No)\n\n    Send to GTM the data associated with the current category when on a category page\n\n* Product page data (default No)\n\n    Send to GTM the data associated with the current product when on a product page\n\n* Order Success page (default Yes). \n\n    Send to GTM transaction data once the order has been placed. \n\n### 4. License, Contributions and Support\n\nThis module is free to use and modify as you please. \n\nIf you want to contribute to this project, please email support.\n\nIf you have any special requests or you need custom configuration or installation please email support.\n\nAny support issues can be submitted to support@bitloop.co.uk.\n\n### 5. Upcoming features and fixes\n\n* Universal analytics enhanced E-commerce support\n\n* Set the numeric values as integers\n\n* Deploy via magento connect\n\n* Ability to choose in the config which fields you send individually\n\n* Events integration\n\n* Support for Magento Enterprise Full Page Cache","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpunct%2Fgoogle-tag-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexpunct%2Fgoogle-tag-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpunct%2Fgoogle-tag-manager/lists"}