Google Ads Conversion Tracking Not Working via Adobe Launch Click Rule | Community
Skip to main content
Level 4
June 10, 2025
Solved

Google Ads Conversion Tracking Not Working via Adobe Launch Click Rule

  • June 10, 2025
  • 2 replies
  • 600 views

Hi All,

I’ve successfully implemented the Google Ads global site tag (gtag.js) on all relevant pages using Adobe Launch. I verified that gtag.js is loading correctly, and I can see console logs confirming it's working on page load.

Now, I’m trying to track a Google Ads conversion when a user clicks a specific button. I created a rule in Adobe Launch with the following setup:

  • Event: Core - Click - with the correct CSS selector

  • Action: Core - Custom Code (JavaScript)

Here’s the code I used in the action:

function gtag_report_conversion() {
var callback = function () {
if (typeof(url) != 'undefined') {
url = window.location;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-00000000000/XXXXXXXXXXX',
'value': 1.0,
'currency': 'EUR',
'event_callback': callback
});
}
gtag_report_conversion();

 

Problem:

  • The rule is firing (confirmed via Adobe Launch debugger)

  • But the console statements are not appearing

  • No conversion hits are seen in Omnibug or DevTools > Network

  • It seems like the custom code is not executing even though the rule is triggered

Can someone help identify what might be going wrong? Is there an issue with how the custom code is written or executed within the Launch rule?

Thanks in advance for your guidance!



Best answer by Jennifer_Dungan

Hi,

 

I use custom code to fire Google Conversion codes, so I know this isn't a limitation in Launch.

 

So, let's try and figure out what is failing in your implementation.

 

The code you are using looks strange though...

 

This is the code I use:

// Config gtag window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('config', 'AW-00000000000'); gtag('event', 'conversion', { 'send_to': 'AW-00000000000/XXXXXXXXXXX', 'transaction_id': '122345' });

 

 

You don't really need to wrap your code in a function, adding the code directly in custom code works just fine... but I think the main issue is that you are missing the account configuration line, and I don't see any "push" to the dataLayer.

 

So, you are passing value and currency, but not a transaction id.. so taking my code, and your needs, try using:

 

// Config gtag window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('config', 'AW-00000000000'); gtag('event', 'conversion', { 'send_to': 'AW-00000000000/XXXXXXXXXXX', 'value': 1.0, 'currency': 'EUR' });

(replace the account id and conversion label as per your needs)

2 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 10, 2025

Hi,

 

I use custom code to fire Google Conversion codes, so I know this isn't a limitation in Launch.

 

So, let's try and figure out what is failing in your implementation.

 

The code you are using looks strange though...

 

This is the code I use:

// Config gtag window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('config', 'AW-00000000000'); gtag('event', 'conversion', { 'send_to': 'AW-00000000000/XXXXXXXXXXX', 'transaction_id': '122345' });

 

 

You don't really need to wrap your code in a function, adding the code directly in custom code works just fine... but I think the main issue is that you are missing the account configuration line, and I don't see any "push" to the dataLayer.

 

So, you are passing value and currency, but not a transaction id.. so taking my code, and your needs, try using:

 

// Config gtag window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('config', 'AW-00000000000'); gtag('event', 'conversion', { 'send_to': 'AW-00000000000/XXXXXXXXXXX', 'value': 1.0, 'currency': 'EUR' });

(replace the account id and conversion label as per your needs)

LienTr
Level 1
January 29, 2026

Hi ​@priyankagupta20 , 

 

Have you solved this problem? I have the same problem as you when creating a conversion pixel for clicked calls in Google Ads. I would like to hear your solution. :) Thanks!

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 29, 2026

Hi ​@LienTr,

 

Did you try the solution that I posted (that was marked as correct)?

 

In Adobe Launch, once you set your trigger and conditions (if needed), the action just needs the check for dataLayer (if not there, it will create it), then to push the conversion to the dataLayer.

 

You don’t need a wrapping function or to call that function. Since the Adobe “Trigger > Action” already essentially puts all the Action code inside a function that is called when the trigger condition is met.