Add Google Ads Conversion Tracking to Joomla

Google Ads happily spends your budget and reports clicks, but clicks don't pay the bills. Without conversion tracking you can't tell which keyword produced the sale, Smart Bidding has nothing to optimise towards, and every campaign decision is a guess. Setting up Google Ads conversion tracking in Joomla means placing a tag on your site and firing an event on your thank-you page, and you don't need a dedicated plugin for that. Hopefully, you don't need an extra plugin. You can add Google Ads conversion tracking to your Joomla site using Tassos Code Snippets.

What is Google Ads conversion tracking

It is a pair of tags from Google. The Google tag identifies your site to Google Ads, and a conversion event tells Google that a visitor completed an action worth money, such as a purchase, a form submission, or a sign-up.

How to get the Google Ads conversion tag

You need a Google Ads account with at least one conversion action.

  1. Go to Google Ads and sign in.
  2. Click Goals → Conversions → Summary, then New conversion action.
  3. Choose Website, enter your domain, and set up the conversion action you want to measure.
  4. Choose Install the tag yourself.
  5. Copy two values: your Conversion ID (looks like AW-123456789) and the Conversion label (a short string shown in the event snippet).

How to Add Google Ads Conversion Tracking to Joomla

Snippet 1: the Google tag

  1. Install Tassos Code Snippets if it is not installed already.
  2. Go to Joomla Administrator.
  3. Open Components → Tassos Code Snippets.
  4. Click New.
  5. Give your snippet a descriptive title like "Google Ads Tag".
  6. Select HTML snippet type.
  7. Paste the following code, replacing AW-123456789 with your actual Conversion ID (it appears twice):
    <script async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'AW-123456789');
    </script>
  8. Select Site Header as the Insertion Method.
  9. Publish the snippet. Leave Conditional Logic empty so the tag loads site-wide.

Snippet 2: the conversion event

This one must fire only on the page a visitor sees after converting, usually your thank-you or order confirmation page.

  1. Click New again.
  2. Give this snippet a title like "Google Ads Conversion - Purchase".
  3. Select JS snippet type.
  4. Paste the following code, replacing the Conversion ID and label with your own:
    gtag('event', 'conversion', {
        'send_to': 'AW-123456789/AbCdEfGhIjKlMnOp',
        'value': 99.99,
        'currency': 'EUR',
        'transaction_id': ''
    });
  5. Select Site Footer as the Insertion Method so the event runs after the Google tag has loaded.
  6. Open the Conditional Logic tab and restrict the snippet to your thank-you page. This step is not optional, without it the conversion fires on every page and your reporting becomes worthless. Learn more in Using Conditional Logic.
  7. Publish the snippet.

Congrats! You've successfully added Google Ads conversion tracking to your Joomla site without installing another plugin.

If your thank-you page shows a real order total, output it into the value field instead of the fixed number, and pass the order number as transaction_id so Google can deduplicate repeated page loads.

Verify it Works

Install the Google Tag Assistant and browse through a test conversion on your site. Tag Assistant shows the Google tag loading on every page and the conversion event firing once on the thank-you page. In Google Ads, the conversion action status changes from Unverified to Recording conversions after the first real conversion, which can take a few hours. If the event never fires, confirm the Site Footer snippet is published and that its Conditional Logic actually matches your thank-you page URL.

For more information about snippet types and insertion methods, visit our documentation: https://www.tassos.gr/docs/tassos-code-snippets/

Last updated on Aug 14th 2026 15:08