1.1.2 • Published 1 year ago

solid-google-tag-manager v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

A simple library to load the google tag manager script into your solid-start application to enable tracking and analytics.

Install

npm i solid-google-tag-manager

Usage

Embed the created element at the level you want the tag to be loaded. If this is to be loaded for all routes, it can be added directly in the top level app.jsx / app.tsx file.

app.js

import { createGoogleTagManagerElement } from "solid-google-tag-manager";

export default function App() {
  return (
    // ...
    <Suspense>{createGoogleTagManagerElement("G-XXXXXXXX")}</Suspense>
    // ...
  );
}
1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago