@segment/tracktor
v0.12.1
Published
<img src="logo.jpg" width="30%" height="30%" />
Downloads
172
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 start
Building the script
yarn build:tracktor
Running integration tests
To run integration tests (that run in a headless chrome environment for blackbox testing) run
yarn test
Release
To release a new version of Tracktor follow these steps
Run
npx release-it
and follow the prompts to release the tracktor module to npmPublish
analytics.js-integrations
visual 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 publish
PR
analytics.js-private
to 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