Skip to content

Commit

Permalink
final updates for v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
robflaherty committed Jul 19, 2014
1 parent 59d5564 commit 16895e1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "riveted",
"main": "riveted.js",
"version": "0.3.2",
"version": "0.4.0",
"homepage": "http://riveted.parsnip.io/",
"authors": [
"Rob Flaherty"
Expand Down
18 changes: 4 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@ Riveted is a Google Analytics plugin that tracks how much time users spend activ

It has no dependencies and supports Universal Analytics, Classic Google Analytics, and Google Tag Manager.

Implementation information is on the [project page](http://projects.parsnip.io/riveted/). This plugin is still in beta.
All instructions and information can be found on the [project page](http://projects.parsnip.io/riveted/).

Background and more details can be found in this [blog post](http://parsnip.io/blog/riveted-measuring-active-time-in-google-analytics/).


## Usage
```javascript
// Basic
riveted.init();

// With some options
riveted.init({
reportInterval: 10,
idleTimeout: 20,
nonInteraction: false
});
```
There's also a blog post with information on [how to use the Google Analytics data that Riveted provides](https://medium.com/google-analytics/84d9981920da).

## WordPress Plugin
Riveted is also available as a [WordPress plugin](http://wordpress.org/plugins/riveted/).
Expand Down Expand Up @@ -49,6 +37,8 @@ If you have any questions you can find me on Twitter at [@robflaherty](https://t

## Changelog

0.4.0 (7/19/14): https://github.com/robflaherty/riveted/issues/10

0.3.2 (6/26/14): Fixed Google Tag Manager label.

0.3.1 (6/4/14): Fixed IE8 bug.
Expand Down
4 changes: 2 additions & 2 deletions riveted.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@
//ga = undefined;

</script>
<script src="../riveted.js"></script>
<script src="../riveted.min.js"></script>
<script>
riveted.init({
reportInterval: 2,
idleTimeout: 5,
nonInteraction: false
nonInteraction: false,
eventHandler: function(event) {
console.log(event);
},
userTimingHandler: function(event) {
console.log(event);
}
});
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions wp-plugin/riveted/js/riveted-wp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16895e1

Please sign in to comment.