Skip to content

Instantly share code, notes, and snippets.

@aaustin
Created November 12, 2016 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaustin/ba6f64d374fad49cd7a5e9f46de6b9b8 to your computer and use it in GitHub Desktop.
Save aaustin/ba6f64d374fad49cd7a5e9f46de6b9b8 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
(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-latest.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 setBranchViewData setIdentity track validateCode".split(" "), 0);
branch.init('YOUR-BRANCH-KEY');
// You'll need to set the deep link data here, in the block where you call init().
branch.setBranchViewData({
data: {
mydata: 'something',
user_id: 'user_1234',
product_id: '12345',
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment