Skip to main content

How to set up Google Ads conversion tracking

In this article we'll explain how to set up Google Ads conversion tracking with Double

Updated over a month ago

You can easily set up Google Ads conversion tracking using Google Tag Manager.

Step 1 - Enable the donation event from Double

Double automatically triggers a browser event when a donation is completed.

This event is called Double.donationCompleted, and it includes details such as the amount, currency, and transaction ID.

Add this script to your website (ideally right below your Double embed):

​<script>
document.addEventListener("Double.donationCompleted", (e) => {
const d = e.detail.donation;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "donationCompleted",
value: d.amount,
currency: d.currency,
transaction_id: d.id,
});
});
</script>​

Already added this for Google Analytics?

You don’t need to add it again! The same event works for both Google Ads and Google Analytics - you’ll just add a new tag in GTM that listens to the same donationCompleted event.

Step 2 - Configure Google Tag Manager

  1. Create a Trigger

    1. Type: Custom Event

    2. Event name: donationCompleted

  2. Create a Tag

    1. Tag type: Google Ads Conversion Tracking

    2. Conversion ID / Conversion Label: Your AW-XXXXXX/label values

    3. Conversion Value: Select Variable → Data Layer Variable (name: value)

    4. Currency Code: Select Variable → Data Layer Variable (name: currency)

    5. Transaction ID: Select Variable → Data Layer Variable (name: transaction_id)

    6. Triggering: Your donationCompleted trigger

  3. Publish your GTM container.

​Google Ads will flip the tag status to active after the first live donation.

Did this answer your question?