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

Bulk Tracking doesn't seem to work. #5374

Closed
anonymous-matomo-user opened this issue Jun 23, 2014 · 4 comments
Closed

Bulk Tracking doesn't seem to work. #5374

anonymous-matomo-user opened this issue Jun 23, 2014 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

Hi

I've been attempting to add bulk tracking on an Android app and haven't been successful thus far. This is an example of the JSON body I send over in the post request.

{"requests":Galaxy Nexus","2":version","Android: 4.3","1":Version","1.5"}&cvar={"3":version","Android: 4.3","2":Version","1.5","5":Galaxy Nexus","4":[(Linux; U; Android 4.3; Galaxy Nexus Build/JWR66Y)","?idsite=1&rec=1&apiv=1&url=http://www.example.com/screen/registration/three&_id=7bb55742011796cb&cookie=false&_cvar={"3":"Platform","Samsung Galaxy Nexus","2":version","Android: 4.3","1":Version","1.5"}&cvar={"3":version","Android: 4.3","2":Version","1.5","5":Galaxy Nexus","4":(Linux; U; Android 4.3; Galaxy Nexus Build/JWR66Y)","token_auth":"<token_goes_here>"}

I get the following response:

{"status":"success","tracked":2}

Furthermore, I've also tried the example (the curl call) provided in the documentation (http://developer.piwik.org/api-reference/tracking-api) under bulk operations. The curl example returns the same success message as the one above, but doesn't actually add any visits to the Piwik admin.

I did change the URLs provided in the example curl call to point at my own Piwik server.

I also tried removing the back slashes (this returns "{"status":"success","tracked":2}").

Any help would be greatly appreciated.

@anonymous-matomo-user
Copy link
Author

Hi

I've been attempting to add bulk tracking on an Android app and haven't been successful thus far. This is an example of the JSON body I send over in the post request.

{"requests":Galaxy Nexus","2":version","Android: 4.3","1":Version","1.5"}&cvar={"3":version","Android: 4.3","2":Version","1.5","5":Galaxy Nexus","4":[(Linux; U; Android 4.3; Galaxy Nexus Build/JWR66Y)","?idsite=1&rec=1&apiv=1&url=http://www.example.com/screen/registration/three&_id=7bb55742011796cb&cookie=false&_cvar={"3":"Platform","Samsung Galaxy Nexus","2":version","Android: 4.3","1":Version","1.5"}&cvar={"3":version","Android: 4.3","2":Version","1.5","5":Galaxy Nexus","4":(Linux; U; Android 4.3; Galaxy Nexus Build/JWR66Y)","token_auth":"<token_goes_here>"}

I get the following response:

{"status":"success","tracked":2}

Furthermore, I've also tried the example (the curl call) provided in the documentation (http://developer.piwik.org/api-reference/tracking-api) under bulk operations. The curl example returns the same success message as the one above, but doesn't actually add any visits to the Piwik admin.

I did change the URLs provided in the example curl call to point at my own Piwik server.

I also tried removing the back slashes (this returns "{"status":"success","tracked":0}").

Any help would be greatly appreciated.

@mattab
Copy link
Member

mattab commented Jun 24, 2014

did you check in your database, log_visit table, and check that no data was recorded?

Can you try to remove the &_cvar and &cvar parameter? maybe you are hitting this bug with custom variables: #4848 bulk tracking requests with custom variables need to be double encoded

@anonymous-matomo-user
Copy link
Author

The log visit doesn't have the new entries inside it. I've also tried removing cvar and _cvar as well as all the back slashes and nothing is added to the table.

I'm currently on Piwik 2.2.2 if that helps.

@mattab
Copy link
Member

mattab commented Jun 24, 2014

Ok please upgrade to 2.3.0 or event 2.4.0 as we've fixed some bugs in this area. http://piwik.org/faq/how-to-update/faq_159/

@anonymous-matomo-user anonymous-matomo-user added this to the 2.5.0 - Piwik 2.5.0 milestone Jul 8, 2014
@mattab mattab closed this as completed Nov 3, 2014
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants