If you manage your Floodlight activities in Display & Video 360, the Dynamic tag switch under Web tag settings is currently only used for YouTube tracking enablement. It's not possible to configure dynamic or publisher tags in Display & Video 360.
Implement iframe and image tags
- Insert the Floodlight tags between the
<body>
and</body>
tags, as close to the top of the webpage and the opening tag as possible. This will help ensure that the Floodlight request is sent to Campaign Manager 360 even if the user presses "Stop" or navigates away from the page. - To defeat caching and ensure accurate counts, you need to insert a numeric value for the
ord=
parameter. The value cannot contain semicolons or special characters. For standard Floodlight tags, use a random number. For unique user tags, use a constant value. For sales tags, use an order confirmation number. Unique user tags also require a random number as the value of thenum=
parameter. - Insert device IDs into
dc_rdid=
parameter to enable in-app conversion tracking. - Choose the "Secure Servers Only (https)" option if the Floodlight tag will be placed on a webpage hosted on a secure server. This option changes http:// to https:// in the Floodlight tag. If this change isn't made, Floodlight data will not be captured, and certain browsers will display a security warning.
Best practices
Place Floodlight tags near the top of the page
To ensure accurate counting, Google Marketing Platform recommends that Floodlight tags be placed as close to the top of the webpage as possible. That way, even if a user clicks the Stop button in the browser or navigates away from the webpage, the Floodlight impression is counted.
Keep in mind that Floodlight tags are often used to record information about actions that the user took on the previous page. For example, if a user is making a purchase, the Floodlight tag that records the value of the purchase will be placed on the confirmation page where the user is taken after the purchase. That's why it's important to ensure that the Floodlight tag is called as early as possible in the process of loading the page. Request times vary, but are usually completed within 300 milliseconds, so the call should have a minimal impact on latency.
Using multiple Floodlight tags on a single webpage
Each Floodlight tag is processed independently, so you can put more than one set of Floodlight tags on a webpage. Keep in mind, however, that a Floodlight impression will be recorded for each set of Floodlight tags whenever the page is loaded, potentially resulting in a higher cost for the advertiser. Consider your Floodlight strategy carefully before implementing multiple Floodlight tags on a single webpage.
Floodlight tags and frames
If you're placing Floodlight tags on a webpage that uses frames, put the tags in the HTML page with the main content. Do not put the Floodlight tags in the HTML page containing the <frameset>
tags.
Passing data to parameters in iframe and image tags
You'll need to dynamically pass data to parameters in your Floodlight tags. Your website must be technically capable of passing information into the tags. The format for these parameters is key=[value]
, where the value is passed dynamically into the tag when the webpage is loaded. What data you insert into the Floodlight tag, and how you collect that data, are up to your website administrator. You must not pass any data that Google Marketing Platform could use or recognize as personally-identifiable information.
Let's look at some example Floodlight tags to understand how they're put together. The following are all iframe tags.
More details about image tags
Image tags are most commonly used when:
-
The advertiser has security concerns or other issues with their website architecture that prevents the use of iframes.
-
You're adding Floodlight tags to an app or mobile site, since web browsers on some older devices may not handle iframes well.
Image tags do not support dynamic tags.
Image tag enablement
You can enable image tags for:
-
A single Floodlight activity, on the properties page for that activity.
-
All of an advertiser's activities, on the Floodlight > Configuration tab.
-
Your entire Campaign Manager 360 account, on the Advanced tab under Admin > Account.
If you update your Floodlight configuration or account to use only image tags:
-
You will not be able to edit the tag format for existing Floodlight activities.
-
Existing tags that have been implemented on your websites aren't changed automatically. To begin using image tags, you need to replace existing iframe tags with the new image tags created in Campaign Manager 360.
-
Dynamic tags don't stop delivering automatically. If you've previously set up dynamic tags and implemented standard Iframe Floodlight tags, the dynamic tags continue to deliver, even if you've switched the activity to using image tags within Campaign Manager 360. To stop delivery of dynamic tags, remove the existing iframe tags from the advertiser's webpage and replace them with the newly created image tags.
Parameters in image tags
Here's an example of an image tag, with the unique elements in bold; the example is a counter activity tag, but the same changes are made for a sales activity tag:
<img src="http://ad.doubleclick.net/activity/src=1234567;type=abcde123;cat=fghij456;u1=[friendlyname1];u2=[friendlyname2
];ord=[Random Number]?" width="1" height="1" alt=""/>
Here are the elements that are unique to image tags:
img src
: An HTML image tag. The src
parameter tells the browser where to find the requested image, which in this case is a 1x1 pixel transparent GIF.
ad.doubleclick.net
: The web address of the Campaign Manager 360 ad servers, which are used to deliver the image file.
activity
: Identifies the tag as a a Floodlight activity tag that uses an image tag format.
alt="":
Specifies that there is no alt text for the image.