I checked the database and have confirmed that custom vars are not being set in the log_conversion table but are being set in log_visit.
I have tried using both visit and page scoped vars as well…
My code goes something like this:
$piwikTracker->setCustomVariable($id = 1, $name = "Browser Version", $value = $this->agent->browser().' '.$this->agent->version(), $scope = 'page'); $piwikTracker->doTrackPageView('Results');
I’m also doing this on the homepage, to set a visit variable, I just added the page scoped one to see if that helped, but no luck.
$piwikTracker->setCustomVariable($id = 1, $name = "Browser Version", $value = $this->agent->browser().' '.$this->agent->version(), $scope = 'visit'); $piwikTracker->doTrackPageView('Home');
Do I need to do doTrackGoal instead? I setup some ecommerce goals that trigger on pageview titles, and that does indeed trigger a goal, but for some reason it’s not triggering it as a conversion.
What I really need is a way to track Browser Version goal conversion rates, maybe there’s a better way to do this than using a custom var?
There is a ticket for this by someone else here: Custom Variable Reports finding no data · Issue #2354 · matomo-org/matomo · GitHub
Anyone have any advice or ideas?