{"id":26553,"date":"2021-05-06T12:35:46","date_gmt":"2021-05-06T09:35:46","guid":{"rendered":"https:\/\/www.reliablesoft.net\/?p=26553"},"modified":"2021-12-12T17:18:31","modified_gmt":"2021-12-12T15:18:31","slug":"google-ads-conversion-tracking","status":"publish","type":"post","link":"https:\/\/www.reliablesoft.net\/google-ads-conversion-tracking\/","title":{"rendered":"Google Ads Conversion Tracking Guide (Updated)"},"content":{"rendered":"
To evaluate the performance of your Google Ads campaigns, you need to enable conversion tracking.<\/p>\n
With conversion tracking, you\u2019ll be able to track, measure and analyze the actions performed by users after they click on your Ads.<\/p>\n
In this guide, you\u2019ll learn how to create conversions in Google Ads, how to add the google ads conversion code on your website, and how to view conversion-related data in Google Ads.<\/p>\n
Let\u2019s get started with some basic definitions.<\/p>\n
A conversion is an important action that users perform on your website. It can be something critical such as a purchase, call, or newsletter signup or a step that users take before converting such as an add to cart and begin checkout.<\/p>\n
There is no limitation as to what you can consider as a conversion.<\/p>\n
Each website has different goals and conversion can be anything from visiting a key page on your site, submitting a contact form, or viewing a video.<\/p>\n
What is important when optimizing your Google Ads campaigns is to optimize them based on conversions with a monetary value.<\/p>\n
When the conversion has a value, you\u2019ll be able to calculate important metrics like CPA (how much it costs you to get a conversion through ads) and evaluate the profitability of your campaigns.<\/p>\n
Google Ads conversion tracking is the way to measure conversions performed by users after they interacted with one of your ads.<\/p>\n In other words, when you enable conversion tracking for your Google Ads, you\u2019ll be able to see how many conversions were generated because of your Google Ad campaigns.<\/p>\n To enable Google Ads conversion tracking, you first need to create the conversions in Google Ads and add the tracking code on your website.<\/p>\n Let\u2019s get started with the first step: creating conversions in Google Ads.<\/p>\n Login to your Google Ads account, click the Tools & Setting<\/em> option from the top menu and then select Conversions<\/em>.<\/p>\n Select the kind of conversions you want to track by choosing one of the available options.<\/p>\n Website Conversions<\/strong><\/p>\n Select this option if you want to track actions on your website like:<\/p>\n App Conversions<\/strong><\/p>\n Select this option to track actions on your app like:<\/p>\n Phone Calls<\/strong><\/p>\n Select this option to track calls to your business initiated from:<\/p>\n For the purpose of this guide, we want to track website conversions, so select the first option (Website) and continue to the next step.<\/p>\n Category: <\/strong>Select a relevant category from the list. Don\u2019t worry if you choose the \u2018wrong category\u2019, this is just for organization and reporting purposes.<\/p>\n Conversion Name:<\/strong> Provide a meaningful name for your conversion. For example, \u2018Digital Bundle Sale\u2019, \u2018Newsletter signup\u2019.<\/p>\n Next, you need to select how you want to deal with conversion value.<\/p>\n Value: <\/strong>This refers to the monetary value of a conversion. In other words, the value for your business if the particular conversion is generated from your Google Ads.<\/p>\n Some tips to help you configure this correctly:<\/p>\n If you\u2019re creating a conversion to track how many people signup for your newsletter then use the first option \u201cUse the same value for each conversion\u201d.<\/p>\n If you\u2019re creating a conversion to track sales then use the second option \u201cUse a different value for each conversion\u2019. We\u2019ll see below how to adjust your tracking code to \u2018pass\u2019 the sale value to Google Ads.<\/p>\n Count: <\/strong>This represents how many conversions to track per click. Leave it to \u2018Every\u2019 and proceed with the next setting.<\/p>\n Click-through conversion window:<\/strong> This value represents the number of days you want a conversion to count from the first <\/em>time someone interacts with your ads.<\/p>\n For example, if you set this to \u201830 Days\u2019 it means that if a user clicks on your ad and converts within 30 days, you\u2019ll see it in your reports as a conversion. If the conversion happens after 30 days, it won\u2019t be recorded in Google Ads.<\/p>\n The value to set here depends on how many days on average it takes for a customer to convert. Setting this to \u201830 Days\u2019 works for most cases but you can adjust it according to your business goals.<\/p>\n View-through conversion window:<\/strong> The number of days you want a conversion to count from the first time someone sees your ad, but without<\/em> interacting with it.<\/p>\n For example, you may have a search campaign enabled targeting specific keywords. Someone searching Google for related terms sees your ad, and later visits your website and convert (without clicking on your ad).<\/p>\n The problem with \u2018view-through conversions\u2019 is that you don\u2019t know for sure if the conversion happened because of your ad or any other factors. So, set this value to the minimum which is 1 day.<\/p>\n Include in \u2018Conversions\u2019: <\/strong>Set this to \u2018Yes\u2019 if you want the particular conversion to be included in your reports.<\/p>\n If you set this to \u2018No\u2019, conversions will still be recorded but they will show in the \u2018All Conv. Column\u2019 in the reports.<\/p>\n Attribution model:<\/strong> Set this to \u2018Last click\u2019. This basically determines how much credit each click gets for your conversions. You can learn more about the Google Ads Attribution model here<\/strong><\/a>.<\/p>\n To start tracking conversions, you need to add the conversion tracking code to your website.<\/p>\n The conversion tracking code (also referred to as a converting tag or PPC tracking code), is a piece of code that establishes the connection between your website and Google Ads.<\/p>\n This is how Google Ads knows what happens after someone clicks an ad and visits your website.<\/p>\n When you click the Tag Setup <\/em>toggle, you are presented with three options.<\/p>\n The first option is instructions to install the tag yourself, the second option is to email the instructions to a developer, and the third option is instructions on how to add the code using Google Tag Manager.<\/p>\n Click Install the tag yourself<\/em> and proceed to the next step.<\/p>\n Assuming that you already have Google Analytics code installed on your website, select the second option (as shown below) and proceed to the next step.<\/p>\n If you don\u2019t already have Google Analytics installed select the first option and follow the provided instructions.<\/p>\n Locate the Google analytics code added already on your website. This is usually in the HEAD section. It should look something like this:<\/p>\n Copy the gtag<\/strong> given by Google Ads and paste it before the end of the closing <\/script> tag. Your code should now look like this:<\/p>\n You\u2019ve just added the Google Ads code to all pages on your website that Google Analytics is installed.<\/p>\n Google Ads can now track views of a particular page but that\u2019s not the end of the story.<\/p>\n The next step is to add a piece of code to the page users visit after completing a conversion, this is usually referred to as a \u2018Thank you\u2019 page.<\/p>\n For example, if you want to track newsletter sign-ups, you should configure your website to redirect users to a dedicated \u2018Thank You\u2019 page after the sign-up process is completed.<\/p>\n To do this, you need to get the code provided by Google Ads and add it to the <head><\/head> of the page.<\/p>\n If you sell products that have a different value, you need to do some adjustments to the code so that the purchase value is passed on to Google Ads.<\/p>\n Let\u2019s see how to do this for the most popular platforms.<\/p>\n If you\u2019re on WordPress and have already performed Step 1 above (adding Google Ads tag to your Google Analytics), the next step is to add the tracking code to the \u2018Thank You\u2019 page.<\/p>\n There are two ways to do this:<\/p>\n The first way is to add it via custom code with the help of a developer<\/strong><\/a> and the second way manually with the help of a plugin.<\/p>\n We will go through the steps of the manual method.<\/p>\n 1) Install and activate the AddFunc Head & Footer Code<\/strong><\/a> plugin.<\/p>\n This plugin will add a new section on all your posts and pages allowing you to add custom code to the head, body, or footer.<\/p>\n 2) Edit the page users visit after they convert and copy the tracking code provided by Google Ads in the Head <\/em>section, as shown below.<\/p>\n 3) Update the page to save your changes.<\/p>\n Now every time a user visits the particular page after interacting with one of your ads, the conversion will be recorded and shown in your Google Ads reports.<\/p>\n In this section, you\u2019ll learn how to add the Google Ads tracking code to a Woocommere shop.<\/p>\n If you have an eCommerce store selling products with a different<\/em> value, you need to perform some minor adjustments to the conversion tracking code to pass the purchase value to Google Ads.<\/p>\n By default when a transaction is completed successfully (after checkout), users are redirected to the Woocommerce \u2018Order Received\u2019 page.<\/p>\n Adding the code requires making changes to your functions.php file. If this task is too technical for you, it\u2019s better to get the help of the developer.<\/p>\n Basically, all you have to do is to edit your functions.php and add the following code. This code gets executed when an order is finalized. It gets the value of the order and sends this to Google Ads.<\/p>\n NOTE:<\/strong> You should replace \u2018AW-XXXXXXXX\/d_qrCN6n1NoBENj-guAD\u2019 with the tracking code provided by Google Ads.<\/p>\n Related Resources<\/strong><\/p>\n There are two ways to test that your conversion tracking code was added correctly.<\/p>\n The first way is to check the Conversion report in Google Ads and the second way to use the Google Tag Assistant tool.<\/p>\n How to Check Conversion Status in Google Ads <\/strong><\/p>\nHow to Create Conversions in Google Ads<\/h2>\n
\n
\n
\n
How to Add Google Ads Conversion Tracking Code to Your Website<\/h2>\n
How to Add Conversion Tracking Code to WordPress<\/h3>\n
How to Add Conversion Tracking Code to Woocommerce<\/h3>\n
\r\nadd_action( 'woocommerce_thankyou', 'Google_ads_tracking' );\r\n<\/code><\/pre>\n
\r\nfunction Google_ads_tracking($order_id) {\r\n$order = new WC_Order( $order_id );\r\n$totalValue = $order->get_total();\r\n?>\r\n<?php\r\nif ( empty( $totalValue ) ) {\r\n$totalValue = 0;\r\n} else {\r\n$totalValue = preg_replace( '\/([^0-9\\\\.])\/i', '', $totalValue );\r\n}\r\n$totalValue = number_format( $totalValue,2, '.', '' );\r\n?>\r\n<!-- Event snippet for Purchase conversion page -->\r\n<script>\r\ngtag('event', 'conversion', {\r\n'send_to': 'AW-XXXXXXXX\/d_qrCN6n1NoBENj-guAD',\r\n'value': '<?php echo esc_html( $totalValue ); ?>',\r\n'currency': 'USD',\r\n'transaction_id': '<?php echo esc_html( $order_id ); ?>'\r\n});\r\n<\/script>\r\n<?php\r\n}\r\n<\/code><\/pre>\n
\n
How to Test Google Ads Conversion Tracking<\/h2>\n
\n