Hi,
I am hoping to develop a Plugin for our Matomo installation that will do the following:
- Get all Visitors for time period via > UserId.getUsers - this is simple
- Process that data to connect Salesforce CRM users to Matomo Visitors via their UserID - simple via Salesforce API and PHP Libraries
a) Set data to Salesforce
b) Pull data from Salesforce (ID) - Set the ID retrieved from Salesforce to the Matomo Vistitors - NOT SURE HOW?
- Display the ID on the Matomo Vistitor Log as a Clickable Link that would open the user on Salesforce - NOT SURE HOW
I am hoping for any tips / suggestions on how to do this?
Questions:
- How can I set a Matomo Visitor’s Custom Variable via the Plugin API? Is there a method to do this?
- How can I manipulate the Matomo Visitor Log view - to retrieve this Salesforce ID and display it as a link? Is “Live.getExtraVisitorDetails” or “extendVisitorDetails” or another method the best way to go about this?
I appreciate any help. I have looked through alot of the docs but have not been able to find an obvious way to do these.
Thanks
David