<aside> ๐ก What is a SPA? A single page application (SPA) is a type of web application or website that consists of a single page. Unlike a traditional web application, an SPA allows users to interact with the page after the initial load without having to reload the entire page.
</aside>
On successful logout execution, call the following function to collect activity information:
TCS.logout();
When switching screens, call the following script to collect page movement data:
<script>
window['callDM'] = window['callDM'] || function (){
(window['callDM'].q = window['callDM'].q || []).push(arguments)
};
callDM();
</script>
<footer></footer> tag or the bottom area of the page.Call function on signup/login completion:
Call the following function upon completion of a signup integration or upon completion of a login integration:
TCS.sendMamber(JsonObject); // ์ธ์๋ String json์ด ์๋ JsonObject ์
๋๋ค.
Required and example:
| Key | Value | Description | Required or not |
|---|---|---|---|
| type | String | Join: join / Login: login |
Y |
| snsCode | String | SNS login/signup code (see below) | Y |
| memberId | String | Member ID | Y |
| memberName | String | Member name | N |
| String | Subscriber email | N | |
| phoneNumber | String | Subscriber phone number | N |
| gender | String | Subscriber gender (female: F / male: M) |
N |
| smsAllowed | String | Whether to receive text messages(Y/N) |
N |
| emailAllowed | String | Allowed to receive emails(Y/N) |
N |
Example:
{
"type": "join",
"snsCode": "00001",
"memberId": "gildong1234",
"memberName": "ํ๊ธธ๋",
"email": "[email protected]",
"phoneNumber": "01012340000",
"gender": "M",
"smsAllowed": "Y",
"emailAllowed": "N"
}
SNS login/signup code:
00001: Kakao00002: Naver00003: Facebook00004: Instagram09000: Other (including general signup/login)Call the function after payment completion:
After payment is completed, call the function below to collect payment data:
TCS.simplePay(JsonObject); // ์ธ์๋ String json์ด ์๋ JsonObject์
๋๋ค.
Required and Description:
| Key | Value | Description | Required or not |
|---|---|---|---|
| payCode | String | Easy payment code (see below) | Y |
| orderId | String | Order number | Y |
| products | Array | List of product information | Y |
| productId | String | Individual product code | Y |
| productName | String | Individual product name | Y |
| productPrice | String | Individual product price | Y |
| productDcPrice | String | Individual product discount price | Y |
| productQty | String | Individual product quantity | Y |
| totalPrice | String | Price of the entire order | Y |
| totalQty | String | Total order quantity | Y |
| memberId | String | Login ID | N |
Example:
{
"payCode": "19000",
"orderId": "20240701_12154",
"products": [
{
"productId": "23",
"productName": "์ํ๋ช
์
๋๋ค",
"productPrice": "288000",
"productQty": "1",
"productDcPrice": "258000"
}
],
"totalPrice": "288000",
"totalQty": "1",
"memberId": "gildong1234"
}