Skip to content

Commit

Permalink
fix: send be url to stats service if configured (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv authored Jul 20, 2017
1 parent 3189609 commit ee31301
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions dist/playkit-kanalytics.js

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

2 changes: 1 addition & 1 deletion dist/playkit-kanalytics.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-kanalytics.min.js

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

2 changes: 1 addition & 1 deletion dist/playkit-kanalytics.min.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/kanalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class KAnalytics extends BasePlugin {
/**
* @static
*/
static defaultConfig: Object = {};
static defaultConfig: Object = {
beUrl: ''
};

/**
* @static
Expand Down Expand Up @@ -199,7 +201,7 @@ export default class KAnalytics extends BasePlugin {
statsEvent.seek = this._hasSeeked;
Object.assign(statsEvent, this._playerParams);

let request: RequestBuilder = StatsService.collect(this._ks, {"event": statsEvent});
let request: RequestBuilder = StatsService.collect(this._ks, {"event": statsEvent}, this.config.beUrl);
request.doHttpRequest()
.then(() => {
this.logger.debug(`Analytics event sent `, statsEvent);
Expand Down

0 comments on commit ee31301

Please sign in to comment.