How can I modify the ads conversion code to capture shopify's actual transaction volume?

您好,我正在使用 Google 广告来销售我们的 shopify 产品。在转换设置中,我目前使用的是我们产品的平均价值,但我希望谷歌广告能够捕获到shopify的实际交易金额,而不是我预先设置的平均价格。那我应该怎么修改代码呢?

gtag('event', 'conversion', { 'send_to': 'AW-11013231023/4tBICL-PnoYYEK-jwoMp', 'value': 150.0, ' currency': 'USD', 'transaction_id': '' });

我自己将价值设置为 150,但我希望 Google 能够获取我订单的实际价值

Hello @QIPOP

I would like to give you the recommendation to support you so kindly follow steps below:

  1. Go to your Online store > Themes > Edit code
  2. Open your theme.liquid file
  3. Paste the below code before :

I hope the above is useful to you.
Best regards,
GemPages Support Team

I know, but this is just a Google translation code, and what I want is to show my dynamic product value. If I only add Google code, it now shows only the average value of a product that I set.