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

Document heartbeat/"time on page" information for the HTTP Tracking API #9477

Closed
dbakker opened this issue Jan 5, 2016 · 4 comments
Closed
Labels
c: Website matomo.org For issues related to our matomo.org website.

Comments

@dbakker
Copy link

dbakker commented Jan 5, 2016

The dev page on the HTTP API does not contain any information about how to add "time on page"/"heartbeat" information to pageviews. (Introduced by the ping=1 query param pull request )

It seems that currently it is possible to use, by issuing 2 requests with a modified cdt:

{
   "requests": [
      "?cdt=2016-01-05+20:10:21&idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1&apiv=1",
      "?cdt=2016-01-05+20:10:51&idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1&apiv=1&ping=1",
   ],
   "token_auth": "33dc3f2536d3025974cccb4b4d2d98f4"
}

I think it would be nice to add an example like this, and in a future version perhaps also consider adding a timeonpage type parameter so requests don't need to be doubled.

@tsteur
Copy link
Member

tsteur commented Jan 10, 2016

@diosmosis can you maybe document it?

@diosmosis
Copy link
Member

If @mattab makes it a priority for me, I will get to it the next time I work on Piwik.

@mattab
Copy link
Member

mattab commented Jan 12, 2016

@diosmosis +1 this should take a few minutes only to document our new ping parameter

@mattab mattab added this to the 2.16.0 milestone Jan 12, 2016
@mattab mattab added the c: Website matomo.org For issues related to our matomo.org website. label Jan 12, 2016
@mattab mattab modified the milestones: 2.16.1, 2.16.0 Jan 27, 2016
@mattab mattab modified the milestones: 2.16.x (LTS), 3.0.0 Apr 1, 2016
@mattab
Copy link
Member

mattab commented Apr 19, 2018

This was added today

@mattab mattab closed this as completed Apr 19, 2018
@mattab mattab changed the title Add heartbeat/"time on page" information for the HTTP API Document heartbeat/"time on page" information for the HTTP Tracking API May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

4 participants