Matomo-PHP-API icon indicating copy to clipboard operation
Matomo-PHP-API copied to clipboard

Wrapper for SitesManager. getJavascriptTag fails in Matomo 4.14.2

Open cseydel opened this issue 1 year ago • 1 comments

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 = '')

cseydel avatar Feb 14 '24 15:02 cseydel

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

thelfensdrfer avatar Feb 14 '24 15:02 thelfensdrfer