Skip to content

Instantly share code, notes, and snippets.

@arsduo
Created June 17, 2018 13:09
Show Gist options
  • Save arsduo/733ce95abf03217ead61dba05ce6cd84 to your computer and use it in GitHub Desktop.
Save arsduo/733ce95abf03217ead61dba05ce6cd84 to your computer and use it in GitHub Desktop.
Sanitizing History - ElmRings Configuration
app = MyElmApp.fullscreen()
myHistoryRecorder = new ElmRings({
allowDownload: true,
trackingFrequency: 60 * 1000, // 60 seconds by default
shouldSendHistory: isLoggedIn(), // or whatever's appropriate, defaults to true
storeHistory: historyData => {
// process, upload, make confetti from your history data
}
})
myHistoryRecorder.startTracking();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment