Ecommerce argument in creating site


(Олег Кудряшов) #1

When I tried to create website with matomo sites manger API, and transfer parameter ecommerce=1 (or =true, or =“true”) it doesn’t work.

This is link:
https://site.com?module=API&method=SitesManager.addSite&siteName=site_name&urls=dwadawawdawdawdawd&ecommerce=true&format=php&token_auth=blabla

Response come :
Array ( [result] => error [message] => Ecommerce: The value for field “Ecommerce” in plugin “WebsiteMeasurable” is not allowed )

Api description:
SitesManager.addSite (siteName, urls = ‘’, ecommerce = ‘’, siteSearch = ‘’, searchKeywordParameters = ‘’, searchCategoryParameters = ‘’, excludedIps = ‘’, excludedQueryParameters = ‘’, timezone = ‘’, currency = ‘’, group = ‘’, startDate = ‘’, excludedUserAgents = ‘’, keepURLFragments = ‘’, type = ‘’, settingValues = ‘’, excludeUnknownUrls = ‘’)

Why it doesn’t work?