npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

greenbricks-cps-sdk

v1.2.8

Published

- `gb_click` , `gb_media` 파라미터를 인식하여 쿠키를 24시간 생성합니다.

Readme

GreenBricks - CPS

  • gb_click , gb_media 파라미터를 인식하여 쿠키를 24시간 생성합니다.

  • 새로운 gb_click , gb_media 가 들어오면 기존 쿠키는 삭제후 라스트 어트리뷰션으로 쿠키가 생성됩니다.

  • 구매 완료시 Schema 맞춰서 Purchase 함수를 보내면 완료입니다.

  • gb_cps 쿠키가 존재하지 않으면 실행되지 않습니다.

Contents

Script

  • <script src="https://cdn.jsdelivr.net/npm/greenbricks-cps-sdk@latest/dist/greenbricks-cps-sdk.iife.js"></script>

Schema

| Name | Type | Required | Description | 예시값 | | ---------- | ------------ | -------- | ------------ | ----------------------------- | | ChNm | varchar(30) | 자동 | 매체명 | adpick | | Apclid | varchar(200) | 자동 | 클릭id | ad_click_123 | | AdNm | varchar(30) | ✅ | 광고주명 | 광고주A | | ordNo | varchar(20) | ✅ | 주문번호 | ORD20250001 | | itemId | varchar(15) | ✅ | 상품ID | ITEM0001 | | itemNm | varchar(400) | ✅ | 상품명 | 로션 400ml 기획 (+257ml 증정) | | sellprc | integer | ✅ | 판매가격 | 10000 | | ordAmt | integer | ✅ | 주문금액 | 9500 | | dcAmt | integer | ✅ | 할인가격 | 500 | | rlordAmt | integer | ✅ | 실주문금액 | 9000 | | rlordQty | integer | ✅ | 실주문갯수 | 1 | | ordState | varchar(20) | ✅ | 주문상태 | 완료 | | ordDate | varchar(20) | ✅ | 주문일자 | 2025-02-24 | | Commission | integer | ✅ | 수수료 | 1000 | | ordUniqNo | varchar(10) | ❌ | 주문고유번호 | UNIQ1234 | | updateDate | varchar(20) | ❌ | 수정일자 | 2025-02-25 | | affp1 | varchar(50) | ❌ | 커스텀1 | custom1 | | affp2 | varchar(50) | ❌ | 커스텀2 | custom2 | | affp3 | varchar(50) | ❌ | 커스텀3 | custom3 | | affp4 | varchar(50) | ❌ | 커스텀4 | custom4 | | affp5 | varchar(50) | ❌ | 커스텀5 | custom5 |

Version

  • 0.0.1version : 쿠키제어

  • 1.0.5version : 세팅

  • 1.0.6version : 구매(purchase) & 유효성검사 추가

Purchase

  • GB서버로 로그전송
const purchaseData = {
  AdNm: "광고주명",      // 광고주명
  ordNo: "ORD12345678",  // 주문번호
  itemId: "ITEM987654",  // 상품ID
  itemNm: "프리미엄 상품", // 상품명
  sellprc: 50000,        // 판매가격
  ordAmt: 50000,         // 주문금액
  dcAmt: 5000,          // 할인가격
  rloadAmt: 45000,      // 실주문금액
  rloadQty: 1,          // 실주문 갯수
  ordState: "결제완료", // 주문 상태
  ordDate: "2025-02-14 01:33:12", // 주문 일자 YYYY-MM-DD HH:MM:SS

  Commission: 5000,     // 수수료 (선택 사항)
  ordUniqNo: "ORD-UNIQ-12345", // 주문 고유번호 (선택 사항)
  updateDate: "2025-02-14" // 수정일자 (선택 사항)

  affp1: "",//커스텀 파라미터1 (선택 사항)
  affp2: "",//커스텀 파라미터2 (선택 사항)
  affp3: "",//커스텀 파라미터3 (선택 사항)
  affp4: "",//커스텀 파라미터4 (선택 사항)
  affp5: "",//커스텀 파라미터5 (선택 사항)
  };

// ✅ 실행함수
purchase(purchaseData);

자동설정

  • ChNm: "CPS매체" (쿠키에서 자동맵핑)
  • Apclid: "앱클릭아이디" (쿠키에서 자동맵핑)

유의사항

  • Commission : 정해지지 않았으면 null가능
  • ordDate : YYYY-MM-DD HH:MM:SS
  • ordUniqNo : 묶음주문의 경우 기재
  • updateDate : 주문취소등의 상태 변경시 기재
  • ordState : 사전에 정해진 값은 아래와 같습니다.

| ordState | | -------- | | 배송완료 | | 배송지시 | | 입금대기 | | 주문완료 | | 주문취소 | | 출하완료 | | 판정대기 | | 전환대기 | | 전환확정 | | 구매취소 | | 환불완료 |