Google Ads Conversion Script

Adsbot Growth Team
Author
Google Ads Conversion Script

Conversion 

 

A conversion is a specific, desired action that a user takes in response to your advertising efforts, aligned with your business goals.

These actions could include:

  • A purchase
  • Signing up for a newsletter
  • Filling out a contact form
  • Clicking a specific button
  • Viewing a key page

One of the most crucial elements of an effective marketing strategy is understanding user behavior. Tracking conversions provides valuable, actionable insights that not only inform your efforts but also enhance budget management by revealing which strategies lead to desired outcomes.Tracking conversions helps you to make informed decisions.

 

By tracking conversions, you can:

  • Identify which ads, keywords, or campaigns are driving meaningful actions.
  • Recognize high-performing channels to allocate your budget more effectively.
  • Test and improve landing pages or calls to action.
  • Refine ad targeting and messaging.
  • Cut spending on underperforming campaigns.
  • Focus your budget on strategies that deliver the best ROI.

Tracking conversions forms the foundation of successful digital marketing. It ensures you know what’s working, where to improve, and how to grow. 

 

Unlock the Power of Data: Google Ads Conversion Scripts 

 

If tracking conversions is so important for your business, how can you do it easily? The magic tool that makes it simple is the Google Ads Conversion Script.

 

In simple terms, the Google Ads Conversion Script is a piece of JavaScript code generated by Google Ads that tracks conversions. It helps measure and optimize your campaigns by determining how effectively they drive valuable user actions.  It shows you which campaigns or keywords are driving sales, how much each conversion is costing you and where you should focus your budget for maximum ROI.

 

Why Do You Need Google Ads Conversion Script?

 

When you set up Google Ads Conversion Script, 

  • It enables you to understand the impact of your campaign and get a clear picture of your ads efforts by tracking actions like purchases, sign-ups, or form submissions.

 

  • It enables you to identify high-performing keywords.

 

  • It enables you to understand your audience’s behaviour by answering questions like “Which pages are they visiting before converting? What devices are they using? What time of day are they most active?” This information enables you to fine-tune your campaigns, adjust bidding strategies, and craft more relevant ad creatives.

 

  • It enables you to allocate budget more effectively. If you realize that there is a certain campaign or keyword with high value results, you can allocate more budget there or vice versa.

 

  • It enables you to maximize ROI by helping you make informed decisions about scaling or adjusting campaigns.

 

Key Components of a Google Ads Conversion Script

 

  1. Google Tag: This is the base code added to all pages of your website. It initializes tracking and enables Google Ads tags for conversion tracking and remarketing.
  2. Event Snippet: This is a secondary piece of code added to specific pages where conversions are tracked (e.g., the “Thank You” or confirmation page after a purchase). The event snippet is specific to a conversion action and tells Google Ads when a conversion occurs.

How to Set up Google Ads Conversion Script

 

Setting up Google Ads Conversion Script is easier than you think!

 

In a Nutshell, How Does it work?

 

Google Ads provides step-by-step instructions when you create a new conversion action. All you need to do is:

  1. Log in to Google Ads and go to Tools & Settings > Conversions.
  2. Create a new conversion action and define what you want to track (e.g., purchases or sign-ups).
  3. Google will generate the global site tag and event snippet for you.
  4. Add the code to your website, either manually or via tools like Google Tag Manager.

 

Google Ads Conversion Setup- in Detail

1. Set Up a Conversion Action in Google Ads

Before you can implement the conversion script, you need to define what action you want to track.

  1. Log in to your Google Ads account.
  2. Go to Tools & Settings (🔧 icon) in the top-right corner.
  3. Under the Measurement section, click Conversions.
  4. Click the + New Conversion Action button.
  5. Choose the type of conversion you want to track, such as:
    • Website (e.g., purchases, sign-ups)
    • App installs or in-app actions
    • Phone calls
    • Offline actions

For an example, let’s focus on Website Conversions.

Configuring Website Conversions

  1. Enter Conversion Details:
    • Category: Select a relevant category like “Purchase” or “Sign-Up.”
    • Conversion Name: Name the conversion (e.g., “Order Completed”).
    • Value: Assign a value to the conversion:
      • Use the same value for each conversion (e.g., $50).
      • Use different values for each conversion (e.g., dynamic cart values).
      • Don’t assign a value if it’s not applicable.
  2. Set the Count Option:
    • Every Conversion: Tracks every instance (useful for purchases).
    • One Conversion: Tracks only the first instance per user (useful for sign-ups).
  3. Conversion Window: Define how long after an ad click the conversion can be tracked (e.g., 30 days).
  4. View-Through Window: Set how long after a user views an ad, but doesn’t click it, the conversion can be tracked.
  5. Include in ‘Conversions’: Enable this if you want the conversion data to appear in your main reports.
  6. Save and Continue.

 

2. Add the Google Ads Conversion Script

 

After setting up the conversion action, Google Ads provides the necessary script. You have two main options for implementation: manual or via Google Tag Manager.

Option A: Manual Implementation

  1. Copy the Global Site Tag (gtag.js):
    • You’ll see a code snippet called the Global Site Tag.
    • Place this code inside the <head> tag of every page on your website.

Example:

<!– Global site tag (gtag.js) – Google Ads –>

<script async src=”https://www.googletagmanager.com/gtag/js?id=—–“></script> //you need to replance here with your own ID

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag(‘js’, new Date());

  gtag(‘config’, ‘AW-xxx’); // you need to replace here with your own ID

</script>

 

  1. Add the Event Snippet:
    • Copy the event snippet provided for the specific conversion action.
    • Paste it on the page where the conversion happens (e.g., a “Thank You” page).

Example:

<script>

  gtag(‘event’, ‘conversion’, {

      ‘send_to’: ‘AW-123456789/abc123’,

      ‘value’: 100.0,

      ‘currency’: ‘USD’

  });

</script>

  1. Save and Test the Implementation.

Option B: Using Google Tag Manager

  1. Set Up GTM:
    • If you haven’t already, install the GTM container code on your website. This replaces the need to manually add tags to your website.
  2. Create a New Tag:
    • Log in to GTM and click Add a New Tag.
    • Choose Tag Configuration > Google Ads Conversion Tracking.
  3. Enter Conversion Details:
    • Conversion ID: Found in your Google Ads account.
    • Conversion Label: Specific to the conversion action.
  4. Set Up a Trigger:
    • Define when the conversion tag should fire (e.g., when a user lands on the “Thank You” page).
    • Use URL matching or other event triggers as needed.
  5. Save and Publish:
    • Click Submit to publish the changes to your GTM container.

 

3. Test Your Implementation

 

Once the script is added, test to ensure it’s working correctly.

  • Use Google Tag Assistant (a Chrome extension) to check if the script fires properly. You can download it via : https://tagassistant.google.com/
  • Simulate the conversion action (e.g., complete a test purchase or form submission) and verify if the data appears in your Google Ads account.

 

4. Monitor Conversions in Google Ads

 

  1. Go to the Conversions section in Google Ads.
  2. Look for your conversion action and check the status:
    • No recent conversions: The tag is active, but no data yet.
    • Recording conversions: The tag is firing and tracking conversions.

By following these steps, you’ll successfully set up a Google Ads conversion script and unlock valuable insights to optimize your campaigns!

If you haven’t set it up yet, what are you waiting for? Start tracking, start optimizing, and start winning with data-driven decisions.


Register for our Free 14-day Trial now!

No credit card required, cancel anytime.