MCPcopy Create free account
hub / github.com/DavidWells/analytics / group

Function group

packages/analytics-plugin-segment/src/browser.js:41–49  ·  view source on GitHub ↗
(groupId, traits = {}, options = {}, callback)

Source from the content-addressed store, hash-verified

39 methods: {
40 /* Group https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#group */
41 group(groupId, traits = {}, options = {}, callback) {
42 // const analyticsInstance = this.instance
43 // If no segment, return early
44 if (typeof window.analytics === 'undefined') {
45 return
46 }
47 // Make group call to segment
48 window.analytics.group(groupId, traits, options, callback)
49 },
50 },
51 bootstrap: ({ config, instance }) => {
52 /* Load segment script after userId exists */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected