Use the global site tag for Floodlight conversion tracking
Create a global site tag for both Floodlight and Google Ads conversion tracking
If you use both Floodlight and Google Ads conversion tracking, you only need one global site tag on every page of your site. The global snippet in this tag needs to include
'config' commands that identify both your Floodlight configuration and the Google Ads conversion ID for each Google Ads account you're tracking.
Each Floodlight activity and Google Ads website action will have its own event snippet, and you install each event snippet only on the page that contains the event you're tracking.
Here's an overview of the steps for creating a global site tag for both Floodlight and Google Ads conversion tracking:
- Copy the global snippets and event snippets from Search Ads 360 and Google Ads.
- Combine the global snippets into a single global snippet.
- Install the global snippet and event snippets on your site.
If you're already using Floodlight iframe or image tags on your site, you'll need to remove the iframe or image tags.
- In Search Ads 360, do the following:
- Sign into each Google Ads account that you're tracking and do the following:
- In the upper right corner, click the tool icon , and under "Measurement," click Conversions.
- In the Name column, click the name of a website conversion action.
- On the action's Details tab, expand Tag setup.
- Download the global snippet and event snippet.
- Copy the
'config'command from each Google Ads global snippet you copied or downloaded.
For example, copy this line:
- Open the file with the global snippet from Search Ads 360 and paste the Google Ads
'config'command right after the Search Ads 360
Here's an example of a combined global snippet that contains a
'config' command from Search Ads 360 and two
'config' commands from two Google Ads accounts:
Start of global snippet: Please do not remove
Place this snippet between the <head> and </head> tags on every page of your site.
<!-- Global site tag (gtag.js) - DoubleClick -->
<script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script>
window.dataLayer = window.dataLayer || ;
gtag('js', new Date());
<!-- End of global snippet: Please do not remove -->
Note that the
<script async> tag only needs one ID in the
src attribute. Don't update the
src attribute with IDs from the config commands you copied.
Install the combined global snippet on every page of your site, within the
Additionally, install each event snippet after the global snippet and within the
<head> section of the page that the event is tracking.
If you're already using Floodlight iframe or image tags on your site, you'll need to remove the iframe or image tags. See the migration guide for details.