Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Ads #269

Closed
diego-lipinski-de-castro opened this issue Sep 16, 2024 · 3 comments
Closed

Google Ads #269

diego-lipinski-de-castro opened this issue Sep 16, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@diego-lipinski-de-castro

🆒 Your use case

I use Google Ads to track conversions

🆕 The solution you'd like

Something similar to Facebook Pixel or Google Tag Manager

🔍 Alternatives you've considered

No response

ℹ️ Additional info

Site: ads.google.com

@diego-lipinski-de-castro diego-lipinski-de-castro added the enhancement New feature or request label Sep 16, 2024
@harlan-zw
Copy link
Collaborator

Can you link docs for the tracker?

@diego-lipinski-de-castro
Copy link
Author

diego-lipinski-de-castro commented Sep 17, 2024

Hello, maybe it will not be necessary to add a different lib, because it seems to be the case that google is saying to just use the tag manager to track events from AdWords, I will link a few pages just in case.

GoogleAds 1
GoogleAds 2
GoogleAds 3
GoogleAds 4
Stackoverflow about google ads

It seems they are saying to use something like

gtag('event',  'conversion',  {
    'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',
    'value': 1.0,
    'currency': 'USD'
});

Instead of

<!-- Put this script in your <head> -->
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion_async.js" charset="utf-8"></script>

<!-- the rest of your web page as usual etc -->

<!-- Call this function when the form submits -->
<script type="text/javascript">
/* <![CDATA[ */
window.google_trackConversion({
    google_conversion_id: 123456789, 
    google_conversion_label: abcdefghijkl,  // if provided, remove this line if not provided
    google_conversion_value: 0,  // or the dollar value of this conversion, e.g. 100 etc.
    google_remarketing_only: false
});
//]]>

But, to be honest, I am still confused if they are the same thing

@diego-lipinski-de-castro
Copy link
Author

Closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants