{"id":21262886,"url":"https://github.com/stackql/docusaurus-plugin-hubspot","last_synced_at":"2025-07-11T04:31:27.542Z","repository":{"id":57214375,"uuid":"424079013","full_name":"stackql/docusaurus-plugin-hubspot","owner":"stackql","description":"Plugin to enable Hubspot with Docusaurus","archived":false,"fork":false,"pushed_at":"2023-01-24T04:33:07.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T11:44:45.911Z","etag":null,"topics":["docusaurus","docusaurus-v2","hubspot","javascript","plugin","react"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/stackql.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":"2021-11-03T03:23:49.000Z","updated_at":"2023-12-20T13:25:39.000Z","dependencies_parsed_at":"2023-02-13T17:25:18.815Z","dependency_job_id":null,"html_url":"https://github.com/stackql/docusaurus-plugin-hubspot","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/stackql%2Fdocusaurus-plugin-hubspot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fdocusaurus-plugin-hubspot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fdocusaurus-plugin-hubspot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackql%2Fdocusaurus-plugin-hubspot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackql","download_url":"https://codeload.github.com/stackql/docusaurus-plugin-hubspot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225674895,"owners_count":17506272,"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":["docusaurus","docusaurus-v2","hubspot","javascript","plugin","react"],"created_at":"2024-11-21T04:59:38.498Z","updated_at":"2025-07-11T04:31:27.537Z","avatar_url":"https://github.com/stackql.png","language":"JavaScript","readme":"# docusaurus-plugin-hubspot\n\nPlugin for [Docusaurus](https://docusaurus.io/) to [install the HubSpot Tracking code](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code). Allowing HubSpot to monitor your Docusaurus site traffic.\n\nThe following script tag is inserted into the head tag\n\n```html\n\u003c!-- Start of HubSpot Embed Code --\u003e\n\u003cscript type=\"text/javascript\" id=\"hs-script-loader\" async defer src=\"//js.hs-scripts.com/YOUR_HUB_ID.js\"\u003e\u003c/script\u003e\n\u003c!-- End of HubSpot Embed Code --\u003e\n```\n\n## Installation\n\nInstall the package using your preferred package manager\n\n### npm\n\n```bash\nnpm install --save docusaurus-plugin-hubspot\n```\n\n### Yarn\n\n```bash\nyarn add docusaurus-plugin-hubspot\n```\n\n### pnpm\n\n```bash\npnpm add docusaurus-plugin-hubspot\n```\n\n## Configuration\n\n| Name        | Type      | Default      | Description            |\n| :---------: | :-------: | :----------: |:---------------------: |\n| `hubId`     | `number`  | **Required** | [Hub ID](https://knowledge.hubspot.com/account-management/manage-multiple-hubspot-accounts#check-your-current-account) identifies your company's account |\n| `async`     | `boolean` | `true`       | sets the async attribute on the script tag |\n| `defer`     | `boolean` | `true`       | sets the defer attribute on the script tag |\n\n### Example configuration\n\nTo configure the plugin add the plugins and options to `docusaurus.config.js`\n\n```js\n{\n  plugins: [\n    [\n      'docusaurus-plugin-hubspot',\n      {\n        hubId: YOUR_HUB_ID,  \n        async: true, \n        defer: true,\n      }\n    ],\n    ...\n  ]\n}\n```\n\n## Troubleshooting\n\nIf you are experiencing issues refer to HubSpot Support article for \"[Troubleshoot the HubSpot tracking code](https://knowledge.hubspot.com/reports/how-do-i-know-if-my-hubspot-tracking-code-is-working).\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackql%2Fdocusaurus-plugin-hubspot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackql%2Fdocusaurus-plugin-hubspot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackql%2Fdocusaurus-plugin-hubspot/lists"}