Seems like a basic question but haven’t yet found an answer: What’s the standard way to track Matomo goals in Wordpress?
I see the official docs reference the API, but without goal-specific examples, or an example script to use with the API request.
Do I need to write a short JS function to execute the AJAX call to the API? What does a goal-triggering REST API call look like (minimum required parameters)? Any docs on this specific topic? Thanks.