@Lukas
Hi Everyone? I am creating container, tags and triggers in Matomo tag-manager section using tag-manager APIs. TagManager.addContainerTrigger giving following error.
"Conditions: "Conditions" has to be an array."
I am not expert on that… But for me, in HTTP, if you want to create an array, you should do: ...&arr=something&arr=somethingelse&arr=moredatainarray&...
The UI is using exactly this API. So just check your browsers developer tool when you click save and you will see the exact request and can modify it to your needs.
Keep in mind that the conditions are sent as form data.
Hi @Lukas and @heurteph-ei Thanks for help. It is working fine now. Able to create triggers through API but unable to set it values i.e., in case of ScrollReach I am unable to set value 25 for vertical-percentage. Please have a look at attached screenshot.