Integrations
Direct Integrations
Segment and Webhook
introduction integrating with segment or webhook allows you to process the raw event data from navattic in any way you want navattic strives to minimize the changes to the segment and webhook integrations, and if necessary will provide ample notice for any breaking changes events will be sent to your segment or webhook setup whenever a visitor session in your demo is marked as closed the timestamp in each respective event will be an iso 8601 formatted date time string that signifies the closing time of the session the event will also contain information about the session, including a list of the recorded events associated with the session, as well as the corresponding end user the session relates to, and the company account, if any (company account can be null) a free service like https //webhook site/ can be an easy way to get started and test the webhook integration ⚠️ this is a public webhook testing service, so it is recommended only to send test data when using this, as you could inadvertently expose customer event data the event structure varies slightly between segment and webhook, as shown below, but the data sent is the same setup video use the webhook integration to integrate with a zapier workflow using a zap url learn more about triggering zaps from webhooks segment segment supports two different types of events track and identify track events contain information about how a visitor interacted with your demo (e g viewed a flow step) while identify events contain identification information for the associated visitor and company account segment example track event { event 'session closed', userid 'abc123', properties { timestamp '2024 07 24t21 21 21 389z', session { closed at '2024 07 24t21 21 21 389z', closed by 'page leave', recorded events \[ { id 'clz0czwjs000008m54x5mbzbp', created at '2024 07 24t21 21 21 389z', updated at '2024 07 24t21 21 21 389z', type 'view step', recorded step id 'clz0d3sq7000608m52n529l9k', recorded step index 5, recorded step common id 'clz0d3x7y000708m5bzlwfll2', recorded step name 'step name', recorded flow id 'clz0d40v5000808m58evb8g7j', recorded flow name 'flow name', recorded project id 'clz0d45gc000908m5207lhziy', recorded project name 'project name', recorded checklist id 'clz0d49n2000a08m56936629p', recorded checklist name 'checklist name', recorded task id 'clz0d4cuu000b08m50rf86gqz', recorded task name 'task name', url navigated 'https //docs navattic com/', workspace id 'clz0d53sj000c08m5gjn2259r', project id 'clz0d5acx000d08m5hz4gbxqr', project share link id 'clz0d5m14000e08m599mb3qtl', flow id 'clz0d5xv5000f08m58grzam4a', checklist id 'clz0d64g3000g08m5fxdzd6v7', project version id 'clz0d6i2i000h08m5hajn057b', project language 'en', guide id 'clz0d7qsh000i08m58mpp9vka', session id 'clz0d7ufl000j08m583hzej1n', end user id 'clz0d7xye000k08m55wos3qra', mobile id 'clz0d817k000l08m511at4wdx', mobile version id 'clz0d84ik000m08m5cr8x1juy' }, ] }, company account { total sessions 5, total steps 50, total time 600, total visitors 3 }, end user { total sessions 2, total steps 20, total time 300, custom attributes \[ { id 'clz0dbz6k000o08m59ouc2ss1', created at '2024 07 24t21 21 21 389z', updated at '2024 07 24t21 21 21 389z', end user id 'clz0dc7ea000q08m54tz14g3u', created by event id 'clz0dcb0f000r08m5awp54t65', name 'attribute name', attribute source 'other', data type 'string', value string 'value', value bool null, value number null, value json null, value date time null }, ] } } } segment example visitor identify event { "event" "visitor identified", "userid" "clzkcqncr000b58dedjgu4bug" "properties" { "email" "john doe\@acme com", "full name" "john doe" "company" { "account type" "account", "amount raised" "5000000", "city" "san francisco", "clearbit confidence" "high", "country" "united states", "created at" "2024 08 07t21 19 10 011z", "custom property values" \[], "description" "lorem ipsum dolor sit amet, consectetur adipiscing elit nullam vehicula, nisi a commodo efficitur, eros turpis volutpat massa, vitae fermentum felis justo vel purus sed sit amet risus id elit bibendum hendrerit in id lacus ", "employee count" 500, "engaged" true, "estimated annual revenue" "75000000", "founded year" 1990, "hubspot account id" "", "id" "clzkcqncr000c58de22xichxv", "industry" "internet software & services", "industry group" "software & services", "linkedin url" "linkedin com/company/acme corporation", "name" "acme com", "postal code" "", "salesforce account id" "", "sector" "information technology", "state" "california", "sub industry" "cloud services", "technologies" "", "total sessions" 1, "total steps" 10, "total time" 300, "total visitors" 1, "traffic rank" "very high", "updated at" "2024 08 07t21 19 10 011z", "website domain" "acme com", "workspace id" "clzd3d50a0000d8de3cc32ubs" } } segment example company account identify event { "event" "account identified", "userid" "clzkd1c5i002v58dea2dzc6zo", "properties" { "account type" "account", "amount raised" "5000000", "city" "san francisco", "clearbit confidence" "high", "country" "united states", "created at" "2024 08 07t21 27 28 711z", "custom property values" \[], "description" "lorem ipsum dolor sit amet, consectetur adipiscing elit nullam vehicula, nisi a commodo efficitur, eros turpis volutpat massa, vitae fermentum felis justo vel purus sed sit amet risus id elit bibendum hendrerit in id lacus ", "employee count" 500, "engaged" true, "estimated annual revenue" "75000000", "founded year" 1990, "hubspot account id" "", "id" "clzkd1c5i002w58de8qshfub0", "industry" "internet software & services", "industry group" "software & services", "linkedin url" "linkedin com/company/acme corporation", "name" "acme com", "postal code" "", "salesforce account id" "", "sector" "information technology", "state" "california", "sub industry" "cloud services", "technologies" "", "total sessions" 1, "total steps" 10, "total time" 300, "total visitors" 1, "traffic rank" "very high", "updated at" "2024 08 07t21 27 28 711z", "website domain" "acme com", "workspace id" "clzd3d50a0000d8de3cc32ubs" } } webhook webhook allows you to send the full navattic payload to a third party destinations that do not have a direct integration with navattic webhook example event the event is sent to your webhook address as a post request the playbook action run will be marked as completed when the payload is successfully delivered to your webhook { eventtype 'session closed', timestamp '2024 07 24t21 21 21 389z', data { session { closedat '2024 07 24t21 21 21 389z', closedby 'page leave', recordedevents \[ { id 'clz0czwjs000008m54x5mbzbp', createdat '2024 07 24t21 21 21 389z', updatedat '2024 07 24t21 21 21 389z', type 'view step', recordedstepid 'clz0d3sq7000608m52n529l9k', recordedstepindex 5, recordedstepcommonid 'clz0d3x7y000708m5bzlwfll2', recordedstepname 'step name', recordedflowid 'clz0d40v5000808m58evb8g7j', recordedflowname 'flow name', recordedprojectid 'clz0d45gc000908m5207lhziy', recordedprojectname 'project name', recordedchecklistid 'clz0d49n2000a08m56936629p', recordedchecklistname 'checklist name', recordedtaskid 'clz0d4cuu000b08m50rf86gqz', recordedtaskname 'task name', urlnavigated 'https //docs navattic com/', workspaceid 'clz0d53sj000c08m5gjn2259r', projectid 'clz0d5acx000d08m5hz4gbxqr', projectsharelinkid 'clz0d5m14000e08m599mb3qtl', flowid 'clz0d5xv5000f08m58grzam4a', checklistid 'clz0d64g3000g08m5fxdzd6v7', projectversionid 'clz0d6i2i000h08m5hajn057b', projectlanguage 'en', guideid 'clz0d7qsh000i08m58mpp9vka', sessionid 'clz0d7ufl000j08m583hzej1n', enduserid 'clz0d7xye000k08m55wos3qra', mobileid 'clz0d817k000l08m511at4wdx', mobileversionid 'clz0d84ik000m08m5cr8x1juy' }, ] }, companyaccount { totalsessions 5, totalsteps 50, totaltime 600, totalvisitors 3 }, enduser { totalsessions 2, totalsteps 20, totaltime 300, customattributes \[ { id 'clz0dbz6k000o08m59ouc2ss1', createdat '2024 07 24t21 21 21 389z', updatedat '2024 07 24t21 21 21 389z', enduserid 'clz0dc7ea000q08m54tz14g3u', createdbyeventid 'clz0dcb0f000r08m5awp54t65', name 'attribute name', attributesource 'other', datatype 'string', valuestring 'value', valuebool null, valuenumber null, valuejson null, valuedatetime null }, ] } } } send data to zapier using webhook sending webhook events to zapier allows you further filter and format the data within zapier before sending it to additional destinations like google sheets, gmail, notion, or more this setup demo includes all the steps you need to send data from navattic to zapier keep in mind that navattic supports direct integrations with slack, hubspot, salesforce, marketo, and pardot we recommend using the direct integration when available