将google标记管理器变量插入自定义标记内的URL

时间:2022-08-22 15:13:59

I have a URL like the following for a marketing pixel in Google Tag Manager. This is in a custom JS tag which is an img src pixel.

对于Google跟踪代码管理器中的营销像素,我有以下网址。这是一个自定义的JS标签,它是一个img src像素。

"https://report.myurl.com/cgi-bin/a.gif?event=event-name&user={{User Id}}"

What is the recommended method for including the variable in a URL string?

将变量包含在URL字符串中的推荐方法是什么?

1 个解决方案

#1


0  

Make sure that User ID is declared within GTM and is defined, before the tag is triggered and naming convention is exactly the same, rest looks good.

确保在GTM中声明用户ID并定义,在触发标记并且命名约定完全相同之前,其余部分看起来很好。

#1


0  

Make sure that User ID is declared within GTM and is defined, before the tag is triggered and naming convention is exactly the same, rest looks good.

确保在GTM中声明用户ID并定义,在触发标记并且命名约定完全相同之前,其余部分看起来很好。