Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site’s head, clear your cache, then verify.
You open the Cometly Pixel Helper (a Google Chrome extension) on one of your pages and it does not detect the base code. “Base code” is the Pixel Helper’s name for the Cometly pixel, the script that tracks where your website visitors come from and captures opt-in data from your forms.A Cometly pixel not detected usually comes down to one of three things: the Pixel Helper session was not started before the page loaded, the pixel is missing from the page or does not match the script Cometly shows for your space, or your browser is showing an old cached copy of the page. Cometly only tracks the pages that carry the pixel, so fix this before you rely on the data from that page.
Fix a Cometly pixel not detected on your page
Make sure you are using the Cometly Pixel Helper correctly. Click Start, then reload the page.
Make sure the Cometly pixel is in the <head> of every page of your website, and that it matches the script Cometly shows for your space. In Cometly, go to Setup > Install the Cometly pixel and find the code under Install the pixel. By default it is a single script tag:
You can also check the pixel without the extension. In Cometly, go to Setup > Install the Cometly pixel and click Verify next to your domain under Verify your pixel.
Confirm the pixel is detected
Reload the page with a Pixel Helper session running. You should see an Init (short for “initiation”) event fire on each page that contains the Cometly pixel.If you run the check inside Cometly instead, the domain shows Pixel detected under Verify your pixel.
Frequently asked questions
Do I need to reinstall the Cometly pixel after adding a domain?
Yes, copy it again. The script changes when you add or remove domains, or change a setting under Pixel options. If Cometly tells you your tracking script has changed, click Copy Code and replace the old script on your website.
Can a speed or caching plugin stop the Cometly pixel from loading?
Yes. A plugin or code setting that delays JavaScript execution (on WordPress, the most common one is WP Rocket) delays the Cometly pixel, which results in missed data. See Delayed JavaScript execution or lazy loading for the fix.
Can a Content Security Policy block the Cometly pixel?
It can. A Content Security Policy (CSP) restricts the sources your website can load scripts from, so it may block the pixel unless you explicitly allow it. See Use Cometly with a Content Security Policy for the hosts to allow.
Still have questions or need a hand? We’re happy to help. Reach our team at support@cometly.com.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cometly Docs","description":"Cometly documentation: set up ad tracking and attribution, connect your ad platforms and tools, send conversions back with the Conversion API, and build on the Cometly API and MCP server.","colors":{"primary":"#0086FF","light":"#0086FF","dark":"#0086FF"},"logo":{"light":"https://mintcdn.com/cometly/hnuCBvleNSBDJAON/logo/light.svg?fit=max\u0026auto=format\u0026n=hnuCBvleNSBDJAON\u0026q=85\u0026s=1b725e99cd933554c9ab680583d1b779","dark":"https://mintcdn.com/cometly/hnuCBvleNSBDJAON/logo/dark.svg?fit=max\u0026auto=format\u0026n=hnuCBvleNSBDJAON\u0026q=85\u0026s=5b27a31c96508945608d23fa3394eafc"},"favicon":"https://mintcdn.com/cometly/hnuCBvleNSBDJAON/favicon.svg?fit=max\u0026auto=format\u0026n=hnuCBvleNSBDJAON\u0026q=85\u0026s=676feb9017410d273527df10995ef763","api":{"playground":{},"mdx":{"auth":{"method":"bearer"},"server":"https://app.cometly.com"}},"navbar":{"links":[{"href":"mailto:support@cometly.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.cometly.com"}},"seo":{"metatags":{"og:site_name":"Cometly Docs","og:locale":"en_US","twitter:card":"summary_large_image"},"indexing":"navigable"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cometly","hasAudioNarration":false,"actualSubdomain":"cometly","customDomains":["docs.cometly.com"],"gitSource":{"type":"github","owner":"cometly","repo":"app","deployBranch":"main","contentDirectory":"publicApiDocs/V1","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afe1ed3e5481c801f76013c","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Integrations","count":137},{"language":"default","tag":"Guides","count":70},{"language":"default","tag":"Integrations by platform","count":68},{"language":"default","tag":"MCP","count":58},{"language":"default","tag":"Troubleshooting","count":50},{"language":"default","tag":"Tools","count":49},{"language":"default","tag":"Developers \u0026 API","count":44},{"language":"default","tag":"Getting Started","count":38},{"language":"default","tag":"Settings","count":23},{"language":"default","tag":"Events","count":22}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@cometly.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".card-group .card{transition:background-color 150ms ease, border-color 150ms ease}.card-group .card:hover{background-color:#f6f7f8!important}.dark .card-group .card:hover{background-color:rgba(255, 255, 255, 0.04)!important}.start-cards .card-group .card{position:relative;isolation:isolate;background-color:#ffffff!important;background-image:radial-gradient(110% 60% at 50% 115%, rgba(0, 134, 255, 0.05) 0%, transparent 70%),\n linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%)!important;border-color:#e4e7ec!important;box-shadow:0 1px 2px rgba(16, 24, 40, 0.04);transition:border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease}.start-cards .card-group .card::before{content:\"\";position:absolute;inset:auto 0 0 0;height:85%;z-index:-1;pointer-events:none;background-image:repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.15) 0, rgba(100, 116, 139, 0.15) 1px, transparent 1px, transparent 26px),\n repeating-linear-gradient(90deg, transparent 0, transparent 13px, rgba(100, 116, 139, 0.08) 13px, rgba(100, 116, 139, 0.08) 14px, transparent 14px, transparent 26px);-webkit-mask-image:linear-gradient(to top, #000 0%, transparent 90%);mask-image:linear-gradient(to top, #000 0%, transparent 90%);opacity:0.8;transition:opacity 200ms ease}.start-cards .card-group .card:hover{background-color:#ffffff!important;border-color:rgba(0, 134, 255, 0.45)!important;box-shadow:0 12px 28px -16px rgba(0, 134, 255, 0.35), 0 1px 2px rgba(16, 24, 40, 0.05);transform:translateY(-1px)}.start-cards .card-group .card:hover::before{opacity:1}.start-cards [data-component-part=\"card-image\"]{display:block;width:100%;height:auto;margin:0!important;border-bottom:1px solid #eceef2}.start-cards [data-component-part=\"card-icon\"]{display:flex;align-items:center;justify-content:center;width:2.5rem!important;height:2.5rem!important;border-radius:0.75rem;background:linear-gradient(135deg, #46a9ff 0%, #0086ff 55%, #0068d6 100%);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -6px rgba(0, 134, 255, 0.65)}.start-cards [data-component-part=\"card-icon\"]>svg{width:1.25rem!important;height:1.25rem!important;background-color:#ffffff!important}.dark .start-cards .card-group .card,.dark .start-cards .card-group .card:hover{background-color:rgba(255, 255, 255, 0.02)!important;background-image:radial-gradient(110% 60% at 50% 115%, rgba(0, 134, 255, 0.14) 0%, transparent 70%)!important;border-color:rgba(255, 255, 255, 0.12)!important}.dark .start-cards .card-group .card:hover{border-color:rgba(70, 169, 255, 0.6)!important}.dark .start-cards .card-group .card::before{background-image:repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.2) 0, rgba(148, 163, 184, 0.2) 1px, transparent 1px, transparent 26px),\n repeating-linear-gradient(90deg, transparent 0, transparent 13px, rgba(148, 163, 184, 0.1) 13px, rgba(148, 163, 184, 0.1) 14px, transparent 14px, transparent 26px)}.dark .start-cards [data-component-part=\"card-image\"]{border-bottom-color:rgba(255, 255, 255, 0.08)}.logo-tile{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.5rem;height:2.5rem;border-radius:0.75rem;border:1px solid #e5e7eb;background:#ffffff;overflow:hidden}.logo-tile img{width:1.375rem!important;height:1.375rem!important;max-width:none!important;margin:0!important;border-radius:0!important;object-fit:contain;pointer-events:none}.logo-tile-sm{width:2rem;height:2rem;border-radius:0.5rem}.logo-tile-sm img{width:1.125rem!important;height:1.125rem!important}.logo-tile-letter{font-size:0.8125rem;font-weight:600;color:#6b7280;background:#f9fafb}.dark .logo-tile{border-color:rgba(255, 255, 255, 0.12)}.logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin-top:0.875rem}.logo-more{margin-left:0.25rem;font-size:0.8125rem;font-weight:500;color:#6b7280;white-space:nowrap}.dark .logo-more{color:#9ca3af}.integration-grid{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.25rem 0.75rem;margin:1rem 0 0.5rem}@media (min-width: 640px){.integration-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 1024px){.integration-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}.integration-grid a{display:flex;align-items:center;gap:0.625rem;padding:0.375rem 0.5rem;border-radius:0.625rem;border:0!important;font-size:0.875rem;font-weight:500!important;line-height:1.3;color:inherit!important;text-decoration:none!important;transition:background-color 150ms ease}.integration-grid a:hover{background-color:#f6f7f8}.dark .integration-grid a:hover{background-color:rgba(255, 255, 255, 0.04)}.dark li>a img[src^=\"/images/logos/\"]{background:#ffffff!important;border-radius:0.25rem;padding:1px}"}],"page":{"pagePath":"support/troubleshooting/pixel/base-code-not-detected","slug":"/support/troubleshooting/pixel/base-code-not-detected","pageMetadata":{"title":"Base code not detected","description":"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site's head, clear your cache, then verify.","og:title":"Fix Cometly Pixel Not Detected (Base Code)","href":"/support/troubleshooting/pixel/base-code-not-detected"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site’s head, clear your cache, then verify.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`You open the `,_jsx(_components.a,{href:`/guides/tracking/pixel-helper`,children:`Cometly Pixel Helper`}),` (a Google Chrome extension) on one of your pages and it does not detect the base code. “Base code” is the Pixel Helper’s name for the Cometly pixel, the script that tracks where your website visitors come from and captures opt-in data from your forms.`]}),`\n`,_jsx(_components.p,{children:`A Cometly pixel not detected usually comes down to one of three things: the Pixel Helper session was not started before the page loaded, the pixel is missing from the page or does not match the script Cometly shows for your space, or your browser is showing an old cached copy of the page. Cometly only tracks the pages that carry the pixel, so fix this before you rely on the data from that page.`}),`\n`,_jsx(Heading,{level:`2`,id:`fix-a-cometly-pixel-not-detected-on-your-page`,children:`Fix a Cometly pixel not detected on your page`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Make sure you are using the Cometly Pixel Helper correctly. Click `,_jsx(_components.strong,{children:`Start`}),`, then reload the page.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Make sure the Cometly pixel is in the `,_jsx(_components.code,{children:`\u003chead>`}),` of every page of your website, and that it matches the script Cometly shows for your space. In Cometly, go to `,_jsx(_components.strong,{children:`Setup`}),` > `,_jsx(_components.strong,{children:`Install the Cometly pixel`}),` and find the code under `,_jsx(_components.strong,{children:`Install the pixel`}),`. By default it is a single script tag:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://js.comet-serve.com/script.js?uid=[your-unique-identifier]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If the script on your website is different, click `,_jsx(_components.strong,{children:`Copy Code`}),` and replace the one on your website. See `,_jsx(_components.a,{href:`/getting-started/install-pixel`,children:`Install and verify the Cometly pixel`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Clear your browser cache and try the `,_jsx(_components.a,{href:`/guides/tracking/pixel-helper`,children:`Cometly Pixel Helper`}),` again. See `,_jsx(_components.a,{href:`/support/troubleshooting/general/clear-cookies-and-cache`,children:`Clear cookies and cache`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can also check the pixel without the extension. In Cometly, go to `,_jsx(_components.strong,{children:`Setup`}),` > `,_jsx(_components.strong,{children:`Install the Cometly pixel`}),` and click `,_jsx(_components.strong,{children:`Verify`}),` next to your domain under `,_jsx(_components.strong,{children:`Verify your pixel`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`confirm-the-pixel-is-detected`,children:`Confirm the pixel is detected`}),`\n`,_jsxs(_components.p,{children:[`Reload the page with a Pixel Helper session running. You should see an `,_jsx(_components.strong,{children:`Init`}),` (short for “initiation”) event fire on each page that contains the Cometly pixel.`]}),`\n`,_jsxs(_components.p,{children:[`If you run the check inside Cometly instead, the domain shows `,_jsx(_components.strong,{children:`Pixel detected`}),` under `,_jsx(_components.strong,{children:`Verify your pixel`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`frequently-asked-questions`,children:`Frequently asked questions`}),`\n`,_jsx(Heading,{level:`3`,id:`do-i-need-to-reinstall-the-cometly-pixel-after-adding-a-domain`,children:`Do I need to reinstall the Cometly pixel after adding a domain?`}),`\n`,_jsxs(_components.p,{children:[`Yes, copy it again. The script changes when you add or remove domains, or change a setting under `,_jsx(_components.strong,{children:`Pixel options`}),`. If Cometly tells you your tracking script has changed, click `,_jsx(_components.strong,{children:`Copy Code`}),` and replace the old script on your website.`]}),`\n`,_jsx(Heading,{level:`3`,id:`can-a-speed-or-caching-plugin-stop-the-cometly-pixel-from-loading`,children:`Can a speed or caching plugin stop the Cometly pixel from loading?`}),`\n`,_jsxs(_components.p,{children:[`Yes. A plugin or code setting that delays JavaScript execution (on WordPress, the most common one is WP Rocket) delays the Cometly pixel, which results in missed data. See `,_jsx(_components.a,{href:`/support/troubleshooting/pixel/delayed-javascript-or-lazy-loading`,children:`Delayed JavaScript execution or lazy loading`}),` for the fix.`]}),`\n`,_jsx(Heading,{level:`3`,id:`can-a-content-security-policy-block-the-cometly-pixel`,children:`Can a Content Security Policy block the Cometly pixel?`}),`\n`,_jsxs(_components.p,{children:[`It can. A Content Security Policy (CSP) restricts the sources your website can load scripts from, so it may block the pixel unless you explicitly allow it. See `,_jsx(_components.a,{href:`/support/troubleshooting/pixel/content-security-policy`,children:`Use Cometly with a Content Security Policy`}),` for the hosts to allow.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/getting-started/install-pixel`,children:`Install and verify the Cometly pixel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/tracking/pixel-helper`,children:`Check your pixel and events with the Cometly Pixel Helper`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/support/troubleshooting/pixel/init-not-detected`,children:`Fix the Init not detected error`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/support/troubleshooting/pixel/delayed-javascript-or-lazy-loading`,children:`Fix delayed JavaScript execution or lazy loading`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/support/troubleshooting/pixel/content-security-policy`,children:`Use Cometly with a Content Security Policy`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Still have questions or need a hand? We’re happy to help. Reach our team at `,_jsx(_components.a,{href:`mailto:support@cometly.com`,children:`support@cometly.com`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Base code not detected","description":"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site's head, clear your cache, then verify.","og:title":"Fix Cometly Pixel Not Detected (Base Code)","href":"/support/troubleshooting/pixel/base-code-not-detected"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Fix a Cometly pixel not detected on your page","slug":"fix-a-cometly-pixel-not-detected-on-your-page","depth":2,"children":[]},{"title":"Confirm the pixel is detected","slug":"confirm-the-pixel-is-detected","depth":2,"children":[]},{"title":"Frequently asked questions","slug":"frequently-asked-questions","depth":2,"children":[{"title":"Do I need to reinstall the Cometly pixel after adding a domain?","slug":"do-i-need-to-reinstall-the-cometly-pixel-after-adding-a-domain","depth":3,"children":[]},{"title":"Can a speed or caching plugin stop the Cometly pixel from loading?","slug":"can-a-speed-or-caching-plugin-stop-the-cometly-pixel-from-loading","depth":3,"children":[]},{"title":"Can a Content Security Policy block the Cometly pixel?","slug":"can-a-content-security-policy-block-the-cometly-pixel","depth":3,"children":[]}]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cometly/3e5ee102dead7316/cometly.js"],"subdomain":"cometly","siteName":"Cometly Docs","title":"Fix Cometly Pixel Not Detected (Base Code)","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T21:55:49.877Z","originalFileLocation":"support/troubleshooting/pixel/base-code-not-detected.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site\u0026#x27;s head, clear your cache, then verify.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cometly Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Fix Cometly Pixel Not Detected (Base Code)\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site\u0026#x27;s head, clear your cache, then verify.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cometly Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cometly.mintlify.site/_mintlify/api/og/v2?division=Pixel\u0026amp;title=Base+code+not+detected\u0026amp;description=Fix+a+Cometly+pixel+not+detected+by+the+Pixel+Helper%3A+start+a+session%2C+check+the+script+in+your+site%27s+head%2C+clear+your+cache%2C+then+verify.\u0026amp;theme=4b81b0d192612debf11d7771\u0026amp;signature=a017de961bc5f841070cd16fc228cf20039fe1894acbeffe5e4b73f38c0a0fed\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Fix Cometly Pixel Not Detected (Base Code)\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site\u0026#x27;s head, clear your cache, then verify.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cometly.mintlify.site/_mintlify/api/og/v2?division=Pixel\u0026amp;title=Base+code+not+detected\u0026amp;description=Fix+a+Cometly+pixel+not+detected+by+the+Pixel+Helper%3A+start+a+session%2C+check+the+script+in+your+site%27s+head%2C+clear+your+cache%2C+then+verify.\u0026amp;theme=4b81b0d192612debf11d7771\u0026amp;signature=a017de961bc5f841070cd16fc228cf20039fe1894acbeffe5e4b73f38c0a0fed\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cometly/gMocZlOJ0QUZ28NI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cometly Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0086FF\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/support/troubleshooting/pixel/base-code-not-detected.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cometly.com/#organization\",\"name\":\"Cometly Docs\",\"url\":\"https://docs.cometly.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cometly/hnuCBvleNSBDJAON/logo/light.svg?fit=max\u0026auto=format\u0026n=hnuCBvleNSBDJAON\u0026q=85\u0026s=1b725e99cd933554c9ab680583d1b779\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cometly.com#website\",\"name\":\"Cometly Docs\",\"url\":\"https://docs.cometly.com\",\"publisher\":{\"@id\":\"https://docs.cometly.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected#webpage\",\"url\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected\",\"name\":\"Base code not detected\",\"description\":\"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site's head, clear your cache, then verify.\",\"dateModified\":\"2026-11-18T21:55:49.877Z\",\"isPartOf\":{\"@id\":\"https://docs.cometly.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Pixel\",\"item\":\"https://docs.cometly.com/support/troubleshooting/pixel/validate-form-capture-in-browser\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Base code not detected\",\"item\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected#article\",\"headline\":\"Base code not detected\",\"name\":\"Base code not detected\",\"description\":\"Fix a Cometly pixel not detected by the Pixel Helper: start a session, check the script in your site's head, clear your cache, then verify.\",\"url\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected#webpage\"},\"dateModified\":\"2026-11-18T21:55:49.877Z\",\"publisher\":{\"@id\":\"https://docs.cometly.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cometly.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cometly Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cometly Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/support/troubleshooting/pixel/base-code-not-detected.md","siteName":"Cometly Docs","nav":{"global":null,"tabs":[{"tab":"Getting Started","icon":"rocket","pages":[{"title":"Getting Started","href":""}]},{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/guides/overview"}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Troubleshooting","icon":"wrench","groups":[{"group":"Overview","pages":[{"title":"Troubleshooting","sidebarTitle":"Overview","href":"/support/troubleshooting/overview"}]},{"group":"Pixel","pages":[{"title":"Validate form capture with browser inspect (advanced)","description":"Validate Cometly form capture with your browser's inspect tool: confirm the pixel picks up name, email and phone as you type into a form.","href":"/support/troubleshooting/pixel/validate-form-capture-in-browser"},{"title":"Base code not detected","href":"/support/troubleshooting/pixel/base-code-not-detected"},{"title":"Delayed JavaScript execution or lazy loading","description":"Fix the delayed JavaScript execution or lazy loading error on the Cometly pixel, so the pixel loads with the page and stops missing tracking data.","href":"/support/troubleshooting/pixel/delayed-javascript-or-lazy-loading"},{"title":"Install the Meta pixel in your Shopify theme.liquid","href":"/support/troubleshooting/pixel/meta-pixel-in-shopify-theme"},{"title":"Set up a Google Tag Manager web container","href":"/support/troubleshooting/pixel/google-tag-manager-web-container"},{"title":"Init not detected","href":"/support/troubleshooting/pixel/init-not-detected"},{"title":"Troubleshoot multiple emails on a contact","href":"/support/troubleshooting/pixel/multiple-emails-on-a-contact"},{"title":"Use Cometly with a Content Security Policy","href":"/support/troubleshooting/pixel/content-security-policy"}]},{"group":"Form tracking","pages":[{"title":"Track forms inside iframes (advanced)","href":"/support/troubleshooting/form-tracking/track-iframes"},{"title":"Pass the email as a URL parameter to your thank-you page","href":"/support/troubleshooting/form-tracking/pass-email-to-thank-you-page"},{"title":"Troubleshoot form tracking","href":"/support/troubleshooting/form-tracking/troubleshooting-form-tracking"}]},{"group":"Events","pages":[{"title":"Backfill missing events with Google Sheets and Zapier","href":"/support/troubleshooting/events/backfill-with-google-sheets-and-zapier"},{"title":"Custom events not showing in Meta Ads Manager columns","href":"/support/troubleshooting/events/custom-events-missing-in-meta-columns"},{"title":"Check that your WooCommerce webhook is active","href":"/support/troubleshooting/events/woocommerce-webhook-active"},{"title":"Shopify automatic payment capture","href":"/support/troubleshooting/events/shopify-automatic-payment-capture"}]},{"group":"URL parameters","pages":[{"title":"Check for Google tracking templates at the ad group or ad level","href":"/support/troubleshooting/url-parameters/google-tracking-template-ad-group-level"},{"title":"Fix URL parameters on your product in Google Merchant Center","href":"/support/troubleshooting/url-parameters/google-merchant-center-url-parameters"},{"title":"Fix UTM Setup Errors","href":"/support/troubleshooting/url-parameters/utm-setup-errors"}]},{"group":"Ad accounts","pages":[{"title":"Disconnect an ad platform connection","href":"/support/troubleshooting/ad-accounts/disconnect-an-ad-platform"},{"title":"Same ad account in two spaces","href":"/support/troubleshooting/ad-accounts/same-ad-account-in-two-spaces"}]},{"group":"Ad data","pages":[{"title":"Ad data not syncing for hours or days","href":"/support/troubleshooting/ad-data/ad-data-not-syncing"},{"title":"Amount spent in Cometly differs slightly from Meta","href":"/support/troubleshooting/ad-data/amount-spent-differs-from-meta"},{"title":"How often data updates in Cometly","href":"/support/troubleshooting/ad-data/data-update-frequency"},{"title":"How changes to ads sync between ad platforms and Cometly","href":"/support/troubleshooting/ad-data/how-ad-changes-sync"},{"title":"Remove Cometly access from your Google Ads account","href":"/support/troubleshooting/ad-data/remove-google-ads-access"},{"title":"Manually turn on tracking for your ad campaigns","href":"/support/troubleshooting/ad-data/manually-turn-on-tracking"},{"title":"Meta ad account data not updating","href":"/support/troubleshooting/ad-data/meta-ad-data-not-updating"},{"title":"Troubleshoot a Microsoft Ads connection","href":"/support/troubleshooting/ad-data/microsoft-ads-connection"},{"title":"Missing Meta campaigns, ad sets or ads in Ads Manager","href":"/support/troubleshooting/ad-data/missing-meta-campaigns"},{"title":"Settings for managing Meta ads in Cometly","href":"/support/troubleshooting/ad-data/meta-ads-management-settings"},{"title":"Tracking historical ad data","href":"/support/troubleshooting/ad-data/historical-ad-data"}]},{"group":"Conversion API","pages":[{"title":"Conversion API not sending conversions","sidebarTitle":"Conversions not sending","href":"/support/troubleshooting/conversion-api/conversions-not-sending"},{"title":"Conversion API not sending events to Meta Events Manager","href":"/support/troubleshooting/conversion-api/meta-capi-not-sending-events"},{"title":"Set up Google Enhanced Conversions for Leads","href":"/support/troubleshooting/conversion-api/google-enhanced-conversions-for-leads"},{"title":"Why Cometly and Google Ads conversion numbers differ","href":"/support/troubleshooting/conversion-api/google-ads-conversion-differences"}]},{"group":"Integrations","pages":[{"title":"BuyGoods: sales in BuyGoods but no sales in Cometly","href":"/support/troubleshooting/integrations/buygoods-missing-sales"},{"title":"BuyGoods: double sales reported in Cometly","href":"/support/troubleshooting/integrations/buygoods-double-sales"},{"title":"BuyGoods: View Content and LP CTR metrics are not showing","href":"/support/troubleshooting/integrations/buygoods-view-content-and-lp-ctr"},{"title":"ClickBank: TID not passing from your landing page to the offer","href":"/support/troubleshooting/integrations/clickbank-tid-not-passing"},{"title":"ClickBank: data in Cometly doesn't match ClickBank or Meta","href":"/support/troubleshooting/integrations/clickbank-data-mismatch"},{"title":"ClickBank: missing purchases in Cometly","href":"/support/troubleshooting/integrations/clickbank-missing-purchases"},{"title":"ClickBank: View Content and LP CTR metrics are not showing","href":"/support/troubleshooting/integrations/clickbank-view-content-and-lp-ctr"},{"title":"Connect Microsoft Ads when your account uses Google sign-in (SSO)","href":"/support/troubleshooting/integrations/microsoft-ads-google-sso"},{"title":"Required HubSpot user permissions for the HubSpot integration","href":"/support/troubleshooting/integrations/hubspot-user-permissions"}]},{"group":"Reporting","pages":[{"title":"Why Cometly attribution differs from Meta Ads Manager","href":"/support/troubleshooting/reporting/attribution-differs-from-meta"},{"title":"Test your Meta ads tracking","href":"/support/troubleshooting/reporting/test-meta-ads-tracking"}]},{"group":"Sources","pages":[{"title":"Understanding No Source in reports","href":"/support/troubleshooting/sources/no-source"}]},{"group":"General","pages":[{"title":"Clear cookies and cache","href":"/support/troubleshooting/general/clear-cookies-and-cache"},{"title":"Use the Events Log","href":"/support/troubleshooting/general/event-log"}]}]},{"tab":"Developers \u0026 API","icon":"code","pages":[{"title":"Developers \u0026 API","href":"/api-reference/overview"}]},{"tab":"MCP","icon":"robot","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"Help \u0026 Support","icon":"headset","pages":[{"title":"Help \u0026 Support","href":"/support/contact"}]}]},"basePath":"","title":"Fix Cometly Pixel Not Detected (Base Code)","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}