Requirements

Note: Custom code injection via Embed elements requires a Carrd Pro plan. The free plan does not support Embed elements. Carrd Pro Standard ($19/yr) or higher is needed.

Once you are on a Pro plan, the Embed element is available in the editor and the steps below take under 60 seconds to complete.

1 Install via Embed Element Recommended

Carrd uses Embed elements for custom code injection. Setting the element to Hidden keeps it completely invisible to visitors while the snippet runs in the background.

  1. 1Open your site in the Carrd editor.
  2. 2Click the + button to add a new element.
  3. 3Select Embed from the element list.
  4. 4Set the Type to Code.
  5. 5Paste your tracking snippet into the code box.
  6. 6Set Style to Hidden (size: 0×0, no border).
  7. 7Click Done.
  8. 8Save and publish your site.

Your tracking snippet

<script>(function(){var i=document.createElement('img');i.width=1;i.height=1;i.style.display='none';i.alt='';i.src='https://aeofix.com/api/bot-pixel?page='+encodeURIComponent(location.pathname)+'&site=YOUR_SITE_ID';document.body.appendChild(i);})();</script>
Note: Replace YOUR_SITE_ID with the Site ID from your AEOfix dashboard. If you have rotated your snippet key, use the exact snippet shown in the dashboard — it already includes &key=xxx automatically.
Note: Setting the Embed to "Hidden" with zero size keeps it completely invisible to visitors — exactly like the snippet's own display:none approach. Nothing will appear on the page.

Placement tip

Carrd is typically a single-page builder, so one Embed element placed anywhere on the page tracks the entire site. If you have a multi-page Carrd site (Pro Plus or higher), add an Embed element to each page, or use Carrd's global footer section if your plan makes it available.

Carrd and location.pathname

Carrd renders as static HTML. The location.pathname value in the snippet correctly returns the page path (for example / or /about). The snippet works as-is with no modification needed.

Verify it's working

After publishing, confirm the snippet is firing on your live site:

  1. 1Open your live Carrd site in a browser.
  2. 2Open browser DevTools (F12) and go to the Network tab.
  3. 3Filter requests by typing bot-pixel in the filter bar. A 200 response confirms the snippet is active.