Skip to content

Wrapper for SitesManager. getJavascriptTag fails in Matomo 4.14.2 #55

@cseydel

Description

@cseydel

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions