I am running an affiliate website with offers. On that affiliate website i am running Matomo Analytics.
What is do is this.
If a user is clicking on a affiliate link i send the visitor_id with this link.
When they purchase the offer the externaldomain gives on there thankyoupage an GET/POST to my url.
What is do on this tracking.php in the Matomo trackingcode is this:
_paq.push([‘trackGoal’, 2, <?php echo $commission; ?>]);
_paq.push([‘visitor_id’, <?php echo $subid; ?>]); //this one seems it’s not working.
My question is: How can i trackGoal been set for a specific MATOMO_VISITORID