본문으로 건너뛰기
분석 & 어트리뷰션 · · 5분 소요

딥 링크 이상 징후 분석 알림

작성자 Tolinku 팀
|
딥 링크 이상 징후 분석 알림

AASA 파일이 깨지면 아무도 눈치채지 못한 채 몇 시간 동안 딥 링크 성능이 떨어질 수 있어요. 마케터가 "이메일 링크가 작동하지 않아요"라고 보고할 때쯤이면 이미 수천 명의 사용자가 대체 페이지로 이동한 뒤예요. 알림을 설정하면 몇 시간이 아니라 몇 분 안에 이런 문제를 잡을 수 있어요.

이 가이드는 딥 링크 이상 징후에 대한 분석 알림을 설정하는 방법을 다뤄요. 실시간 대시보드는 딥 링크용 실시간 분석 대시보드문서를 보세요. 웹훅 연동은 딥 링킹을 위한 웹훅과 연동.

클릭 지표와 전환 퍼널을 보여주는 Tolinku 분석 대시보드 날짜 범위 선택기, 필터, 차트, 세부 분류가 있는 분석 대시보드예요.

알림 기준

심각 알림 (즉시 조치)

다음은 무언가 고장 났다는 신호예요:

알림 조건 심각도 일반적인 원인
오픈율 급락 1시간 동안 오픈율 40% 미만 심각 AASA/assetlinks.json 다운 또는 설정 오류
오류율 급증 15분 동안 오류율 5% 초과 심각 서버 오류, 깨진 라우트
트래픽 없음 업무 시간 중 30분 넘게 클릭 없음 심각 DNS 문제, 서버 다운
대체 페이지 비율 급증 기존 사용자의 대체 페이지 비율 60% 초과 심각 Universal Links / App Links 오작동

경고 알림 (원인 조사)

다음 항목은 개발 중 문제를 나타낼 수 있어요:

알림 조건 심각도 일반적인 원인
전환 하락 7일 평균 대비 전환율이 30% 이상 하락 경고 랜딩 페이지 문제, 혜택 만료
지연 시간 증가 30분 동안 평균 지연 시간이 500ms를 넘음 경고 서버 성능 저하
플랫폼 간 차이 iOS와 Android의 오픈율 차이가 20% 이상 벌어짐 경고 플랫폼별 설정 문제
캠페인 성과 저조 캠페인 CTR이 기준값의 50% 미만 경고 부정확한 타겟팅, 크리에이티브 피로

정보성 알림 (참고용)

주요 이벤트를 추적해요:

알림 조건 심각도
트래픽 급증 한 시간 동안 클릭 수가 평소의 200%를 넘음 정보
새로운 국가 감지 상위 20위 밖 국가에서 트래픽이 많이 들어옴 정보
예산 임계값 캠페인 지출이 예산의 80%에 도달 정보

알림 아키텍처

구성 요소

데이터 파이프라인 → 집계 → 규칙 엔진 → 알림 라우터
                                               ├→ Slack
                                               ├→ Email
                                               ├→ PagerDuty
                                               └→ 웹훅

구현

interface AlertRule {
  id: string;
  name: string;
  metric: string;
  condition: {
    type: 'threshold' | 'percentage_change' | 'anomaly';
    operator: 'above' | 'below';
    value: number;
    window: string;       // "15m", "1h", "24h"
    baseline?: string;    // "7d_average", "previous_period"
  };
  severity: 'critical' | 'warning' | 'info';
  notifications: {
    channels: string[];   // Slack 채널, 이메일 주소
    cooldown: string;     // "15m", "1h" - 알림 간 최소 간격
  };
  filters?: {
    platform?: string;
    route?: string;
    campaign?: string;
  };
}

const alertRules: AlertRule[] = [
  {
    id: 'open-rate-crash',
    name: '딥 링크 오픈율 급락',
    metric: 'open_rate',
    condition: {
      type: 'threshold',
      operator: 'below',
      value: 40,
      window: '1h'
    },
    severity: 'critical',
    notifications: {
      channels: ['#deep-links-critical', '[email protected]'],
      cooldown: '15m'
    }
  },
  {
    id: 'conversion-drop',
    name: '전환율 하락',
    metric: 'conversion_rate',
    condition: {
      type: 'percentage_change',
      operator: 'below',
      value: -30,
      window: '4h',
      baseline: '7d_average'
    },
    severity: 'warning',
    notifications: {
      channels: ['#deep-links-alerts'],
      cooldown: '1h'
    }
  }
];

평가 루프

async function evaluateAlerts(rules: AlertRule[]) {
  for (const rule of rules) {
    // 쿨다운 확인
    if (isInCooldown(rule.id)) continue;

    // 현재 지표 값 가져오기
    const currentValue = await getMetricValue(
      rule.metric,
      rule.condition.window,
      rule.filters
    );

    // 조건 평가
    let triggered = false;

    switch (rule.condition.type) {
      case 'threshold':
        triggered = rule.condition.operator === 'below'
          ? currentValue < rule.condition.value
          : currentValue > rule.condition.value;
        break;

      case 'percentage_change':
        const baseline = await getBaselineValue(
          rule.metric,
          rule.condition.baseline || '7d_average',
          rule.filters
        );
        const change = ((currentValue - baseline) / baseline) * 100;
        triggered = rule.condition.operator === 'below'
          ? change < rule.condition.value
          : change > rule.condition.value;
        break;

      case 'anomaly':
        triggered = await isAnomaly(rule.metric, currentValue, rule.condition.window);
        break;
    }

    if (triggered) {
      await sendAlert(rule, currentValue);
      setCooldown(rule.id, rule.notifications.cooldown);
    }
  }
}

이상 탐지

통계 방법

단순 임계값 알림은 점진적인 성능 저하를 놓쳐요. 이상 탐지는 과거 패턴과 비교해 비정상적인 변화를 잡아내요.

이동 평균과 표준편차

function detectAnomaly(
  current: number,
  history: number[],
  sensitivity: number = 2 // 표준편차 배수
): { isAnomaly: boolean; zScore: number; expected: number } {
  const mean = history.reduce((sum, v) => sum + v, 0) / history.length;
  const variance = history.reduce((sum, v) => sum + Math.pow(v - mean, 2), 0) / history.length;
  const stdDev = Math.sqrt(variance);

  const zScore = stdDev > 0 ? (current - mean) / stdDev : 0;

  return {
    isAnomaly: Math.abs(zScore) > sensitivity,
    zScore,
    expected: mean
  };
}

// 사용 예시
const last7Days = await getHourlyValues('open_rate', 7);
const currentHour = await getCurrentHourValue('open_rate');
const result = detectAnomaly(currentHour, last7Days);

if (result.isAnomaly) {
  console.log(`이상 감지: 오픈율 ${currentHour}%, 예상 ~${result.expected}%`);
}

계절성 보정

딥 링크 트래픽에는 일간, 주간 패턴이 있어요. 현재 시간을 이전 날의 같은 시간과 비교하세요:

SELECT
  AVG(open_rate) AS expected_open_rate,
  STDDEV(open_rate) AS stddev_open_rate
FROM hourly_metrics
WHERE EXTRACT(HOUR FROM timestamp) = EXTRACT(HOUR FROM NOW())
  AND EXTRACT(DOW FROM timestamp) = EXTRACT(DOW FROM NOW())
  AND timestamp >= NOW() - INTERVAL '28 days'
  AND timestamp < NOW() - INTERVAL '1 day';

이 쿼리는 화요일 오후 2시를 최근 4번의 화요일 오후 2시와 비교해요. 일간 및 주간 계절성을 모두 반영해요.

알림 채널

Slack 알림

