Basic operations and settings

Basic operations and settings

Explanation of how to link Shopify and official LINE accounts and how to do it.

  • Last updated:
  • To link StoreCRM and LINE, please do the following
  • When linked to LINE, LINE messages can be delivered to customers at the appropriate time.
  • When to deliver the LINE message,ScenarioThis can be set in the

Functions available after linking with LINE

StoreCRM(Shopify App Store)
StoreCRM for LINE | The definitive Shopify and LINE integration app
How to install an icon for LINE ID linkage on your Shopify store
How to enable Shopify membership registration and login with LINE Login
Necessary for attracting customers! Comparing 4 Shopify LINE ID linked apps with many benefits
How to manage customers on LINE | 10 recommended CRM tools

Guide customers through LINE linking and login

Store identity verification is required for customer LINE linking and login. See Verify identity and restart LINE linking or login for confirmation after authentication, registration email, expiry, and unlinked-account recovery.

Find the LINE setup guide for your account type

The customer LINE-linking guide checks the Shopify customer-account type. It is separate from preparing your own test recipient. Shopify Plus OIDC settings are not required solely for ordinary LINE linking.

1. Review guidance for new customer accounts

Location: Settings → LINE Settings → customer linking guide

Read ① where to place the block for new customer accounts. Follow the linked profile-block guide below.

Check: Customers log in to Shopify and then link LINE or add the official account from their profile.

Numbered red frames showing 1. Review guidance for new customer accounts
1. Review guidance for new customer accounts

2. If you use classic customer accounts

Location: The same LINE settings guide

For a classic-account store, read ① the guidance for showing the linking button on the account page.

Check: The classic account-page button differs from the new customer-account profile block.

Numbered red frames showing 2. If you use classic customer accounts
2. If you use classic customer accounts

Add the LINE-linking block to the profile.

If the account type is unknown, the screen shows both guides. Failure to detect the type does not mean the store uses classic accounts. Stores with existing OIDC settings or observed use may also see optional guidance separate from ordinary linking.

Where LINE user IDs are saved after linking

When a customer completes LINE linking through StoreCRM, the LINE user ID is saved in StoreCRM and automatically synchronized to a Shopify customer metafield. You do not need to add a customer note or enter the ID manually for newly linked customers.

Applies toCustomer
Namespacestorecrm
Keyline
TypeSingle line text (single_line_text_field)

The destination is storecrm.line. You do not need to create a metafield definition when installing the app. If you create a definition in Shopify beforehand, use the namespace, key, and type listed above.

StoreCRM writes linking results to storecrm.line. Entering a LINE user ID in this field and refetching customers does not import it as migration data. To migrate existing customers, use the customer-note procedure below.

Migrate existing customer LINE links

When LINE is disconnected, StoreCRM also removes the synchronized LINE user ID from Shopify. The storecrm-line customer tag is a separate setting, managed when tag assignment is enabled in LINE settings.

Watch the video to set up

See the manual and set it up.

  • You can link with StoreCRM by completing the following three steps.
    1. Create a LINE Official Account
    2. Creating and configuring the Messaging API
    3. Create and configure a LINE Login channel

Create a LINE Official Account

If you already have a LINE Official Account, you can skip this item. If you do not have a LINE Official Account yet, register for a LINE Business ID and then create one.

If you do this from the Messaging API settings,LINE Official Account ManagerPlease open the corresponding LINE Official Account.

Register a LINE Business ID

In this article, we will explain how to register your LINE Business ID.
If you have already registered your LINE Business ID, you can skip this step.

1. Official LINE AccountAccess → Click [Start a LINE Official Account].

2. Click [Register with email address].
  • Here we will explain how to register using your email address. If you want to register with a LINE account, click [Register with a LINE account].
  • If you already have an account, please see step 4.
3. Enter your email address → click [Send registration link].

A registration link will be sent to your email address; click on it to complete your registration.

4. Click [If you already have an account, log in].

Create a LINE Official Account

This article explains how to create a LINE Official Account and move to the LINE Official Account Manager home screen.
If you already have a LINE Official Account, you can safely skip this step.

1. Please enter your store's official account.

As an example, enter "StoreCRM Official Account" as the account name.

2. Select your store's industry type.

3. Please select the purpose of your account.

4. Please select the primary use of your account.

5. Choose how your Business Manager will connect with your organization.

For business managers,here for more information.

6. Click Confirm.
7. Click Finish.
8. Click [Authenticate later].

Account verificationIf you would like to do so, please click Request Account Verification.

