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

Missing customVariables in actionDetails #11960

Closed
Sobhika2 opened this issue Aug 16, 2017 · 3 comments
Closed

Missing customVariables in actionDetails #11960

Sobhika2 opened this issue Aug 16, 2017 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@Sobhika2
Copy link

Dear team,
Beginning from July 15, when using the Piwik Reporting API, we started observing certain actions of one of the web site (idSite 36) with a missing customVariables property. This is a new behavior not observed before that date, when every action had this property.

Here is an example Piwik visit with two actions, the first of them doesn't have any customVariables at all:

{
"idSite": "36",
"idVisit": "32491827",
"visitIp": "********",
"visitorId": "ca92f31498bd27ce",
"actionDetails": [
{
"type": "action",
"url": "https://abc.com",
"pageTitle": "abc.com/abc",
"pageIdAction": "687880",
"serverTimePretty": "Jul 15, 2017 21:10:45",
"pageId": "138588375",
"generationTime": "1.95s",
"timeSpent": "1",
"timeSpentPretty": "1s",
"icon": null,
"timestamp": 1500153045
},
{
"type": "action",
"url": "https://abc.com",
"pageTitle": "abc.com/abc",
"pageIdAction": "687880",
"serverTimePretty": "Jul 15, 2017 21:10:46",
"pageId": "138588378",
"customVariables": {
"1": {
"customVariablePageName1": "ServiceName",
"customVariablePageValue1": "Global Share Participation Plan (GSPP)"
},
"2": {
"customVariablePageName2": "Location",
"customVariablePageValue2": "Zurich"
}

The issue still persists. Could you please check and let us know the issue here.

Regards

@sgiehl
Copy link
Member

sgiehl commented Aug 17, 2017

@Sobhika2 What exactly is the problem here? If the custom variable is set in action scope and only for one of those actions, it's correct that it's only available for that action.

@Sobhika2
Copy link
Author

Sobhika2 commented Aug 21, 2017

@sgiehl The behavior reported is that there are scenarios where custom variables are not being captured at all. But for the same URL a fraction of seconds later the custom variables are available.

@sgiehl
Copy link
Member

sgiehl commented Aug 30, 2017

It seems you are setting those variables per page. That means you need to set them before each trackPageView() in order to have them available for each action. Is that the case?

@sgiehl sgiehl added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Sep 10, 2017
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Feb 12, 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. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

2 participants