• Resolved wrjune

    (@wenrenjune)


    I’m trying to import Jetpack stats into Koko Analytics using the built-in import feature. However, I keep getting this error:

    匯入這個網站的統計資料時發生錯誤。 從 WordPress.com API 接收到的非 JSON 回應:Error: api_key does not belong to an administrator of blogRequired parameters: api_key, blog_id or blog_uri.Optional parameters: table, post_id, end, days, limit, summarize.Parameters:api_key String A secret unique to your WordPress.com user account.blog_id Integer The number that identifies your blog. Find it in other stats URLs.blog_uri String The full URL to the root directory of your blog. Including the full path.table String One of views, postviews, referrers, referrers_grouped, searchterms, clicks, videoplays.post_id Integer For use with postviews table. Also accepts a comma-separated list of integers.end String The last day of the desired time frame. Format is \’Y-m-d\’ (e.g. 2007-05-01) and default is UTC date.days Integer The length of the desired time frame. Default is 30. \”-1\” means unlimited.period String For use with views table and the \’days\’ parameter. The desired time period grouping. \’week\’ or \’month\’ Use \’days\’ as the number of results to return (e.g. \’&period=week&days=12\’ to return 12 weeks)limit Integer The maximum number of records to return. Default is 100. \”-1\” means unlimited. If days is -1, limit is capped at 500.summarize Flag If present, summarizes all matching records.format String The format the data is returned in, \’csv\’, \’xml\’ or \’json\’. Default is \’csv\’.Non-working query example: ?api_key=123456789abc&blog_id=155&table=referrers&days=30&limit=-1&summarizeResult format is csv with one row per line and column names in first row.Strings containing double quotes, commas, or \”\\n\” are enclosed in double-quotes. Double-qoutes in strings are escaped by inserting another double-quote.Example: \”pet food\” recipeBecomes: \”\”\”pet food\”\” recipe\”Developers, please cache the results for at least 180 seconds.

    I have verified that Koko Analytics successfully detects and retrieves the correct WordPress.com API credentials, but the import still fails with this error.

    Has anyone encountered this issue before? Any insights on how to resolve this would be greatly appreciated!

    • This topic was modified 3 weeks, 4 days ago by wrjune.
Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi @wenrenjune,

    This error is returned by WordPress.com when the API key you provided does not match the given blog URL; or if WordPress.com does not recognize the blog URL you provided. The former is easy to verify, but the latter requires some experimentation:

    I hope that gives you some pointers on how to get your correct blog URL. I wish WordPress.com made this easier, but unfortunately it is out of our control.

    Best,
    Danny

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.