API call Goals.addGoal with matchAttribute=manually requires setting "pattern" AND "patternType" #15675
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
c: Usability
For issues that let users achieve a defined goal more effectively or efficiently.
Milestone
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
The text was updated successfully, but these errors were encountered: