简体   繁体   English

用于Magento Checkout成功的Google跟踪代码管理器集成

[英]Google Tag Manager Integration for Magento Checkout Success

I'm a bit confused with getting around on what GTM mentions as to the following. 我对GTM提到的以下问题感到困惑。

The rule is considered matched only when every condition below is satisfied. 仅当满足以下每个条件时,才认为该规则是匹配的。

Screenshot 截图 在此输入图像描述

My magento checkout success page might end up in different URLs depending on the order. 根据订单,我的magento结帐成功页面可能会以不同的URL结尾。 Listing a few below. 在下面列出几个。

  • http ://domain.com/checkout/onepage/success/ HTTP://domain.com/checkout/onepage/success/
  • https ://domain.com/checkout/onepage/success/ https://domain.com/checkout/onepage/success/
  • http ://domain.com/checkout/multishipping/success/ HTTP://domain.com/checkout/multishipping/success/
  • https ://domain.com/checkout/multishipping/success/ https://domain.com/checkout/multishipping/success/

Now the above four can be without the trailing slash as well, which sums to 8 URLs. 现在上面的四个也可以没有尾部斜杠 ,总计为8个URL。

I'm aware that I can't add all these URL matches to a single rule with the GTM {{url}} contains or {{url}} equals parameters. 我知道我无法将所有这些网址匹配添加到GTM {{url}}包含或{{url}}等于参数的单个规则中。

What's the best way to get around this? 什么是最好的解决方法?

You could use two rules 您可以使用两个规则

  1. url contains checkout 网址包含结帐

and

  1. url contains success 网址包含成功

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

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