post https://{account}.piwik.pro/api/tag/v1//triggers
Log in to see full request history
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
Loading…
Responses
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
xxxxxxxxxx
14curl --request POST \
--url https://example.piwik.pro/api/tag/v1/app_id/triggers \
--header 'accept: application/vnd.api+json' \
--header 'content-type: application/vnd.api+json' \
--data '
{
"data": {
"type": "trigger",
"attributes": {
"trigger_type": "page_view"
}
}
}
'
xxxxxxxxxx
30}
{
"data": {
"id": "57a653c9-07c0-4f9a-85f6-1cda14eb5e3e",
"type": "trigger",
"attributes": {
"name": "Trigger page view for default campaign",
"trigger_type": "page_view",
"conditions": [
{
"condition_id": "9efa6364-8982-45c5-a288-cdabdf7a4001",
"variable_id": "42ff090e-f97c-45b5-8625-21ae26891382",
"condition_type": "equals",
"value": "clearcode.cc",
"options": {}
},
{
"condition_id": "9c376cf0-09db-45f1-a2ee-9163d7f10d99",
"variable_id": "9c63b4a0-db22-4c13-acaf-ef6bafdfecd3",
"condition_type": "equals",
"value": "#test-submit-form-pptm",
"options": {
"selector_type": "css"
}
}
],