@segment/tracktor
v0.12.1
Published
<img src="logo.jpg" width="30%" height="30%" />
Maintainers
Keywords
Readme
Tracktor
Tracktor is a standalone script that pairs with the Segment Visual Tracker to instrument tracking into websites.
It takes the tagger's tracking instrumentation specs and binds to a subset of dom element events. When the event is fired, the tracking event is sent to the website's instrumented AJS tracker.
Trying it out
You can develop on Tracktor easily by using the sample application.
yarn startBuilding the script
yarn build:tracktorRunning integration tests
To run integration tests (that run in a headless chrome environment for blackbox testing) run
yarn testRelease
To release a new version of Tracktor follow these steps
Run
npx release-itand follow the prompts to release the tracktor module to npmPublish
analytics.js-integrationsvisual tagger integration by updating the tracktor version of the visual tagger integration hosted in the analytics.js-integrations repo to reflect the version published in step 1 and runningnpm publishPR
analytics.js-privateto update the version of the visual tagger integration published in step 2 and follow the release train process laid out in "Releasing analytics.js"Actively monitor the integration dashboard across release tiers until the integration is fully rolled out
