jeffrey
v0.2.0
Published
Analytics middleware
Downloads
5
Readme
Jeffrey!
Middleware between apps and target analytics services.
To use
Include the tracking.js within your project.
- Call trackAction('target.action', payloadAsMap) to track any action
- Call trackForms('#form.id', 'target.action', payloadAsMap) to track form submission
Action naming: 'source.location.action-performed'
- source: The source that is tracking
- location: Where in the source is this action being delivered from
- action-performed: The action that has been performed and needs to be tracked
Long term there will be a gate keeper that ensures actions are maintained and follow a specified format