{"id":20341846,"url":"https://github.com/claytoncollie/tracking-code-for-twitter-pixel","last_synced_at":"2026-05-02T11:40:56.541Z","repository":{"id":56953501,"uuid":"316587511","full_name":"claytoncollie/tracking-code-for-twitter-pixel","owner":"claytoncollie","description":"Tracking Code For Twitter Pixel is a simple, lightweight WordPress plugin for inserting your Twitter Pixel tracking code. The plugin does one thing and one thing only; prints the standard Twitter Pixel tracking script to the \u003chead\u003e of your website.","archived":false,"fork":false,"pushed_at":"2024-07-05T10:23:21.000Z","size":302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T08:17:52.241Z","etag":null,"topics":["composer","twitter","twitter-pixel-tracking","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/tracking-code-for-twitter-pixel/","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}},"created_at":"2020-11-27T19:48:47.000Z","updated_at":"2024-07-05T10:23:25.000Z","dependencies_parsed_at":"2022-08-21T04:10:25.531Z","dependency_job_id":null,"html_url":"https://github.com/claytoncollie/tracking-code-for-twitter-pixel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-twitter-pixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-twitter-pixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-twitter-pixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claytoncollie%2Ftracking-code-for-twitter-pixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/claytoncollie","download_url":"https://codeload.github.com/claytoncollie/tracking-code-for-twitter-pixel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241868886,"owners_count":20033919,"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":["composer","twitter","twitter-pixel-tracking","wordpress","wordpress-plugin"],"created_at":"2024-11-14T21:29:28.517Z","updated_at":"2026-05-02T11:40:51.519Z","avatar_url":"https://github.com/claytoncollie.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracking Code For Twitter Pixel\n\nTracking Code For Twitter Pixel is a simple, lightweight WordPress plugin for inserting your Twitter Pixel tracking code. The plugin does one thing and one thing only; prints the standard Twitter Pixel tacking script to the `\u003chead\u003e` of your website. To insert your tag 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-twitter-pixel` 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 tag ID\n5. Save your changes\n\n### Composer\n\n`composer require claytoncollie/tracking-code-for-twitter-pixel`\n\n### Filters\n\nIf you want to set the tag ID without using the wp-admin user interface, use the filter below.\n\n```php\nadd_filter(\n\t'tracking_code_for_twitter_pixel_id',\n\t/**\n\t * Set Twitter Pixel tag ID.\n\t *\n\t * @param string $tag_id Tag ID.\n\t *\n\t * @return string\n\t */\n\tfunction ( $tag_id ) {\n\t\treturn '123456789';\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 two functions. One for registering a settings field on the Options General page. And another 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` section.\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-twitter-pixel/issues\n\n##### Can I use this plugin with Composer?\n\nhttps://packagist.org/packages/claytoncollie/tracking-code-for-twitter-pixel\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-twitter-pixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-twitter-pixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaytoncollie%2Ftracking-code-for-twitter-pixel/lists"}