Code Injection

EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.

Plugin

Code Injection

EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.

  • Category: Integrations
  • Status: available
  • Version: 0.2.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=1.0.0
  • Maintainer: PageLyft

EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.

Installation

Install the package from npm:

npm install @pagelyft/emdash-plugin-code-injection

Register the plugin in your Astro config:

import emdash from "emdash/astro";
import { codeInjectionPlugin } from "@pagelyft/emdash-plugin-code-injection";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [codeInjectionPlugin()],
    }),
  ],
});

Details