Skip to main content
Deno 2 is finally here 🎉️
Learn more

fresh-ga

fresh-ga is a Fresh Framework plugin. It helps you to add gtag to your site in seconds.

Usage

add to your import map

// in your import_map.json
{
  "imports": {
    "ga": "https://deno.land/x/fresh-ga@0.1.0/"
  }
}

setup your main.ts

// in your main.ts
import { gaPlugin } from "ga/mod.ts";

await start(manifest, {
  plugins: [
    // ...
    gaPlugin({ gaKey: "xxxxxxxxxx" }), //replace xxxxxxxxx with your gaKey
    // ...
  ],
});