async function sendSlackAlert(
  webhookUrl: string,
  rule: AlertRule,
  currentValue: number
) {
  const severityEmoji = {
    critical: ':rotating_light:',
    warning: ':warning:',
    info: ':information_source:'
  };

  const message = {
    blocks: [
      {
        type: 'header',
        text: {
          type: 'plain_text',
          text: `${severityEmoji[rule.severity]} ${rule.name}`
        }
      },
      {
        type: 'section',
        fields: [
          { type: 'mrkdwn', text: `*지표:* ${rule.metric}` },
          { type: 'mrkdwn', text: `*현재 값:* ${currentValue}` },
          { type: 'mrkdwn', text: `*임계값:* ${rule.condition.operator} ${rule.condition.value}` },
          { type: 'mrkdwn', text: `*기간:* ${rule.condition.window}` }
        ]
      },
      {
        type: 'actions',
        elements: [
          {
            type: 'button',
            text: { type: 'plain_text', text: '대시보드 보기' },
            url: 'https://app.tolinku.com/analytics'
          }
        ]
      }
    ]
  };

  await fetch(webhookUrl, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(message)
  });
}

PagerDuty 연동

즉시 대응이 필요한 중요 알림의 경우:

async function sendPagerDutyAlert(
  routingKey: string,
  rule: AlertRule,
  currentValue: number
) {
  await fetch('https://events.pagerduty.com/v2/enqueue', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      routing_key: routingKey,
      event_action: 'trigger',
      payload: {
        summary: `${rule.name}: ${rule.metric} 현재 ${currentValue} (임계값: ${rule.condition.value})`,
        severity: rule.severity === 'critical' ? 'critical' : 'warning',
        source: 'deep-link-analytics',
        component: 'deep-links',
        custom_details: {
          metric: rule.metric,
          current_value: currentValue,
          threshold: rule.condition.value,
          window: rule.condition.window
        }
      }
    })
  });
}

알림 모범 사례

알림 피로 피하기

알림이 너무 많으면 사람들은 모든 알림을 무시하게 돼요:

문제 해결 방법
중요도가 낮은 알림이 너무 많음 정보성 알림은 일일 요약으로 묶으세요
플래핑 (알림이 발생했다 해제되기를 반복함) 히스테리시스 적용: 40%에서 발생, 50%에서 해제
같은 문제에 대한 중복 알림 관련 알림을 묶고, 쿨다운 동안 중복 알림은 억제하세요
점검 중 알림 알림을 억제하는 점검 시간대를 설정하세요

알림별 런북

모든 알림에는 대응 방법을 설명하는 런북 링크를 넣으세요:

## 알림: 딥 링크 오픈율 급락

**의미:** 딥 링크 클릭 중 앱 열기에 성공한 비율이 40% 아래로 떨어졌어요.

**주요 원인:**
1. AASA 파일(iOS)이 200이 아닌 상태 코드를 반환하거나 Content-Type이 잘못됨
2. assetlinks.json(Android) 검증 실패
3. 앱 스토어에서 앱이 삭제됨
4. CDN이 검증 파일의 오래된 응답이나 오류 응답을 캐시함

**조사 단계:**
1. AASA 확인: `curl -I https://yourdomain.com/.well-known/apple-app-site-association`
2. assetlinks 확인: `curl -I https://yourdomain.com/.well-known/assetlinks.json`
3. 플랫폼별 분석 확인: iOS만인지, Android만인지, 둘 다인지 확인
4. 특정 시점(배포, DNS 변경 등)부터 문제가 시작됐는지 확인

**해결 방법:**
- 검증 파일을 수정하고 올바른 헤더와 함께 200을 반환하도록 설정
- 검증 파일의 CDN 캐시 퍼지
- Apple과 Google의 검증 도구로 확인

알림 설정을 위한 Tolinku

Tolinku's 웹훅 딥 링크 이벤트를 알림 인프라로 보낼 수 있어요. 이와 함께 Tolinku's 분석은, 분석 대시보드에서 오픈율, 폴백 비율, 오류율을 모니터링할 수 있어요. 그리고 Tolinku 대시보드 외부 알림은 웹훅 연동을 통해 설정하세요.

실시간 모니터링은 다음을 참고하세요: 딥 링크용 실시간 분석 대시보드를 참고하세요. 분석 기본 개념은 딥 링크 분석: 중요한 것을 측정하기.

딥 링킹 팁을 메일로 받아 보세요

일주일에 한 번만 보내요. 스팸은 없어요.

앱에 딥 링킹을 추가해 볼까요?

유니버설 링크, 앱 링크, 디퍼드 딥 링킹, 분석을 몇 분 만에 설정할 수 있어요. 무료로 시작하세요.