Skip to content

Instantly share code, notes, and snippets.

@aaustin
Last active November 18, 2015 00:40
Show Gist options
  • Save aaustin/4cdd97441f799a133c24 to your computer and use it in GitHub Desktop.
Save aaustin/4cdd97441f799a133c24 to your computer and use it in GitHub Desktop.
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-v1.8.0.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setIdentity track validateCode".split(" "), 0);
branch.init('YOUR-BRANCH-KEY');
branch.deepview(
{
'channel': 'mobile_web',
'feature': 'deepview',
data : {
'$deeplink_path': 'page/1234',
'user_cookie_id': '7890',
'page_id': '1234',
}
},
{
'open_app': true
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment