@hermann77 opened this Issue on March 5th 2020

If one calls API call Goals.addGoal with "matchAttribute=manually" it's required to set
"pattern"
AND
"patternType"
But these values are not needed on 'matchAttribute=manually'-Goal:

You MUST do this:
curl -i -X POST -d 'module=API&method=Goals.addGoal&idSite=1&name=TestGoal1&description=TestGoalDescr&matchAttribute=manually&allowMultipleConversionsPerVisit=1&pattern=TESTPATTERN&patternType=contains&format=JSON&token_auth=' https://MATOMO-URL.de/index.php

Proposal:
curl -i -X POST -d 'module=API&method=Goals.addGoal&idSite=1&name=TestGoal1&description=TestGoalDescr&matchAttribute=manually&allowMultipleConversionsPerVisit=1&format=JSON&token_auth=' https://MATOMO-URL.de/index.php

Important!!! The goal seams to be created correctly . Hence I would say: not critical.
Version: 3.13.1

@tsteur commented on March 5th 2020 Member

Thanks @hermann77

Powered by GitHub Issue Mirror