简体   繁体   English

是否可以仅使用 Google Tag Manager 和 Google Analytics 跟踪销售转化? (没有 Google Ads 访问权限)

[英]Is it possible to track sales conversion with only Google Tag Manager and Google Analytics? (no Google Ads access)

I am working for a client to set up Google Ecommerce data for their Google Analytics.我正在为客户工作,为他们的 Google Analytics 设置 Google 电子商务数据。 I have done this once before on another site where I used a Google Ads conversion placed inside of a Google Tag that was placed on the site.我之前在另一个网站上做过一次,我使用了放置在网站上的 Google 标记内的 Google Ads 转换。 However, for this client, we don't have access to the Google Ads account;但是,对于该客户,我们无权访问 Google Ads 帐户; we only have access to the Google Analytics and Google Tag Manager.我们只能访问 Google Analytics 和 Google Tag Manager。 Is there a way to set up a Google Tag that will capture the data we need from their sales?有没有办法设置一个谷歌标签,从他们的销售中捕获我们需要的数据?

I have attempted a few different methods I've seen on the other forums but after waiting a day in between them being set, we still have no data coming in.我尝试了一些我在其他论坛上看到的不同方法,但是在它们之间设置了一天之后,我们仍然没有数据进入。

Details: We are using Magento 1.9 for the site and have access to the files to make modifications as needed to our custom theme.详细信息:我们正在为该站点使用 Magento 1.9,并且可以访问文件以根据需要对我们的自定义主题进行修改。 The order page ends on a success page for the user that uses the URL ending portion as 'checkout/onepage/success'.对于使用 URL 结尾部分作为“结帐/单页/成功”的用户,订单页面在成功页面上结束。

Yes you can see the data you need by using Google Analytics API for example, if you want to check how many transactions between two dates uses this code:是的,您可以使用 Google Analytics API 查看您需要的数据,例如,如果您想检查两个日期之间有多少交易使用此代码:

Reporting API V3:报告 API V3:

https://www.googleapis.com/analytics/v3/data/ga?ids={ViewId}&start-date={StartDate}&end-date={EndDate}&metrics=ga:transactions

Reporting API V4:报告 API V4:

{
  "reportRequests": [
    {
      "viewId": "XXXXXXX",
      "dateRanges": [
        {
          "startDate": "2021-01-01",
          "endDate": "2021-03-01"
        }
      ],
      "metrics": [
        {
          "expression": "ga:transactions"
        }
      ]
    }
  ]
}

Check this URL for all Dimensions & Metrics: https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/检查此 URL 的所有尺寸和指标: https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/

For those that come across this issue you can do it with the following:对于遇到此问题的人,您可以使用以下方法进行操作:

  1. Set up a Google Analytics variable that holds the value for your google analytics设置一个 Google Analytics 变量来保存您的 google 分析的值
  2. Under Ecommerce (inside GA variable) enable enhanced ecommerce features and use the data layer在电子商务下(在 GA 变量内)启用增强的电子商务功能并使用数据层
  3. Create a trigger that is set to page view with the URL that contains the success page (or order completed page)使用包含成功页面(或订单完成页面)的 URL 创建设置为页面视图的触发器
  4. Create a Tag with the Universal GA使用通用 GA 创建标签
  5. Use the GA variable, set the track type to Transaction使用 GA 变量,将跟踪类型设置为 Transaction
  6. Publish and wait to see the information on the following day.发布并等待第二天查看信息。

Link from Google that describes the process for set up: https://support.google.com/tagmanager/answer/6107169来自 Google 的描述设置过程的链接: https://support.google.com/tagmanager/answer/6107169

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM