4.3. Google Ads conversion code

1. Create Google Ads conversions

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

3. Add GTM code to landing page

Add your GTM ID to landing page

4. Check Google Tag activity

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.

5. Tracking event

5.1 Method 1: Set the specific tracking event directly to the button or form in Webcake

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

5.2. Method 2: Use Google Tag Manager's "Custom Event" Triggers

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.

B1. Choose an existing event for the element or customize it

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

B2. Create custom Triggers on Google Tags Manager

B3. Create a variable to record data (Order value, currency, etc.)

Variables used:

  • Order value: eventModel.value

  • Currency: eventModel.currency

  • Name: eventModel.full_name

  • Phone number: eventModel.phone_number

  • Address: eventModel.address

B4. Create Tags linking Triggers just created with Google Ads tracking events

B5. Publish Google Tag Manager

6. Check Google Tag activity

Use Tag Assistant at: https://tagassistant.google.com

7. Set up Tag yourself (Not recommend)

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

Last updated