Add method to force heartbeat ping to Javascript API · Issue #14100 · matomo-org/matomo · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to force heartbeat ping to Javascript API #14100

Closed
pimlottc-gov opened this issue Feb 14, 2019 · 0 comments · Fixed by #14127
Closed

Add method to force heartbeat ping to Javascript API #14100

pimlottc-gov opened this issue Feb 14, 2019 · 0 comments · Fixed by #14127
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@pimlottc-gov
Copy link
Contributor

There is no way to manually force a heartbeat ping request using the Javascript Tracking Client API. This is possible in the PHP API via doPing() and in the HTTP API by setting the ping= parameter.

Forcing a ping can be desirable after calling a configuration setter, like setCustomVariable in order for it to be updated immediately. Otherwise, the updated value is not sent to the server until the next tracking action.

pimlottc-gov added a commit to pimlottc-gov/matomo that referenced this issue Feb 22, 2019
pimlottc-gov added a commit to pimlottc-gov/matomo that referenced this issue Apr 16, 2019
tsteur pushed a commit that referenced this issue Apr 17, 2019
* add ping method to JS api

Fixes #14100

* update minified version

* mention new ping method

* fix test which doesn't like a newline at the end

* fix test which doesn't like a newline at the end
@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants