Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5981

PHP Tracking API 400 error

$
0
0

Hello. I’m trying to track a page which was working well until I tried to use the cid query param. I’ve created an api token on my superuser and also added the token_auth query param but I get “This file is the endpoint for the Matomo tracking API. If you want to access the Matomo UI or use the Reporting API”

My code was working fine until I tried to add the cid, an example of my request looks like:

https://example.com/matomo.php?rec=1&idsite=18&url=https://testsite.dev/product/pens&action_name=Contour Pens&_id=SOMEUSERID&rand=fb2c97d827171e4d3fefea63&cip=192.168.1.1&token_auth=MYAUTHTOKEN

I’ve replaced my sensitive info with examples. I’m making a POST request to the URL above.

Any ideas why I get a 400 when using cid?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5981

Trending Articles