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

Checking if Piwik tracker exists

$
0
0

@goatspecialist wrote:

I have implemented Piwik for the users of my website, and tracking is working well. But is there any way I can check via the API, if the tracker exists for a given site, and if data has been recorded for it?

This issue does not happen for sites where a SiteID has not been generated, however, if a user has requested their tracking code, but not added it into the site yet, I cannot find a way to handle this case. The API will return data (All 0, but still no way to differentiate it from a site with no visits yet) since the row exists, but the tracker itself is not present, so the data will continue to remain 0.

As of now my workaround for this is to check if the code physically exists on the site using a cURL command. But I would be much happier if there was an API based solution I can use here.

Thanks in advance!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles