WP Manifestindependent plugin directory
manifest / analytics / altis-analytics-integration-segment

Altis Analytics Integration for Segment

Segment integration for Altis Analytics

by Human Made Limited · github.com/humanmade/altis-analytics-integration-segment

0stars
62kcomposer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/humanmade/altis-analytics-integration-segment/archive/refs/heads/main.zip

Also on Packagist as altis/analytics-integration-segment:

composer require altis/analytics-integration-segment

From the readme

Segment Integration for Altis Analytics Segment integration for Altis Analytics module, exports Altis Analytics events to Segment. A Human Made project. Maintained by @humanmade. Segment integration for Altis Analytics adds automatic exporting of analytics events to Segment via background cronjobs. Getting Set Up Installing The package is automatically bundled with Altis Analytics module, however the Segment API key needs to be defined via the SEGMENTAPIWRITEKEY constant or the altis.analytic.segment.apiwritekey filter. Usage The package sets up a cronjob that handles batch uploading events to Segment APIs through hooking to the event altis.analytics.export.data.process that is triggered by Altis Analytics. Functions registersegmentgroupfield( string $field, array $traits = [] ) : void Registers a grouping field, which is sent to Segment as a group call. See Segment docs on Group cals for more information. - $field is the event field to group by. - $traits is the data map to add to the group from. Actions altis.analytics.segment.requestfailure : RequestsException|RequestsResponse $response, Array $batch Triggered when

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
0.2.0Apr 14, 2022
0.1.0Mar 24, 2022