@anonymous-piwik-user opened this Issue on April 23rd 2011

I am attempting to use the custom variable feature. The results are HALF working: within Visitors -> Visitor Log, the custom variables are shown. However, when I look at Goals -> Overview -> View Goals by Visit -> Custom Variables, I get a "no data" message.

The goals are being recorded properly, and they will filter correctly by other parameters (country, referrer, etcetera) but not by custom variable. This is true either from Visitors -> Custom Variables or Goals -> Overview -> View Goals by Visit -> Custom Variables

My code is straightforward:


piwikTracker.setCustomVariable(1,"AB-Switch", "2");



Installed Version: 1.3
Keywords: Custom Variable

@mattab commented on April 26th 2011 Member

Can you please look, in the table log_conversion if the custom variables are properly recorded for your goals?

@mattab commented on April 28th 2011 Member

It looks like it is working fine in the demo. The only thing I can think of is that, the Custom Vars will be shown in the Goal view, ONLY if the custom variables were set to the visit BEFORE the goal conversion occured (since variables are copied in the log_conversion when conversion occurs)

@mattab commented on April 28th 2011 Member

please confirm and post a comment if you still have a problem

@anonymous-piwik-user commented on July 11th 2011

I'm having the same issue.

I have confirmed that custom vars are not being set in the log_conversion table but are being set in log_visit.

I'm using the PHP API instead of Javascript if that helps narrow things down at all..

I have tried using both visit and page scoped vars... And help?

@anonymous-piwik-user commented on July 11th 2011
@anonymous-piwik-user commented on July 11th 2011

Cross-posted over here as well: http://forum.piwik.org/read.php?2,79288

@mattab commented on July 14th 2011 Member

Assuming dupe of: #2564

This Issue was closed on July 14th 2011
Powered by GitHub Issue Mirror