✋ Pulling Data out of Matomo?

How can I initiate a simple data request and return the value of a variable, so I can save it?

For example, how would I simply output the Visitor Profile ID - so we can ultimately push it into our MySQL database with the rest of the customer details from that transaction?

I’m not a programmer so not exactly sure but, would this be the right way to accomplish this with PHP?

<?php $token_auth = '**MyTokenHere**'; getVisitorId() ?>

I am willing to pay for help if anyone can assist.

I am simply trying to add a link in our CRM that points to Matomo’s visitor log, so we can see the detailed insights that led up to each sales transaction.

My dynamic link/URL would be as shown below (the last part of the URL parameter would output the person’s unique visitor ID:

https://myserver.com/index.php?module=CoreHome&action=index&date=2020-07-16&period=day&idSite=1#?idSite=1&period=day&date=2020-07-16&segment=&category=General_Visitors&subcategory=Live_VisitorLog&popover=visitorProfile$3A [VISITOR PROFILE ID HERE]

Hi Brett,

I am wondering if @Lukas wouldn’t have an answer here for you.
He wrote a great answer here:

which led to:
and open the gates for many possibilities about Matomo.
From my understanding you would like to push as a trackpageview the visitorid value.

-> Am I right?