Just use this one:
var _paq = _paq || [];
_paq.push(["trackGoal", '<goal_id>', {{ YourVariable }}]);
Link to docs here: API — Piwik PRO Analytics Suite 16.33 documentation
Just use this one:
var _paq = _paq || [];
_paq.push(["trackGoal", '<goal_id>', {{ YourVariable }}]);
Link to docs here: API — Piwik PRO Analytics Suite 16.33 documentation