Clone the TiKTok for Business Repository

TikTok for Business requires that you have a SiteGenesis or Storefront-Reference-Architecture (SFRA).

To clone the repository, you need access to the Salesforce CommerceCloud repositories on GitHub. If you don’t have a GitHub account, see Salesforce Commerce Cloud GitHub Repositories and Access.
  1. Sign in to Salesforce CommerceCloud GitHub.
  2. To copy the repository to your local system, search for the Social Channels Integrations repository, and click Clone.
    To integrate with TikTok for Business, you need two cartridges:
    • bm_socialchannels: This cartridge contains the Business Manager controllers and UI logic for the Business Manager extension that a site administrator can use to integrate with different social channels like TikTok, and Snapchat.
    • int_tiktok: This cartridge contains the logic to integrate with TikTok. It includes the service definitions, logic to handle the customer object that stores the TikTok details, and the job that syncs the B2C Commerce product catalog with TikTok.
  3. Upload the cartridges to your sandbox and import the metadata. Follow the instructions in the README file from the social_channels folder.
    Note: Always install the cartridge in a staging instance, test the setup process with the staging Instance Id, orgId, and catalog. Then, replicate the code to production, change the instance Id, orgId in the setup process. Point staging and production instances to different catalogs, and pixels on TikTok. You can use the same business center account and TikTok Ad account.
  4. Upload both bm_socialchannels and int_tiktok cartridges to your active code version.
  5. Add bm_socialchannels cartridge to the Business Manager cartridge path.
    1. In Business Manager, select Administration > Sites > Manage Sites.
    2. On the Storefront Sites page, click Business Manager.
    3. Add int_socialchannelsto the cartridge path.
    4. Click Apply
  6. Add int_tiktok cartridge to the Business Manager cartridge path.
    1. In Business Manager, select Administration > Sites > Manage Sites.
    2. From the list of sites, select your site.
    3. Click the Settingstab.
    4. Add int_tiktokto the cartridge path.
    5. Click Apply
      The export catalog job directly calls the TikTok API.
  7. Zip the contents of the data folder and import the zip file.
    1. In Business Manager, select Administration > Site Development > Site Import & Export
    2. Click Choose File.
    3. Select the zip file and click Import.
  8. Give permission to the TikTok for Business Manager menu to the required users.