Reputation: 161
I am creating dynamic branch links using Android SDK
https://github.com/BranchMetrics/android-branch-deep-linking#creating-a-deep-link
These are then shared to social media
How do I track things like click events, installs etc as I do not believe they show up in the dashboard quick links view? https://dashboard.branch.io/quick-links
Is there a HTTP API I can use to interrogate all links I may have dynamically created that are part of the same campaign?
Upvotes: 3
Views: 1323
Reputation: 1
Just updating on Joe's answer
Unfortunately, type:2
is not supported for deep links via rest api w.e.f
13 January 2022
https://github.com/BranchMetrics/branch-deep-linking-public-api/issues/46
Hope they add it back. I don't know how to see individual detailed stats for a deep link. Adding ?stats=1 doesn't show any stats even though aggregate stats are shown in the sources dashboard Maybe I'm missing something
Upvotes: 0
Reputation: 537
you must include a "type": 2 in your branch params
https://help.branch.io/developers-hub/docs/deep-linking-api
const branchConfig = {
"branch_key": environment.branchio.key_live,
"type": 2,
"data": {
"$marketing_title": (params.job_name ? params.job_name : ""),
}
};
Upvotes: 1
Reputation: 13633
Alex from Branch.io here:
You are correct that SDK-generated links do not show up in the Quick Links view on the dashboard. Most SDK-created links are 'disposable' (in that they get used once and then regenerated the next time), so showing every link there individually would quickly overwhelm the UI. It is possible to override this on a link-by-link basis with the type
parameter, as detailed here.
However, you can access the numbers in aggregate, segmented by campaign
value, which I believe is what you want anyway. This is not currently available through the API, but you can see these statistics through the Sources report on the dashboard: https://dashboard.branch.io/sources
Upvotes: 4