line-account-12-1
9. Click Agree.
Screen showing the Shopify and LINE Official Account integration setup
10. Click Agree.
Screen showing the Shopify and LINE Official Account integration setup
11. Click [×].

You have now moved to the LINE Official Account Manager home screen.

Generate and configure the Messaging API

Generate a Messaging API from LINE Official Account Manager (if you have never set up a Messaging API before)

This item explains how to generate the Messaging API from LINE Official Account Manager.
Skip this item if you have already generated one to use the Messaging API.

1. From the LINE Official Account Manager home screen, click [Settings].

Click on "Messaging API.
3. Click [Use Messaging API].
4. Choose your provider.

As an example, we will create a new provider called "StoreCRM Official Account".

Click "I agree.

6. Click OK.

This is an optional input. You can proceed to the next step even if you do not enter any information.

7. Click OK.

8. Verify that the Messaging API has been generated
Screen showing the Shopify and LINE Official Account integration setup

Configure the Messaging API

  1. Enable the Messaging API in LINE Official Account Manager and open the channel in LINE Developers. Use the same provider as your LINE Login channel.
  2. Open LINE → LINE settings in StoreCRM and enter the Messaging API channel ID and secret.
  3. Copy the Webhook URL shown in StoreCRM, register it in the Messaging API settings in LINE Developers, and enable webhooks.
  4. If you use rich menus, also configure the channel access token. This is separate from the standard connection settings.
  5. Click Save.
Messaging API channel information and Webhook URL in LINE settings
Messaging API channel information and Webhook URL in LINE settings

Create and configure a LINE Login channel

Create a LINE Login channel from LINE Developers (if you have never created a LINE Login channel before)

※The LINE Login channel must be created within the same provider as the Messaging API.
If you have already created a LINE Login channel, you can skip this item.

1. Click LINE Developers Console to go to the LINE Developers Console. (When moving from LINE Official Account Manager)

In the LINE Developers console,hereIt can also be accessed from.

2. In the LINE Developers console, click the provider name under Admin. (If you created the Messaging API earlier, select the same name as when you created it)

3. Click Create New Channel.

4. Click [LINE Login].

5. Select the appropriate country/region where your company/operator is located.

6. We recommend using the same channel name you set earlier.

As an example, we set "StoreCRM Official Account".

7. Set the channel description.

As an example, "This is an official StoreCRM account." and set up.

8. Check [Web application] under App type.

9. Check [I agree to the terms of the LINE Developer Agreement].

10. Click Create.

A LINE login has been created.

Configure the LINE Login channel

  1. Open the LINE Login channel under the same provider and check its ID and secret.
  2. Enter the LINE Login ID and secret under LINE → LINE settings in StoreCRM. Do not confuse them with the Messaging API credentials.
  3. Copy the callback URL displayed in StoreCRM and register it in the LINE Login channel.
  4. Publish the channel and save the StoreCRM settings.
LINE Login channel ID, secret, and callback URL
LINE Login channel ID, secret, and callback URL

Add the LINE connection button to a customer account page

Legacy customer accounts

Open LINE → LINE settings, enable the option to show the LINE connection button at the top of the Shopify account page, and save. Where your setup requires it, enable and save the StoreCRM common features App Embed in the published theme.

LINE connection button setting for legacy customer accounts
LINE connection button setting for legacy customer accounts

New customer accounts

For new customer accounts that use a one-time login code, the legacy checkbox does not add the button. Open Shopify’s customer account editor, choose Profile, add the StoreCRM app block, and save. Seethe new customer account profile installation guide.

Thank you pages

This is a different location from the profile page. In the checkout and customer account editor, select Thank you and add the relevant app block. Seethe thank you page installation guide.

After saving, log in on the storefront and verify the complete LINE connection flow and the resulting customer record in StoreCRM.

Configure guidance for LINE login errors

In [LINE] → [LINE Settings], you can set a guide to display to customers who failed LINE Login.

Open LINE settings
Open LINE settings

Enter a /pages/… path in the store or an HTTPS URL on the same store to send customers to that page. If left blank, StoreCRM displays its standard error screen. You can edit the heading, description, and back button for the standard screen in Japanese and English.

Set the guidance URL and text, then save
Set the guidance URL and text, then save
Save the LINE error guidance URL and copy
Save the LINE error guidance URL and copy

Configure LINE integration tracking (classic customer accounts only)

To track completion of LINE integration, select [Add an integration completion parameter to the account page] and save. When this setting is on, the following parameter is added to the URL when the customer returns to the account page after completing LINE integration: line_connect=1 Use this parameter to track completed integrations in Google Tag Manager or to display an integration-complete message in your storefront.
Note: This setting applies only when returning to the account page (/account)./account/profile On pages under the account path, such as line_connect=1 the parameter is not added.
Note: If this setting is off, as before, line_connect=1 the parameter is not added.

