می توانید از Google Analytics برای ردیابی تبدیل ها در لیست های رایگان و وب سایت خود استفاده کنید.
اگر به یک ویژگی Google Analytics دسترسی دارید، میتوانید با ایجاد یک منبع تبدیل Google Analytics، آن ویژگی را به حساب Merchant Center خود پیوند دهید.
درخواست API زیر یک شیء ConversionSource جدید در حساب Merchant Center شما برای Google Analytics ایجاد می کند:
POST https://merchantapi.googleapis.com/conversions/v1/accounts/ACCOUNT_ID/conversionSources{ "googleAnalyticsLink": { "propertyId": PROPERTY_ID }}
پاسخ نمونه زیر حاوی یک شیء ConversionSource است. منابع تبدیل Google Analytics دارای فیلد googleAnalyticsLink تنظیم شده است و نام آنها پس از accounts/ {ACCOUNT} /conversionSources/galk: {PROPERTY_ID} .
اگر ویژگی Google Analytics ندارید، میتوانید با ایجاد یک منبع تبدیل وبسایت با برچسب Google، دادههای تبدیل را مستقیماً به حساب Merchant Center خود ارسال کنید. میتوانید از Google Tag Manager API برای راهاندازی یک برچسب Google موجود استفاده کنید، یا از برچسب جدیدی استفاده کنید که بهطور خودکار هنگام افزودن منبع تبدیل وبسایت جدید ایجاد میشود.
در اینجا نمونه ای وجود دارد که یک شی accounts.conversionSources جدید برای ردیابی وب سایت در حساب Merchant Center شما ایجاد می کند:
POST https://merchantapi.googleapis.com/conversions/v1/accounts/ACCOUNT_ID/conversionSources{ "merchantCenterDestination": { "attributionSettings": { "attributionLookbackWindowDays": 30, "attributionModel": "CROSS_CHANNEL_LAST_CLICK" }, "displayName": "My tag destination", "currencyCode": "CHF" }}
در اینجا یک پاسخ نمونه است که حاوی یک شی ConversionSource است. منابع تبدیل وبسایت دارای فیلد merchantCenterDestination هستند و نام آنها پس از accounts/ {ACCOUNT_ID} /conversionSources/mcdn: {PROPERTY_ID} .
تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Merchant API allows you to manage conversion sources for your Merchant Center account, enabling you to view data from free listings and your website.\u003c/p\u003e\n"],["\u003cp\u003eBefore managing conversion sources, ensure auto-tagging is set up and a website is claimed for your Merchant Center account, with a limit of 200 conversion sources per account.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Analytics can be linked to track conversions by creating a Google Analytics conversion source if you have administrator access to a Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, if you don't have a Google Analytics property, you can send conversion data directly to your Merchant Center account by creating a website conversion source with a Google tag.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating a conversion source, you can use its \u003ccode\u003edestination\u003c/code\u003e with a Google tag to receive conversion data directly from your website.\u003c/p\u003e\n"]]],["To manage conversion data for free listings and websites in a merchant account, use the Merchant API. First, set up autotagging and claim your website. You can link a Google Analytics property by creating a `ConversionSource` object using a POST request, specifying the property ID. Alternatively, for website tracking without Google Analytics, create a `ConversionSource` with a Google tag via another POST request. A merchant account can have up to 200 conversion sources. Once set, use the conversion source's `destination` with a Google Tag.\n"],null,["# Manage conversion sources\n\nHere's how to use the Merchant API to manage the conversion sources for your\nMerchant Center account.\n\nMerchant Center conversion sources let you view conversion data from\n[free listings](//support.google.com/merchants/answer/13889434), and from [your website](//support.google.com/merchants/answer/13071753), in your\nMerchant Center account.\n\nBefore you can manage conversion sources with the Merchant API, you need to\n[set up autotagging](//support.google.com/merchants/answer/11127659) and [claim a website](//support.google.com/merchants/answer/176793) for your\nmerchant center center account. A Merchant Center account can have up to 200\nconversion sources.\n\nLink Google Analytics\n---------------------\n\nYou can use [Google Analytics](//support.google.com/merchants/answer/12046446) to track conversions on your free\nlistings and your website.\n\nIf you have administrator access to a Google Analytics property, you can link\nthe property to your Merchant Center account by creating a Google Analytics\nconversion source.\n\nThe following API request creates a new\n[`ConversionSource`](/merchant/api/reference/rest/conversions_v1/accounts.conversionSources#resource:-conversionsource) object under your Merchant Center\naccount for Google Analytics: \n\n POST https://merchantapi.googleapis.com/conversions/v1/accounts/\u003cvar translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e/conversionSources\n\n {\n \"googleAnalyticsLink\": {\n \"propertyId\": \u003cvar translate=\"no\"\u003ePROPERTY_ID\u003c/var\u003e\n }\n }\n\nThe following sample response contains a `ConversionSource` object. Google\nAnalytics conversion sources have the field `googleAnalyticsLink` set and their\nname follows the `accounts/`\u003cvar translate=\"no\"\u003e{ACCOUNT}\u003c/var\u003e`/conversionSources/galk:`\u003cvar translate=\"no\"\u003e{PROPERTY_ID}\u003c/var\u003e. \n\n {\n \"name\": \"accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/conversionSources/galk:\u003cvar translate=\"no\"\u003ePROPERTY_ID\u003c/var\u003e\"\n \"googleAnalyticsLink\": {\n \"propertyId\": \"\u003cvar translate=\"no\"\u003ePROPERTY_ID\u003c/var\u003e\",\n \"attributionSettings\": {\n \"attributionLookbackWindowDays\": 30,\n \"atributionModel\": \"CROSS_CHANNEL_DATA_DRIVEN\",\n \"conversionType\": [\n {\n \"name\": \"purchase\",\n \"report\": true\n }\n ]\n },\n \"propertyName\": \"My Property Name\"\n },\n \"state\": \"ACTIVE\",\n \"controller\": \"MERCHANT\"\n }\n\nUse a Google tag\n----------------\n\nIf you don't have a Google Analytics property, you can send conversion data\ndirectly to your Merchant Center account by\n[creating a website conversion source with a Google tag](//support.google.com/merchants/answer/13071753).\nYou can use the [Google Tag Manager API](/tag-platform/tag-manager/api/v2) to set up an existing\nGoogle tag, or use the new tag that is automatically created when you add a new\nwebsite conversion source.\n\nHere's a sample that creates a new\n[`accounts.conversionSources`](/merchant/api/reference/rest/conversions_v1/accounts.conversionSources)\nobject for website tracking under your Merchant Center account: \n\n POST https://merchantapi.googleapis.com/conversions/v1/accounts/\u003cvar translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e/conversionSources\n\n {\n \"merchantCenterDestination\": {\n \"attributionSettings\": {\n \"attributionLookbackWindowDays\": 30,\n \"attributionModel\": \"CROSS_CHANNEL_LAST_CLICK\"\n },\n \"displayName\": \"My tag destination\",\n \"currencyCode\": \"CHF\"\n }\n }\n\nHere's a sample response that contains a `ConversionSource` object. Website\nconversion sources have the field `merchantCenterDestination` set and their name\nfollows the `accounts/`\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e`/conversionSources/mcdn:`\u003cvar translate=\"no\"\u003e{PROPERTY_ID}\u003c/var\u003e. \n\n {\n \"name\": \"accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/conversionSources/mcdn:\u003cvar translate=\"no\"\u003e{PROPERTY_ID}\u003c/var\u003e\",\n \"merchantCenterDestination\": {\n \"destination\": \"MC-ABCD1234\",\n \"attributionSettings\": {\n \"attributionLookbackWindowDays\": 30,\n \"attributionModel\": \"CROSS_CHANNEL_LAST_CLICK\"\n },\n \"displayName\": \"My tag destination\",\n \"currencyCode\": \"CHF\"\n },\n \"state\": \"ACTIVE\",\n \"controller\": \"MERCHANT\"\n }\n\nOnce created, you can use the conversion source's `destination` with a\n[Google tag](/tag-platform/tag-manager) to get conversion data directly from your website.\n\nLearn more\n----------\n\nTo learn about migrating from Content API for Shopping, see\n[Migrate conversion sources management](/merchant/api/guides/compatibility/conversion-sources)."]]