Using Google Ad

In addition to adding the correct AW code in the config file, the correct code will need to be entered at various places on the website to capture certain conversions. More information regarding conversions and code used to capture them can be found here and here .

Example of Google Ad code

Google Example

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

Example from a dc site (Load Function of a quote Form):

<Function Name="Load" Params="e"><![CDATA[ var page = this; gtag('event', 'conversion', {'send_to': 'AW-XXXXXXXXXX/XXXXXXXXXXXXXXXXXXXX'}); ]]></Function>

Steps to Complete Google Ad tracking

  1. Make sure the Google AW code is present in the correct Catalog tags (see the main config file document for more information).
  2. Identify which pages, forms, buttons, etc should be tracked via a conversion.
  3. Make a conversion in the Google Ad site and note its specific conversion id.
  4. Add the code as outlined above in the correct spot. For example, if the conversion is tracking a page or form opening, put it in the Load Function. If it's based off of a button click, put it in the matching function that's called on the button click, etc.