Because the technologies that Floodlight tags rely on (Javascript and iFrame) aren't compatible with Accelerated Mobile Pages, they must be modified prior to implementation on AMP. Learn more about AMP
The process to generate and change Floodlight image tags into amp-pixel tags will differ depending on if you want to track conversions through Campaign Manager 360 or Display & Video 360.
Floodlight on AMP for Display & Video 360
Generate a new Floodlight activity (image type) for your Display & Video 360 advertiser. Get the tag's code, remove anything before <img src=
then:
-
Change
<img src=
to<amp-pixel src=
. This changes the tag type from img to amp-pixel. -
Remove
width="1"
,height="1"
, andalt=" "
attributes. Replace them withlayout="nodisplay"
.-
This removes the width of 1, height of 1, and the alt text from the image pixel. These are replaced with an instruction to not (visually) display the AMP tag.
-
-
Change
num=[Random Number]?
tonum=RANDOM?
-
This updates the random number variable to work with the amp-pixel tag (which enables cache busting).
-
-
Close the tag with
></amp-pixel>
.-
This is different from the image tag which is closed with
/>
. Learn more about amp-pixel tags
-
amp-pixel tag example
<amp-pixel src="https://ad.doubleclick.net/ddm/activity/src=1234;type=test;cat=testf0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1;num=RANDOM?" layout="nodisplay"></amp-pixel>
Floodlight on AMP for Campaign Manager 360
Generate an image tag for your Floodlight activity. Use cache busting must be set to None under Advanced properties. Open the Floodlight tag preview, get the tag's code then:
-
Change
<img src=
to<amp-pixel src=
. This changes the tag type from img to amp-pixel. -
Remove
width="1"
,height="1"
, andalt=" "
attributes. Replace them withlayout="nodisplay"
.-
This removes the width of 1, height of 1, and the alt text from the image pixel. These are replaced with an instruction to not (visually) display the AMP tag.
-
-
Change
num=[Random Number]?
tonum=RANDOM?
-
This updates the random number variable to work with the amp-pixel tag (which enables cache busting).
-
-
Close the tag with
></amp-pixel>
.-
This is different from the image tag which is closed with
/>
. Learn more about amp-pixel tags
-
amp-pixel tag example
<amp-pixel src="https://ad.doubleclick.net/ddm/activity/src=1234;type=test;cat=testf0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1;num=RANDOM?" layout="nodisplay"></amp-pixel>