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 in the Visitor Log - Scope "Page" not shown when no value set #3590

Closed
anonymous-matomo-user opened this issue Dec 4, 2012 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

I am running the piwik 1.9.2 on my server but I do not see any custom variables in the visitor log - scope "page" - also not as an tooltip. There is only the tooltip shown how often the page was visted, if the page was visited more then once.

In the piwik modul "custom variables" the variables are shown correct so that the bug should somewhere in the vistor log.

So it is hard to analyze the vistor actions compared to "GET"-formulars.

Setup is here:

  • formular with POST-method
  • piwik-JS-Code-Example:
    <script type="text/javascript">
    try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 6);
    piwikTracker.setCustomVariable(1, "Name", "Aceton", "page");
    piwikTracker.setCustomVariable(2, "HazardClass", "USHMR-3", "page");
    piwikTracker.setCustomVariable(3, "Size", "", "100");
    piwikTracker.setCustomVariable(4, "Group", "", "5");
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
    } catch( err ) {}
    </script>

Keywords: custom variables visitor log page

@anonymous-matomo-user
Copy link
Author

Attachment: Screenshot Visitor Log
2012-12-04_05-59-48.jpg

@anonymous-matomo-user
Copy link
Author

Attachment: Screenshot modul custom variables (working)
2012-12-04_05-59-48_2.jpg

@mattab
Copy link
Member

mattab commented Dec 13, 2012

I notice that the custom variable is not displayed if the value is empty.

However the bug you report, is because the tooltip shows the custom variables for the "first unique pgaeview". When pages are collapsed and 2X is added, the first tooltip remains (so maybe you dont set your custom variable on the first page view?)

@mattab
Copy link
Member

mattab commented Dec 13, 2012

(In [7607]) Fixes #3590 Display custom variable tooltip even if custom variable value is empty

@anonymous-matomo-user anonymous-matomo-user added this to the 1.10 - Piwik 1.10 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants