Skip to content
프로젝트

BranchMetrics/web-branch-deep-linking-attribution

GitHub에서 보기

소개

딥 링크와 어트리뷰션을 위한 Branch Web SDK입니다. 초기화하면 딥 링크를 생성해 링크를 만들고 배너(웹 전용), SMS 또는 자체 방식으로 공유할 수 있습니다. 이벤트 추적, 추천 정보 조회, 크레딧 관리 기능도 제공합니다.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Latest NPM Version NPM Downloads License Build

Branch Web SDK

Branch Metrics Deep Linking/Smart Banner Web SDK. Please see the SDK documentation for full details.

Installation

Add the loader to your page and initialize with your Branch key from the Branch dashboard. Calls made before the SDK finishes loading are queued and replayed.

<script>
  (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 banner closeBanner closeJourney data deepview deepviewCta first init link logout removeListener setBranchViewData setIdentity track trackCommerceEvent logEvent disableTracking getBrowserFingerprintId crossPlatformIds lastAttributedTouchData setAPIResponseCallback qrCode setRequestMetaData setAPIUrl getAPIUrl setDMAParamsForEEA referringLink".split(" "), 0);

  branch.init('key_live_YOUR_KEY', function (err, data) {
    // data contains the session and any deep link data
  });
</script>

Or install from npm:

npm install branch-sdk
const branch = require('branch-sdk');

branch.init('key_live_YOUR_KEY', function (err, data) {});

See Basic Integration for the full setup.

Running locally

Requires Node 24 and pnpm (both provided by the nix dev shell).

pnpm run start:dev   # first run prompts for your Branch key, API endpoint and port (default 3000)
# Navigate to http://localhost:3000/dev.html

Bugs / Help / Support

Report bugs and feature requests in this repo's issues. For help with your integration or anything else that isn't a bug, submit a ticket or email [email protected]. To report a security issue, see SECURITY.md.

관련 프로젝트 살펴보기

불러오는 중…