{"action":"created","issue":{"url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/858","repository_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking","labels_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/858/labels{/name}","comments_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/858/comments","events_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/858/events","html_url":"https://github.com/BranchMetrics/ios-branch-deep-linking/issues/858","id":357056185,"node_id":"MDU6SXNzdWUzNTcwNTYxODU=","number":858,"title":"Dynamic Link Not Processed for Installations","user":{"login":"TinananaWang","id":20799093,"node_id":"MDQ6VXNlcjIwNzk5MDkz","avatar_url":"https://avatars2.githubusercontent.com/u/20799093?v=4","gravatar_id":"","url":"https://api.github.com/users/TinananaWang","html_url":"https://github.com/TinananaWang","followers_url":"https://api.github.com/users/TinananaWang/followers","following_url":"https://api.github.com/users/TinananaWang/following{/other_user}","gists_url":"https://api.github.com/users/TinananaWang/gists{/gist_id}","starred_url":"https://api.github.com/users/TinananaWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TinananaWang/subscriptions","organizations_url":"https://api.github.com/users/TinananaWang/orgs","repos_url":"https://api.github.com/users/TinananaWang/repos","events_url":"https://api.github.com/users/TinananaWang/events{/privacy}","received_events_url":"https://api.github.com/users/TinananaWang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Sarkar","id":821940,"node_id":"MDQ6VXNlcjgyMTk0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/821940?v=4","gravatar_id":"","url":"https://api.github.com/users/Sarkar","html_url":"https://github.com/Sarkar","followers_url":"https://api.github.com/users/Sarkar/followers","following_url":"https://api.github.com/users/Sarkar/following{/other_user}","gists_url":"https://api.github.com/users/Sarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/Sarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sarkar/subscriptions","organizations_url":"https://api.github.com/users/Sarkar/orgs","repos_url":"https://api.github.com/users/Sarkar/repos","events_url":"https://api.github.com/users/Sarkar/events{/privacy}","received_events_url":"https://api.github.com/users/Sarkar/received_events","type":"User","site_admin":false},"assignees":[{"login":"Sarkar","id":821940,"node_id":"MDQ6VXNlcjgyMTk0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/821940?v=4","gravatar_id":"","url":"https://api.github.com/users/Sarkar","html_url":"https://github.com/Sarkar","followers_url":"https://api.github.com/users/Sarkar/followers","following_url":"https://api.github.com/users/Sarkar/following{/other_user}","gists_url":"https://api.github.com/users/Sarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/Sarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sarkar/subscriptions","organizations_url":"https://api.github.com/users/Sarkar/orgs","repos_url":"https://api.github.com/users/Sarkar/repos","events_url":"https://api.github.com/users/Sarkar/events{/privacy}","received_events_url":"https://api.github.com/users/Sarkar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-05T03:54:08Z","updated_at":"2018-09-06T22:03:00Z","closed_at":null,"author_association":"NONE","body":"## Background\r\nWe are not getting consistent UTMs in Branch & Segment, and we were instructed by @Sarkar to use the dynamic link, which does give us UTMs in Branch with 100% success rate. However, since the Branch SDK cannot handle sending UTM parameters from Facebook campaign links because of some Facebook regulation, we need to set up the code by ourselves. Here is our internal ticket:\r\n\r\nThe marketing team is using \"dynamic links\" like this one: https://cm2v.test-app.link?%243p=a_facebook&utm_campaign=some_campaign&utm_source=some_source&%24ios_url=https%3A//rink.hockeyapp.net/apps/67cf1e34766347cea6a1f0c0df01d3ed&%24android_url=https%3A//play.google.com/store/apps/details%3Fid%3Dcom.hopskipdrive.hsd_android_v2.beta&%24desktop_url=https%3A//organizer.hopskipdev.com/sign-up\r\n\r\nYou can identify the link as coming from a Facebook campaign by the presence of $3p=a_facebook in the path.\r\n\r\nGiven a link in this format, send a track event to Segment using the Segment SDK.\r\n\r\n- event_name: “Install Attributed\"\r\n- Properties: All of the params in the link, including anonymousId, all the utms, etc. Partial screenshot of an example event, which should give you enough information to know how to structure the data:\r\n<img width=\"1411\" alt=\"succeed utm\" src=\"https://user-images.githubusercontent.com/20799093/45069985-03292580-b084-11e8-828b-bc2dba9ffcd7.PNG\">\r\n\r\n## Issue from Our Engineer while Setting it Up\r\nUnfortunately, in staging what I am seeing is that the link is not processed when it's an install (i.e. uninstall, clear advertising id, then click link). I am redirected to HockeyApp to install, then the app is opened but that link click is not attributed. If I click on the link after the app has been installed then the params / branch link are received & parsed correctly.\r\n\r\nHere are the parms that branch returns in initSession() after a fresh install after resetting the advertising ID:\r\n\r\n![1](https://user-images.githubusercontent.com/20799093/45070032-4edbcf00-b084-11e8-95df-5f57a288357c.PNG)\r\n\r\nAnd here's what I get if the app is already installed and running in the background and I click the link:\r\n\r\n![2](https://user-images.githubusercontent.com/20799093/45070055-61ee9f00-b084-11e8-8998-cbb04d216ff9.PNG)\r\n\r\nMost notable is that in the fresh install scenario, the \"clicked_branch_link\" parameter is \"0\" (false) - it should be \"1\" (true). Unfortunately, their SDK does not work the way Branch claims.\r\n\r\n@Sarkar Please help with this problem as soon as possible. Thank you!\r\n"},"comment":{"url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/comments/419255859","html_url":"https://github.com/BranchMetrics/ios-branch-deep-linking/issues/858#issuecomment-419255859","issue_url":"https://api.github.com/repos/BranchMetrics/ios-branch-deep-linking/issues/858","id":419255859,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTI1NTg1OQ==","user":{"login":"E-B-Smith","id":1229047,"node_id":"MDQ6VXNlcjEyMjkwNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1229047?v=4","gravatar_id":"","url":"https://api.github.com/users/E-B-Smith","html_url":"https://github.com/E-B-Smith","followers_url":"https://api.github.com/users/E-B-Smith/followers","following_url":"https://api.github.com/users/E-B-Smith/following{/other_user}","gists_url":"https://api.github.com/users/E-B-Smith/gists{/gist_id}","starred_url":"https://api.github.com/users/E-B-Smith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E-B-Smith/subscriptions","organizations_url":"https://api.github.com/users/E-B-Smith/orgs","repos_url":"https://api.github.com/users/E-B-Smith/repos","events_url":"https://api.github.com/users/E-B-Smith/events{/privacy}","received_events_url":"https://api.github.com/users/E-B-Smith/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T22:03:00Z","updated_at":"2018-09-06T22:03:00Z","author_association":"CONTRIBUTOR","body":"Thanks for bringing this to our attention.  Sorry this has been a chore to get going: There are a ton of pieces to this. \r\n\r\nThis will take some investigation to see what's going on.\r\n\r\n"}}
{"actor":{"display_login":"E-B-Smith"}}