I am implementing Campaign Manager floodlight tags in Google Tag Manager. As I am trying to capture dynamic values, do I create a dataLayer variable with double brackets, ex: {{cost}} in GTM, then request the event pixel be placed on site? Will the gloabl snippet have to be implemented on site too, or no since the GTM container is linked to DV360?
Asked
Active
Viewed 121 times
0
-
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Mar 01 '22 at 11:37
1 Answers
0
Ok, you should really clarify things, but I'll try crystal-balling it.
- In order for you to capture dynamic variables in dataLayer, you first need to make sure the variable has been pushed into it (typically by the front-end team or a plugin).
- To use a dataLayer variable, you create a corresponding Data Layer Variable in GTM. See the screenshot:
- When you deploy a pixel and you need to use eye color in it using javascript, you get the value by referencing the name of the GTM variable rather than what's in DL:
{{DLV - Eye Color}}
- Finally, timing. When your pixel firing trigger is being triggered, your dynamic values should already be available. Otherwise, you'll not be getting them, sending pixels with no dynamic values.

BNazaruk
- 6,300
- 3
- 19
- 33