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

Custom variables seems not to be tracked in bulk tracking #12960

Closed
kaplun opened this issue May 23, 2018 · 1 comment
Closed

Custom variables seems not to be tracked in bulk tracking #12960

kaplun opened this issue May 23, 2018 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@kaplun
Copy link

kaplun commented May 23, 2018

Hi!

I am using import_logs.py to bulk track massive amount of events from a custom log format. What import_logs.py actually sends to Matomo, in my case is:

{
  "requests": [
    {
      "apiv": "1", 
      "uid": "329dfea1c299d08e0b10ff2aff77409c371aab31", 
      "cvar": "{\"1\": [\"HTTP-code\", \"200\"]}", 
      "cdt": "2018-04-10 20:18:26", 
      "urlref": "https://example.org", 
      "gt_ms": 14, 
      "dp": "1", 
      "url": "https://example.org/api/events/", 
      "cip": "x.x.x.x", 
      "idsite": "1", 
      "bw_bytes": 170, 
      "_cvar": "{\"1\": [\"WebServer\", null], \"2\": [\"App version\", \"Web_3.13.0\"]}", 
      "rec": "1", 
      "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
    }
  ], 
  "token_auth": "68bc015b6e94274c87eaf61ee3b26aad"
}

Information redacted.

As you see: `cvar` and `_cvar` are are correctly set (they contain a JSON-serialized object). However I see that only `cvar`'s `HTTP-code` *Page* custom variable is populated (by checking in the admin panel), while the `_cvar`'s `WebServer` and `App version` *Visit* custom variables are never tracked.
@kaplun
Copy link
Author

kaplun commented May 24, 2018

Was actually due to a bug on my side.

@kaplun kaplun closed this as completed May 24, 2018
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label May 25, 2018
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.
Projects
None yet
Development

No branches or pull requests

2 participants