{"id":30258818,"url":"https://github.com/darksidepro/sylius-gtm-plugin","last_synced_at":"2026-01-20T16:35:35.231Z","repository":{"id":308159570,"uuid":"1013832287","full_name":"DarkSidePro/sylius-gtm-plugin","owner":"DarkSidePro","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-12T15:28:53.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-12T16:11:07.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DarkSidePro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-07-04T14:37:26.000Z","updated_at":"2025-08-04T15:14:31.000Z","dependencies_parsed_at":"2025-08-04T16:43:56.141Z","dependency_job_id":null,"html_url":"https://github.com/DarkSidePro/sylius-gtm-plugin","commit_stats":null,"previous_names":["darksidepro/sylius-gtm-plugin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DarkSidePro/sylius-gtm-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSidePro%2Fsylius-gtm-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSidePro%2Fsylius-gtm-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSidePro%2Fsylius-gtm-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSidePro%2Fsylius-gtm-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarkSidePro","download_url":"https://codeload.github.com/DarkSidePro/sylius-gtm-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkSidePro%2Fsylius-gtm-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602496,"owners_count":24614274,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"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":[],"created_at":"2025-08-15T17:17:51.443Z","updated_at":"2026-01-20T16:35:35.181Z","avatar_url":"https://github.com/DarkSidePro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sylius Google Tag Manager Plugin\n\nIntegracja Google Tag Manager (GTM) z Sylius 2.x. Plugin umożliwia automatyczne wysyłanie eventów e-commerce do dataLayer GTM, takich jak:\n- add_to_cart\n- remove_from_cart\n- view_item\n- view_item_list\n- add_payment_info\n- begin_checkout\n- purchase\n\ni inne zgodne z Enhanced Ecommerce.\n\n## Instalacja\n\n1. Zainstaluj plugin przez Composer:\n\n```\ncomposer require darksidepro/sylius-gtm-plugin\n```\n\n2. Dodaj do pliku `.env`:\n\n```\nGTM_CONTAINER_ID=GTM-XXXXXXX\n```\n\n3. Zaimportuj szablony GTM w swoim layoutcie:\n\nW `\u003chead\u003e`:\n```twig\n{% include '@DarkSideProSyliusGtmPlugin/Gtm/head.html.twig' with { gtm_container_id: gtm_config_provider.getContainerId() } %}\n```\n\nZaraz po otwarciu `\u003cbody\u003e`:\n```twig\n{% include '@DarkSideProSyliusGtmPlugin/Gtm/body.html.twig' with { gtm_container_id: gtm_config_provider.getContainerId() } %}\n```\n\n4. Upewnij się, że serwis `GtmConfigProvider` jest dostępny w Twig (np. przez własny TwigExtension lub globalną zmienną).\n\n5. Plugin automatycznie obsługuje eventy e-commerce i przekazuje je do dataLayer przez flashBag/session.\n\n## Tłumaczenia\nPliki tłumaczeń znajdują się w `src/Resources/translations/`.\n\n## Testy\nTesty jednostkowe znajdują się w katalogu `tests/`. Uruchomisz je przez:\n\n```\nvendor/bin/phpunit\n```\n\n## Wsparcie dla Sylius Plus\nPlugin wspiera wielosklepowość i jest zgodny z Sylius Plus.\n\n## Licencja\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarksidepro%2Fsylius-gtm-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarksidepro%2Fsylius-gtm-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarksidepro%2Fsylius-gtm-plugin/lists"}