MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / createAccountEvent

Function createAccountEvent

apps/web/services/customerIo/trackEvents.ts:38–52  ·  view source on GitHub ↗
(email: string, accountId: string)

Source from the content-addressed store, hash-verified

36};
37
38export const createAccountEvent = async (email: string, accountId: string) => {
39 if (process.env.NODE_ENV === 'test') {
40 return;
41 }
42 try {
43 client?.track(email, {
44 name: 'Account created',
45 data: {
46 accountId,
47 },
48 });
49 } catch (e) {
50 console.error('failed to identify account creation');
51 }
52};

Callers 1

eventNewCommunityFunction · 0.90

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected