VOOZH about

URL: https://support.google.com/campaignmanager/answer/2823413

⇱ JavaScript Floodlight tags - Campaign Manager 360 Help


Skip to main content

JavaScript Floodlight tags

The default format for dynamic Floodlight tags is Iframe. Iframe tags enable users to assign third-party tags to the default or publisher sections of the Floodlight tag. However, there may be times when a site is unable to implement an Iframe tag, and in that case a JavaScript version of the tag can be supplied instead.

Note, however, that third-party pixels won’t work in their standard format in a JavaScript Floodlight tag. You’ll need to convert them into a format that will be read as part of a complete JavaScript tag.

For example, the following third-party pixel tag:
<img src="http://www.test.com/ads/?t=ap&px=123456&rnd=%n" width="1" height="1" border="0"/>

Would be edited as follows:
document.write("<img src='http://www.test.com/ads/?t=ap&px=123456&rnd=%n' width='1' height='1' border='0'/>");

Another example:
<img height="1" width="1" src="http://www.test.com/action/This_is_a_Test"/>

Becomes this:
document.write("<img height='1' width='1' src='http://www.test.com/action/action/This_is_a_Test'/>");

As shown in these examples, you must include document.write, enclose the image tag within double quotes, and change all pre-existing double quotes in the tag to single quotes.

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

Search
Clear search
Close search
Google apps
Main menu
12064233102966922454
true
Search Help Center
false
true
true
true
true
true
69192
true
false
false
false
false