Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of ssh://github.com/segmentio/daydream
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Miller committed Feb 14, 2018
2 parents 99aa9d3 + 0e1ddc4 commit 9a036ef
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Daydream

A chrome extension to record your actions into a [Nightmare](https://github.com/segmentio/nightmare) script.
A chrome extension to record your actions into a [Nightmare](https://github.com/segmentio/nightmare) or [Puppeteer](https://github.com/GoogleChrome/puppeteer) script.

## Example

Expand Down Expand Up @@ -34,21 +34,6 @@ Daydream currently supports `.goto()`, `.click()`, `.type()`, `.screenshot()`, a

If you want daydream to capture typing, press <kbd>tab</kbd> after you finish typing in each `input` element.

## Analytics

Daydream uses the [analytics-node](https://github.com/segmentio/analytics-node) library for analytics tracking. Here's an example of how you can add analytics to your own chrome extension:

```js
const Analytics = require('analytics-node');
const analytics = new Analytics('YOUR_WRITE_KEY');

const languages = window.navigator.languages;
const version = chrome.app.getDetails().version;

analytics.identify({ userId: '12345', version: version, languages: languages });
analytics.track({ userId: '12345', event: 'Opened Popup' });
```

## License

MIT

0 comments on commit 9a036ef

Please sign in to comment.