{"id":19774372,"url":"https://github.com/wpperformance/wp-performance-partytown","last_synced_at":"2025-04-30T18:33:07.583Z","repository":{"id":171049978,"uuid":"549815971","full_name":"wpperformance/wp-performance-partytown","owner":"wpperformance","description":"Partytown in your WordPress","archived":false,"fork":false,"pushed_at":"2023-01-08T10:02:13.000Z","size":94,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-30T11:46:36.707Z","etag":null,"topics":["partytown","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpperformance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-11T19:32:10.000Z","updated_at":"2024-04-02T17:41:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ba55c7a-778c-4fb9-9e71-fd370f7dbd0e","html_url":"https://github.com/wpperformance/wp-performance-partytown","commit_stats":null,"previous_names":["wp-performance/wp-performance-partytown","wpperformance/wp-performance-partytown"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpperformance%2Fwp-performance-partytown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpperformance%2Fwp-performance-partytown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpperformance%2Fwp-performance-partytown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpperformance%2Fwp-performance-partytown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpperformance","download_url":"https://codeload.github.com/wpperformance/wp-performance-partytown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219485,"owners_count":17275477,"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":["partytown","wordpress","wordpress-plugin"],"created_at":"2024-11-12T05:12:46.406Z","updated_at":"2024-11-12T05:12:47.423Z","avatar_url":"https://github.com/wpperformance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Partytown in your WordPress\n\n### 🚨 Be careful, the proxy php is a experimental code. You can use it, but i'm not responsible of the security of your website\n\n\nThis plugin add [Partytown](https://partytown.builder.io/) available for your website\n\n\nIf you use proxy, set the cache lifetime to max 8h for avoid nonce bug.\n\n\n## For use Proxy PHP, add this line in your wp-config.php.\n\n☝🏻 use it only if you know what you do\n\n```\ndefine('PR_PROXY', true);\n```\n\nThe proxy is only necessary when service don't have ```Access-Control-Allow-Origin: *``` in response.\nFor example, Google Analytics, has this CORS headers.\nMore informations, [here](https://partytown.builder.io/proxying-requests)\n\n\n## Define proxy key for connected users. In your wp-config.php\n\n```\ndefine('PR_PROXY_KEY', 'key of your choice');\n```\n\n## Debug =\u003e In your wp-config.php\n\n```\ndefine('PR_DEBUG', true);\n```\n\n\n## Add script for partytown\n\nJuste add type \"text/partytown\" in ```\u003cscript\u003e``` tag\n\nExample :\n```\n\u003c!-- Google Tag Manager --\u003e\n\u003cscript type=\"text/partytown\"\u003e(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'\u0026l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','');\u003c/script\u003e\n\u003c!-- End Google Tag Manager --\u003e\n```\n\n\n## Launch partytown parsing after cookie acceptation\n\nDispatch load event for trigger partytown parsing.\n```\nconst load = new Event('load');\nwindow.dispatchEvent(load)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpperformance%2Fwp-performance-partytown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpperformance%2Fwp-performance-partytown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpperformance%2Fwp-performance-partytown/lists"}