Business Intelligence
Segment
8 min
getting started with segment the segment modules allow you to identify users and track their actions in your segment account prerequisites a segment account in order to use segment with {{product name}} , it is necessary to have a segment account if you do not have one, you can create a segment account at app segment com/signup https //app segment com/signup connecting segment to {{product name}} to connect your segment account to {{product name}} , you need to create a token 1\ log in to your segment account 2\ open settings from the bottom left corner 3\ navigate to the access management section, and click on the tokens tab 4\ click on the create token button 5\ enter the token description , select the workspace owner option, and click the create button 6\ copy the created token, and store it in a safe place 7\ go to {{product name}} , and open the segment's module create a connection dialog 8\ enter the token you have created in step 5, and click the continue button to establish the connection actions identify this module lets you tie a user to their actions and record traits about them it includes a unique user id and any optional traits you know about them segment recommends calling the identify module a single time when the user’s account is first created, and only identifying again later when their traits change false false 171false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type track the module allows you to record any actions your users perform, along with any properties that describe the action false falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type make an api call allows you to perform a custom api call uses http tracking api false falsefalse left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type false left unhandled content type for the list of available endpoints, refer to the segment http api documentation https //segment com/docs/connections/sources/catalog/libraries/server/http api example of use associate a user with a group the following api call associates an identified user with a group in your segment account url /v1/group/ method post key content type value application/json key authorization value basic {{base64("your write key ")}} body {"userid" "user id of the user you want to associate to group","groupid" "target group id"} if the action is successfully completed, you can find the success true information in the module's output under bundle > body