adjust-icon

智能横幅 SDK Shopify 集成

您可以将 Adjust 智能横幅 SDK 集成到 Shopify 并通过 Shopify 标签发送智能横幅。请按照本指南中的步骤进行设置。

在 Shopify 中集成 SDK

  1. 访问https://admin.shopify.com找到您的商店管理员工具。

  2. 选择 Online Store → Themes

  3. 选择活跃主题上的三点菜单,然后选择 Edit code

    A screenshot of the Shopify theme overview page

  4. 找到并打开theme.liquid文件。

  5. SDK 加载片段添加进主题的<head></head>标签中。

    A screenshot of the Shopify theme editor

  6. 向下滚动至主题的<body>标签,输入 SDK 初始化调用。该调用必须包含 appToken。请查看SDK 初始化选项来使用init方法配置 SDK。

    <!-- Adjust Smart Banner SDK -->
    <div id="AdjSbRoot"></div>
    <script>
    AdjustSmartBanner.init({
    appToken: "YOUR_TOKEN",
    logLevel: "verbose",
    bannerParent: document.getElementById("AdjSbRoot"),
    });
    </script>
    <!-- Adjust Smart Banner SDK -->

    A screenshot of the Shopify theme editor showing the Smart Banner SDK init options

  7. 保存变更。