(groupId, traits = {}, options = {}, callback)
| 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 */ |
nothing calls this directly
no outgoing calls
no test coverage detected