MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / identify

Method identify

packages/sdks/sdk/src/index.ts:174–193  ·  view source on GitHub ↗
(payload: IdentifyPayload)

Source from the content-addressed store, hash-verified

172 }
173
174 identify(payload: IdentifyPayload) {
175 this.log('identify user', payload);
176 if (payload.profileId) {
177 this.profileId = payload.profileId
178 this.flush();
179 }
180
181 if (payload.profileId && Object.keys(payload).length > 1) {
182 return this.send({
183 type: 'identify',
184 payload: {
185 ...payload,
186 properties: {
187 ...this.global,
188 ...payload.properties,
189 },
190 },
191 });
192 }
193 }
194
195 upsertGroup(payload: UpsertGroupPayload) {
196 this.log('upsert group', payload);

Callers 3

testDirectMethodAPIFunction · 0.45
testBothAPIsFunction · 0.45
testExpectedErrorsFunction · 0.45

Calls 3

logMethod · 0.95
flushMethod · 0.95
sendMethod · 0.95

Tested by

no test coverage detected