Skip to content

Commit c5c35e3

Browse files
Dean CollinsBenFradet
authored andcommitted
Allow external activity tracking (closes snowplow#559)
1 parent 4c9ad67 commit c5c35e3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/js/tracker.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,14 @@
17561756
configHeartBeatTimer = heartBeatDelay * 1000;
17571757
},
17581758

1759+
/**
1760+
* Triggers the activityHandler manually to allow external user defined
1761+
* activity. i.e. While watching a video
1762+
*/
1763+
updatePageActivity: function () {
1764+
activityHandler();
1765+
},
1766+
17591767
/**
17601768
* Enables automatic form tracking.
17611769
* An event will be fired when a form field is changed or a form submitted.

0 commit comments

Comments
 (0)