#3590 closed Bug (fixed)

Custom Variables in the Visitor Log - Scope "Page" not shown when no value set

Reported by: tilo Owned by:
Priority: normal Milestone: 1.10 - Piwik 1.10
Component: Core Keywords: custom variables visitor log page
Cc: Sensitive: no

Description

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>

Attachments (2)

2012-12-04_05-59-48.jpg (27.8 KB) - added by tilo 17 months ago.
Screenshot Visitor Log
2012-12-04_05-59-48_2.jpg (48.0 KB) - added by tilo 17 months ago.
Screenshot modul custom variables (working)

Download all attachments as: .zip

Change History (4)

Changed 17 months ago by tilo

Screenshot Visitor Log

Changed 17 months ago by tilo

Screenshot modul custom variables (working)

comment:1 Changed 16 months ago by matt (mattab)

  • Milestone changed from 1.9.x - Piwik 1.9.x to 1.9.3 - Piwik 1.9.3
  • Summary changed from Custom Variables in the Visitor Log - Scope "Page" not shown to Custom Variables in the Visitor Log - Scope "Page" not shown when no value set

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?)

comment:2 Changed 16 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.