I am completely mystified. Some users start their visit to my website at https://[mysite]/store/?inapp=1
I want an event trigger for each on their first load.
I have a trigger that checks if PageURL contains “/store/” and if it contains “inapp=1”. This trigger fires if I am in preview mode, and the event it triggers is shown as triggering. However for real users, this event never arrives in the reports or realtime view.
I changed it to check if PageUrl contains “/store/?inapp=1” and this works, triggering the same event, which arrives in matomo.
Why? The “bad” one seems better, you could have another URL parameter stuffed in there and should still work. Except it doesn’t work, except in the preview.
Any help is appreciated.
GOOD
{
“idtrigger”: 1458,
“type”: “PageView”,
“name”: “Store Page Inapp”,
“parameters”: [],
“conditions”: [
{
“comparison”: “contains”,
“actual”: “PageUrl”,
“expected”: “/store/?inapp=1”
}
],
“created_date”: “2021-11-19 23:26:15”,
“updated_date”: “2021-11-19 23:26:15”,
“created_date_pretty”: “Nov 19, 2021 23:26:15”,
“updated_date_pretty”: “Nov 19, 2021 23:26:15”
},
BAD
{
“idtrigger”: 1390,
“type”: “PageView”,
“name”: “Store Page Inapp”,
“parameters”: [],
“conditions”: [
{
“comparison”: “contains”,
“actual”: “PageUrl”,
“expected”: “/store”
},
{
“comparison”: “contains”,
“actual”: “PageUrl”,
“expected”: “inapp=1”
}
],
“created_date”: “2021-11-19 18:05:57”,
“updated_date”: “2021-11-19 18:05:57”,
“created_date_pretty”: “Nov 19, 2021 18:05:57”,
“updated_date_pretty”: “Nov 19, 2021 18:05:57”
},