Tracking Scripts

Inject third-party tracking and analytics scripts (Google Tag Manager, GA4, Lead Forensics and custom snippets) site-wide, with a settings screen in the admin.

Plugin

Tracking Scripts

Inject third-party tracking and analytics scripts (Google Tag Manager, GA4, Lead Forensics and custom snippets) site-wide, with a settings screen in the admin.

  • Category: Analytics
  • Status: available
  • Version: 0.1.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash ^1.0.1
  • Maintainer: Shane Muirhead

Inject third-party tracking and analytics scripts (Google Tag Manager, GA4, Lead Forensics and custom snippets) site-wide, with a settings screen in the admin.

Installation

Install the package from npm:

npm install @tribusdigital/emdash-tracking-scripts

Register the plugin in your Astro config:

// astro.config.mjs
import { trackingScriptsPlugin } from '@tribusdigital/emdash-tracking-scripts';
import emdash from 'emdash/astro';

export default defineConfig({
  integrations: [
    emdash({
      plugins: [trackingScriptsPlugin()],
      // ...your existing database/storage config
    }),
  ],
});

Details