Explains the initial setup for the HTML < script > tag or the JavaScript SDK.

Archisketch Installation Guide

❗️

Only Administrator Accounts Can Proceed with Installation

To integrate with Archisketch, an Archisketch Enterprise Admin Account is required.
If you have not an admin account, you will not be able to complete the installation process.


Installation Steps

Archisketch Installation Process consists of three main steps:

--

1️⃣ Request/Create an Enterprise Admin Account.

2️⃣ Integrate Archisketch Connector.

3️⃣ Insert Archisketch Script.

--

Please follow the steps sequentially from [1️⃣ Request/Create an Enterprise Admin Account] to [3️⃣ Insert Archisketch Script]!

  • πŸ“‹ Use the Table of Contents on the right to easily navigate to specific content.


1. Request/Create an Enterprise Admin Account

πŸ“˜

Already have an Enterprise Admin Account?

If you already have an Enterprise Admin Account, feel free to skip this step. πŸ™‡β€β™‚οΈ


Anyone who has purchased the Archisketch Enterprise Service is eligible to obtain an Enterprise Admin Account.

If you do not have an Enterprise Admin Account(Admin), please create an account through Archisketch ChannelTalk or Contact Us.


Archisketch integration is a 1:1 integration process between the Cafe24 admin account and the Archisketch admin account.

Archisketch integration is a 1:1 integration process between the your service admin and the Archisketch admin account.



2. Integrate Archisketch Connector


Step_01.

Log in to the Archisketch dashboard with an administrator account, then click on [Integration] > [Insert Script Tag Card] > [Check Connection] to proceed to the connector page.

πŸ‘† 이미지λ₯Ό ν΄λ¦­ν•˜λ©΄, 크게 λ³Ό 수 μžˆμŠ΅λ‹ˆλ‹€.

πŸ‘† Clicking on the image allows you to view it in a larger size.


Step_02.

Click the [Start Integration] button on the connector page, enter the admin account, and proceed with account authentication.


Step_03.

After logging in with the admin account, click the [ Integrate Script button ] to activate the script code to be integrated.


Step_04.

When the script integration is completed successfully:

1️⃣ The integration completion page will appear on the connector page.

2️⃣ The activated Insert Script Tag card will be visible on the dashboard.

πŸ‘

Script URL

The Script URL in the activated card will be used later when inserting the script into the website.

μ„€μΉ˜κ°€ μ •μƒμ μœΌλ‘œ μ™„λ£Œλ˜λ©΄, **μ„€μΉ˜ μ™„λ£Œ νŽ˜μ΄μ§€**κ°€ λ“±μž₯ν•΄μš”.

When the script integration is completed successfully, the integration completion page will appear.

슀크립트 연동이 μ •μƒμ μœΌλ‘œ μ™„λ£Œλ˜λ©΄, **고도λͺ° μΉ΄λ“œ**κ°€ ν™œμ„±ν™”λ˜μš”.

When the script integration is completed successfully, the script tag card will become active.



3. Insert Archisketch Script


Step_01.

To allow the Archisketch module to synchronize user data, please set up the global variable(as_user) first.

  • βœ… The variable name must be set as as_user.
  • βœ… memberId, name, nickName, and email are required for Archisketch integration.
  • βœ… The memberId must be unique, and if the other values are missing, please set default values as shown below.

const as_user = {};

window.as_user = {
  memberId:"User ID", // The memberId must be "unique."
  name: "User name" || `${memberId}-name`,
  nickName: "User nickname(alias)" || `${memberId}-nickName`,
  email: "User e-mail(Ex][email protected])" || `${memberId}-email`
  // or Please modify the fallback data to match the email format.
};


Step_02.

2-1. Find the < head > tag in your website (or web service) HTML code.

2-2. Copy the Archisketch installation script and paste it just above the closing </ head> tag.

2-3. Alternatively, you can insert the script in a React environment as shown in the example below:

  • βœ… The scriptUrl value can be obtained from [Dashboard > Integration Page > Insert Script Card] after integration.
  • βœ… When entering the scriptUrl, you don't need to include the πŸ‘‰ emoji.

Example: HTML


<script>
  var scriptUrl = "πŸ‘‰ Please enter the script URL here.";

  (function() {
    var script = document.createElement("script");
    script.src = scriptUrl;
    script.async = true;
    script.onerror = function() {
      console.error("Failed to load external script.");
    };
    document.head.appendChild(script);
  })();
</script>


Example: React

import React, { useEffect } from "react";

const ReactScript = () => {
  useEffect(() => {
    const scriptUrl = "πŸ‘‰ Please enter the script URL here.";
    
    const script = document.createElement("script");
    script.src = scriptUrl;
    script.async = true;
    script.onerror = () => {
      console.error("Failed to load external script.");
    };
    document.head.appendChild(script);

    return () => {
      document.head.removeChild(script);
    };
  }, []);

  return <div>{"Insert Archisketch module in React"}</div>;
};

export default ReactScript;

import React, { useEffect } from "react";

const TypeScriptExample: React.FC = () => {
  useEffect(() => {
    const scriptUrl = "πŸ‘‰ Please enter the script URL here.";
    
    const script: HTMLScriptElement = document.createElement("script");
    script.src = scriptUrl;
    script.async = true;
    script.onerror = () => {
      console.error("Failed to load external script.");
    };
    document.head.appendChild(script);

    return () => {
      document.head.removeChild(script);
    };
  }, []);

  return <div>{"Insert Archisketch module in React Typescript"}</div>;
};

export default TypeScriptExample;


Step_03.

1️⃣ Declare Global Variables

2️⃣ Insert < script > Code into Website HTML

πŸ‘† If both of the above procedures have been completed correctly, you will see the Archisketch entry button appear on the website as shown below.

  • βœ… After installation, it may take 1-2 seconds for the button to appear, depending on the internet environment.


Customer Information Provided to Archisketch

When users visiting the website log in to Archisketch or new members sign up, the following customer information is automatically synchronized with Archisketch.


User Profile DB

DataDescription
member_id A unique identifier for each member (such as a member ID).
nameUser name
nicknameUser nickname
emailUser e-mail


Uninstall Archisketch


Step_01.

Log in to the Archisketch dashboard using an administrator account, then click [Integration] > [Insert Script Card] > [Check Connection] to proceed to the connector. Once in the connector, reauthenticate with the administrator account and click the [Disconnect Script] button.

κ΄€λ¦¬ν•˜κΈ° λ²„νŠΌμœΌλ‘œ μ‚­μ œν•˜κΈ°

πŸ‘† Clicking on the image allows you to view it in a larger size.


Step_02.

Please remove the Archisketch script from the HTML, then save and deploy the changes.