Mystore

Sync Data

Learn how to sync and customize data from your MyStore webshop

Sync your MyStore products and data to Clerk. This guide covers configuring the module and setting up data synchronization.

Before syncing data, make sure you have installed the Clerk.io module in your MyStore backend. See the Get Started guide for installation instructions.

Configure the module #

After installing the module, you need to configure it with your API keys and enable the data you want to sync.

  1. In your MyStore control panel, go to Utvidelser > Dine utvidelser.

  2. Find Clerk.io and click Instillinger to open the module settings.

  3. Go to my.clerk.io > Developers > API Keys and copy Public Key and Private Key.

  4. Paste the keys into the Clerk public key and Clerk private key fields.

  5. Enable Put orders in feed for the first sync so Clerk has access to historical orders.

  6. Enable Add tags to add extra product data to the feed.

  7. Click Oppdater to save. The tracking script is automatically added to your theme.

Set up Sync #

The Clerk.io module generates a data feed that contains your products, categories, orders, and customers. To sync this data with Clerk:

  1. Your feed URL follows this pattern:

    https://www.YOUR-DOMAIN.no/twinxml/clerk.php
    

    Replace YOUR-DOMAIN with your actual webshop domain.

  2. Go to my.clerk.io > Data > Configuration.

  3. Paste the feed URL into the Data Feed URL field.

  4. Select the language of your domain.

  5. Click Start Sync and wait for the sync to complete.

If the feed does not contain the expected data, add live=yes to the URL to force fresh data instead of cached data:

https://www.YOUR-DOMAIN.no/twinxml/clerk.php?live=yes

Verify the sync #

After the sync completes, verify that your data has been imported correctly:

  1. Go to my.clerk.io > Data > Products to see your imported products.

  2. Check my.clerk.io > Data > Orders to verify that orders are being synced.

If orders are not appearing, check that Put orders in feed is enabled in the module settings.

Settings reference #

Clerk.io module settings in MyStore
SettingDescription
Add tagsIncludes product-specific tags added to products in the MyStore backend as an attribute in the feed.
Automatic sync of feedAutomatically triggers the Clerk importer when the feed has been generated. This is often not needed as Clerk can be configured to import feeds at specific intervals automatically.
Put orders in feedAdds order history to the feed. Enable this for the first import so Clerk knows how customers have behaved before Clerk was installed. This setting is automatically disabled after the next sync to avoid having sensitive data in the feed. After installation, orders are tracked in realtime via sales-tracking.
Sider i feedenAdds pages like blog posts and FAQs to the feed, making them searchable in Clerk.
Clerk private keyThe Private Key used for syncing data. Found in my.clerk.io > Developers > API Keys.
Clerk public keyThe Public Key added to Clerk.js to initialise Clerk on the website. Found in my.clerk.io > Developers > API Keys.