{"id":20336648,"url":"https://github.com/claytoncollie/tracking-code-for-google-tag-manager","last_synced_at":"2026-02-28T02:43:09.006Z","repository":{"id":56953956,"uuid":"316546979","full_name":"claytoncollie/tracking-code-for-google-tag-manager","owner":"claytoncollie","description":"Tracking Code For Google Tag Manager is a simple, lightweight WordPress plugin for inserting your Google Tag Manager tracking code. The plugin does one thing and one thing only; prints the standard Google Tag Manager tracking script in your website. ","archived":false,"fork":false,"pushed_at":"2026-02-22T13:09:24.000Z","size":341,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-22T13:16:18.846Z","etag":null,"topics":["composer","google-tag-manager","gtm","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/tracking-code-for-google-tag-manager/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/claytoncollie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2020-11-27T16:12:44.000Z","updated_at":"2024-07-05T10:42:26.000Z","dependencies_parsed_at":"2025-02-23T21:42:55.018Z","dependency_job_id":"707fd459-9690-4136-9012-7c7eab0f6f2f","html_url":"https://github.com/claytoncollie/tracking-code-for-google-tag-manager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/claytoncollie/tracking-code-for-google-tag-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-google-tag-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-google-tag-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-google-tag-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-google-tag-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/claytoncollie","download_url":"https://codeload.github.com/claytoncollie/tracking-code-for-google-tag-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-google-tag-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29923424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["composer","google-tag-manager","gtm","wordpress","wordpress-plugin"],"created_at":"2024-11-14T21:06:15.694Z","updated_at":"2026-02-28T02:43:08.990Z","avatar_url":"https://github.com/claytoncollie.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracking Code For Google Tag Manager\n\nTracking Code For Google Tag Manager is a simple, lightweight WordPress plugin for inserting your Google Tag Manager tracking code. The plugin does one thing and one thing only; prints the standard Google Tag Manager tacking script in your website. To insert your container ID, navigate to Settings \u003e General and then scroll to the bottom of the page.\n\n### Getting Started\n\n1. Upload `tracking-code-for-google-tag-manager` to the `/wp-content/plugins/` directory\n2. Activate the plugin through the 'Plugins' menu in WordPress\n3. Navigate to Settings \u003e General \u003e scroll to the bottom of the page\n4. Insert your container ID\n5. Save your changes\n\n### Composer\n\n`composer require claytoncollie/tracking-code-for-google-tag-manager`\n\n### Filters\n\nIf you want to set the container ID without using the wp-admin user interface, use the filter below.\n\n```php\nadd_filter(\n\t'tracking_code_for_google_tag_manager_id',\n\t/**\n\t * Set Google Tag Manager container ID.\n\t *\n\t * @param string $container_id Container ID.\n\t *\n\t * @return string\n\t */\n\tfunction ( $container_id ) {\n\t\treturn 'GTM-7654321';\n\t}\n);\n```\n\n### Frequently Asked Questions\n\n##### Why did you build this plugin?\n\nThe plugins I have used in the past to solve this problem have too many features for my liking. This plugin is comprised three functions. One for registering a settings field on the Options General page. And another two for printing the tracking code to the frontend. I want a lightweight solution for the websites that I build without all of the extra bells and whistles. If you are expecting this plugin to do more or grow in the future, please do not use it.\n\n##### Where is the tracking code inserted?\n\nThe tracking code is inserted into the `\u003chead\u003e` and `\u003cbody\u003e` sections.\n\n##### Will this plugin slow down my website?\n\nNo. This plugin is intentionally lightweight. All it does is register a settings field, saves to the database, and then inserts the tracking code. Nothing more.\n\n##### I found a bug. How do I report it?\n\nhttps://github.com/claytoncollie/tracking-code-for-google-tag-manager/issues\n\n##### Can I use this plugin with Composer?\n\nhttps://packagist.org/packages/claytoncollie/tracking-code-for-google-tag-manager\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-google-tag-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-google-tag-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-google-tag-manager/lists"}