Use Google Tag Manager to pass values to Floodlight tags

When implementing Floodlight tags in Google Tag Manager, you may want to pass values from your site to the tags to capture key marketing parameters that you can later use to build audiences or report on specific custom metrics.

dataLayer is a JavaScript object in Google Tag Manager that provides an interface for passing required values into macros that you can later use to populate your designated tags. This article explains how to use dataLayer to communicate with Campaign Manager 360 specifically and pass any required values to your Floodlight tags. For more in-depth explanations, please visit the Google Developers page on Google Tag Manager implementations for the web.

Traditionally, newly created Floodlight tags contain placeholders that web developers replace with the required values at the time when the tag is called. Take this sample fragment:

...
document.write('<iframe
src="http://XXXXXXX.fls.doubleclick.net/activityi;src=XXXXXXXX;type=;cat=;u1=[item];qty=[quantity];cost=[price];u5=[seller];ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
...

The elements in bold (item, quantity, price, and seller) would have to be replaced by the actual values you are intending to pass to the Floodlight tag. Typically you can replace them using your Content Management System or have your development team code them in.

To configure Google Tag Manager to use variables to insert values when tags are called, follow the steps below. These steps assume your Campaign Manager 360 account is already connected to your relevant Google Tag Manager account and that you are able to send tags to Google Tag Manager and approve them. You can follow your typical testing and publishing process after making changes in Google Tag Manager.

Implementation

There are several different ways to implement dataLayer that depend on which of the following situations is true for you.

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
2024 Privacy Readiness guide

Prepare for a world without third-party cookies and unlock the AI
opportunity by adopting a durable measurement setup.
Start Today

9287486190064541116
true
Search
Clear search
Close search
Main menu
Search Help Center
true
true
true
true
true
69192
false
false
false
false