Configure the LINE Channel Access Token settings.

It is not necessary to enter a LINE Channel Access Token in order to send LINE messages from StoreCRM, but it is also necessary to have a LINE Channel Access Token set up in order to deliver rich menus.

1. Generate a channel access token from Store Official Account in the left navigation → [Channel Settings] → [Messaging API] → [Channel Access Token] in [Messaging API Settings].
Screen showing the Shopify and LINE Official Account integration setup
2) Paste the generated channel access token into the LINE Channel Access Token in the StoreCRM LINE Settings and click [Save].
Screen showing the Shopify and LINE Official Account integration setup

LINEリッチメニューを配信する場合は、Set up and activate a LINE rich menuで、トークンの登録状態と配信内容を確認してください。

Enable LINE Login with Shopify Plus

This is an OIDC collaboration that allows you to log in to a new Shopify customer account with your LINE account. Can be set up by stores using Shopify Plus.

Open the current LINE login settings

1. Open the settings menu

Where: StoreCRM left navigation

Click Settings.

Check: The store settings menu opens.

Step 1: Open the settings menu
Step 1: Open the settings menu
2. Select customer account authentication

Where: Customers and registration in Settings

Click Customer account authentication. This replaces the former OIDC tab within LINE Settings.

Check: The customer account authentication settings open on the right.

Step 2: Select customer account authentication
Step 2: Select customer account authentication
3. Check LINE and Google/Shop availability

Location: Login methods in Customer Account Authentication

This production example has Google and Shop available and enabled. Check ① Google and ② Shop. Keep the existing LINE setting enabled if you still offer LINE. Enabling a provider and the customer’s first-time linking and identity verification are separate steps.

Check: The saved login methods are retained.

Step 3: Reopen the page and check the options. Numbered red frames show the controls or result to check.
Production screen. Personal information is masked.

Detailed setup, first-time linking and disconnection instructions for Google and Shop

Setup flow

  1. Open Settings → Customer account authentication in StoreCRM. For initial setup, click Enable OIDC integration to generate the Discovery URL, Client ID, Client Secret, and other information to enter in Shopify.
  2. In the Shopify admin screen, open Settings → Customer Account → Authentication Management → Manage Providers → Connect to Provider.
  3. Select LINE for the ID provider name, select Custom or Other for the provider, and enter the information displayed in STEP 1 of StoreCRM. Leave Additional scopes blank.
  4. Enter the callback URL and logout URL displayed in Shopify into STEP 2 of StoreCRM. If there is more than one, click [+ Add URL] to add more input fields.
  5. Register the LINE Login Callback URL displayed in STEP 3 of StoreCRM to the LINE Developers LINE Login channel.
  6. If necessary, set the logo, favicon, button color, terms and conditions URL, and notes for the email authentication page, then click [Save].

Validation when saving

This check is performed when saving the callback URL and logout URL obtained from Shopify to StoreCRM in the OIDC integration settings for Shopify Plus.

  1. Paste the callback URL and logout URL displayed on Shopify's [Identity Provider] settings screen into the corresponding fields in StoreCRM.
  2. If multiple URLs are displayed, click [+ Add URL] to increase the input field and register all the URLs given by Shopify.
  3. At least one callback URL and one or more logout URL each are required when saving. If there is a blank field, [Enter URL] will be displayed below the input field and the file will not be saved.
  4. Spaces before and after the URL are removed, but values ​​with spaces in the middle of the URL or values ​​that are not in URL format cannot be saved.
  5. If the URL on the Shopify side changes due to the addition of your own domain, etc., copy the content displayed on Shopify again and update the StoreCRM side as well.

After making changes, click Save and confirm the save completion message. Reload the page and if all the URLs you added remain, the setup is complete.

1. Review URL validation errors

Where: Callback and logout URL fields

Trying to save empty fields displays errors below 1 the callback URL and 2 the logout URL. Enter all URLs provided by Shopify in their corresponding fields.

Check: Validation errors prevent saving. This image illustrates errors, not a completed configuration.

Step 1: Review URL validation errors
Step 1: Review URL validation errors

Click here for detailed explanation of LINE Login settings

Related articles

Set up the LINE and profile membership cards

If you would like to display the membership card barcode to customers who have already linked LINE, or if you would like to display the membership card on the profile screen of a new customer account,Set up the LINE and profile membership cards.

TOP
en_USEnglish