4.3. Google Ads conversion code
Last updated
Last updated
Access Google Ads to create an account: https://ads.google.com
Access: Google Ads -> Tools and Settings -> Conversions -> New Generation
Choose the conversion you want eg: Website
Here for convenience and ease of management, we should use Google Tag Manager's tag manager Choose to use Google Tag Manager
Click finish
Go to Google Tag Manager: https://tagmanager.google.com
Link Google Ads and Google Tags, after linking, just attach the Google Tag Manager code to Webcake to be able to manage both Google Ads and Google Analytics
Conversion event link: Copy the Google Ads code and paste it in the Google Tag Manager tag generation
Add your GTM ID to landing page
To check if Google Analytics has recorded the events that you have installed above, you need to download the Google Tag Assistant application and install it on the Chrome browser.
After the application has displayed in the browser, you enable the landing page to be tested, and select Enable then F5 to reload the page.
Attach a Google Ads conversion directly to a button in Webcake:
Note:
This method is easy to use but can only set 1 specific tracking event for 1 element
Suitable for shops that use a Google advertising account to run their website
The value of the order will be based on the Facebook configuration value, so you should also enable Facebook tracking for that element
Note:
This method is more complicated, but once users have successfully installed it, it will be very convenient, especially suitable for Shops with many advertising accounts running for one website.
Default events are selected with key code:
Add To Cart: add_to_cart
Begin Checkout: begin_checkout
Add Payment Info: add_payment_info
Purchase: purchase
Variables used:
Order value: eventModel.value
Currency: eventModel.currency
Name: eventModel.full_name
Phone number: eventModel.phone_number
Address: eventModel.address
Use Tag Assistant at: https://tagassistant.google.com
You can set up tag yourself to track
Set up Tag -> Instal the tag Yourself
Copy code "Global site tag" and "event snippet"
Put on code on landing page: Setting -> HTML/Javascript -> Before "</head>" Tag