您可以利用 Google Ads 和 Google Analytics(分析)来衡量您网站的行为数据。请按照本文中的步骤,为您的 Google Ads 或 Google Analytics(分析)账号设置代码。详细了解如何使用网站开发工具或 CMS 添加代码。
关于如何设置 Google 代码的操作说明,以“AW-”开头的代码 ID(通常为 Google Ads 账号)与以“G-”开头的代码 ID(通常是 Google Analytics [分析] 媒体资源)有所不同。请按照下方您的代码对应的说明进行操作。
开始前须知
您可以免费将 Shopify 账号与 Google Ads 或 Google Analytics(分析)集成。若要设置集成,您需要:
- 有效的 Google 登录信息
- 由 Google 提供的 JavaScript 代码框和有效的 Shopify 账号
如果您的代码 ID 以“AW-”开头
- Sign in to your Shopify account and download the “Google & Youtube” app.
- From your Shopify console, click the search bar and search “Google and YouTube”.
- You'll be taken to the Shopify App Store. Click Install to continue.
- Review the list of permissions required, then click Install to continue.
- If the app isn't connected to Google, click Connect Google account and choose the Google account that owns your Ads property.
- Under the "Just want to set up Google Ads conversion measurement" banner, click Get Started.
- Select your "Google Ads account", then click Connect.
- Click Complete Setup.
- Ensure conversion tracking is enabled. Your account is now sending conversion information to Google.
- Sign in to your Shopify account and download the “Google & Youtube” app.
- From your Shopify console, click the search bar and search “Google and YouTube”.
- You'll be taken to the Shopify App Store. Click Install to continue.
- Review the list of permissions required, then click Install at the bottom to continue.
- If the app isn't connected to Google, click Connect Google Account and choose the Google account that owns your Google Analytics property.
- Under the "Looking only to set up Google Analytics 4" banner, click Get Started.
- Select your "Google Analytics property", then click Connect.
Note: If you plan on using Google Analytics to track free listings and ads conversions, check How to avoid duplicating tracking events to ensure that you do not duplicate conversion tracking.