magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

Google Ads not detecting Google GTag AdWords conversion tag #37736

Open zigojacko opened 1 year ago

zigojacko commented 1 year ago

Preconditions and environment

Magento 2.4.5-p1

Steps to reproduce

Configured GA4 Google GTag and disabled the original Google Analytics and Google AdWords tracking for UA.

Expected result

Didn't expect the purchase conversion in Google Ads to fail to detect the conversion tracking.

Actual result

Tag inactive in Google Ads conversions since the date of enabling the GA4 Google GTag and removing the previous tracking.

Additional information

Both the GA4 and AdWords conversion tracking exists in the page source.

Are we meant to leave the previous tracking for the old UA in place and active in addition on the site?

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @zigojacko. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Delta, here is your Magento Instance: https://9c8a4d3eb02430e6258d9e80e11d55cf.instances-prod.magento-community.engineering Admin access: https://9c8a4d3eb02430e6258d9e80e11d55cf.instances-prod.magento-community.engineering/admin_4466 Login: ac644f7b Password: d4d2bc070fb1

engcom-Delta commented 1 year ago

Hi @zigojacko,

Can you please provide more information on this issue.

Thanks,

zigojacko commented 1 year ago

Hi @engcom-Delta,

With the default Magento Google Gtag GA4 and AdWords enabled and configured and the original two (Google Analytics and Google AdWords above disabled), in Google Ads, the purchase conversion tag is not detected and shows as 'Inactive'.

Sorry, I am unsure how else to add to this - that's literally the issue.

Thanks,

ricomonkeon commented 1 year ago

Out of interest, is your Google Ads tag ID of the format AW-1234567 or GT-1234567?
I'm having a similar problem, and my suspicion is that the former format is no longer supported, despite it being the format suggested by the Magento admin. AW- is considered a legacy prefix by Google.

dtfdigital commented 10 months ago

We were able to get Adwords conversion tracking working in 2.4.6 by using the "AW" conversion ID, and the conversion label value from the Sales- > Google API -> Google GTag -> Google AdWords section.

The only caveat is that it doesn't appear that the Magento code is setup to pass the order value, currency, transaction ID over within the google-adwords.js file:

`gtag( 'event', 'conversion', {'send_to': config.conversionId + '/'

Google expects the following in order to properly register the conversion value:

gtag('event', 'conversion', { 'send_to': 'CONVERSIONID/CONVERSIONLABEL', 'value': ORDERVALUE, 'currency': 'GBP', 'transaction_id': 'ORDERIDHERE' });

This seems like a step backwards from the older google ads conversion implementation??

m2-assistant[bot] commented 10 months ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


Georgexp97 commented 10 months ago

Google Ads campaigns can be really problematic. I am constantly trying to read and expand my knowledge on this post. Recently I read this sarcastic post about Google Ads.

m2-assistant[bot] commented 2 weeks ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down: