@glyphhq/browser
v0.2.1
Published
Glyph browser SDK.
Readme
@glyphhq/browser
Browser SDK for sending customer events to Glyph.
import { GlyphBrowser } from "@glyphhq/browser";
const glyph = new GlyphBrowser({ writeKey: "glyph_pk_..." });
glyph.profile("user_123", {
email: "[email protected]",
plan: "pro",
});
glyph.track("user_123", "Project created");
glyph.page("user_123", "Dashboard", { path: "/dashboard" });Use a glyph_pk_... key for live customer traffic or a glyph_test_... key to
verify an integration in Glyph's isolated test environment.
profile() requires a non-empty email trait because Glyph uses email as a
primary customer identity and communication channel.
