VisualAppeal / Matomo-PHP-API

PHP wrapper for the Matomo API.
MIT License
95 stars 33 forks source link

Wrapper for SitesManager. getJavascriptTag fails in Matomo 4.14.2 #55

Open cseydel opened 8 months ago

cseydel commented 8 months ago

Hello there, we noticed after an update of our Matomo Server from Matomo 3 to Matomo 4.14.2 that there is a problem with the API Wrapper for SitesManager. getJavascriptTag as they changed the variable types for visitorCustomVariables and pageCustomVariables to array (array visitorCustomVariables = 'Array', array pageCustomVariables = 'Array').

It would be great if you could advise on this topic.

Extract from Matomo API Reference: - SitesManager.getJavascriptTag (int idSite, string piwikUrl = '', bool mergeSubdomains = false, bool groupPageTitlesByDomain = false, bool mergeAliasUrls = false, array visitorCustomVariables = 'Array', array pageCustomVariables = 'Array', string customCampaignNameQueryParam = '', string customCampaignKeywordParam = '', bool doNotTrack = false, bool disableCookies = false, bool trackNoScript = false, bool crossDomain = false, bool forceMatomoEndpoint = false, excludedQueryParams = '', excludedReferrers = '')

thelfensdrfer commented 8 months ago

I don't use Matomo anymore, a pull request would be greatly appreciated!