You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to track a campaign code in the deep link to see where some of the users come from.
So I can have something like @"/account" but also @"/account/:campaign_code".
It would be nice to do that !
The text was updated successfully, but these errors were encountered:
We don't currently support regex matching on the URL as a whole, only individual path components. Sounds like a good idea though. For now, you could register two handlers with the more specific route first.
router[@"/account/:campaign_code"] = ^(DPLDeepLink *link) {
// run some code
};
router[@"/account"] = ^(DPLDeepLink *link) {
// run some code
};
Or even:
void (^accountHandler)(DPLDeepLink *) = ^(DPLDeepLink *link) {
// run some code
};
router[@"/account/:campaign_code"] = accountHandler;
router[@"/account"] = accountHandler;
Hi,
I would like to track a campaign code in the deep link to see where some of the users come from.
So I can have something like @"/account" but also @"/account/:campaign_code".
It would be nice to do that !
The text was updated successfully, but these errors were encountered: