我的网址是这样的:
http://www.example.com/sub1/sub2/sub3/sub4/a/1-2-123456789
格式基本上是这样的:
[whatever]/[1 character a-z]/[integer]-[integer]-[integer]
我需要在GTM中创建一个触发器,当页面路径遵循上述格式并且最后一个整数超过特定数字时触发,例如超过12345。
答案 0 :(得分:0)
GTM似乎不支持比较字符串化数字。
我能想到的最好的是组合ORed条件(与管道'|'运算符结合)
(1) Does it match a 6-digited number \d\d\d\d\d\d
(2) Does it match 1234[5-9]
(3) Does it match 1235\d
(4) Does it match 124\d\d
(5) Does it match 13\d\d\d
(6) Does it match 2\d\d\d\d