Send PostHog conversion events to Google Ads

Last updated:

|Edit this page

Requirements

Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.

You'll also need access to the relevant Google Cloud, Google Ads and Google Ads Manager account.

Installation

  1. Apply for a Google Ads developer token using these steps.

  2. Enable the Google Ads API for your organization in your Google Cloud settings.

  3. In Google Ads, go to Goals settings, enable enhanced conversions, set the method to Google Ads API, and click Save.

Goal settings

  1. In PostHog, click the Data pipeline tab in the left sidebar.

  2. Click the Destinations tab.

  3. Search for Google Ads Conversions and select the destination.

  4. Connect your Google account at the configuration step.

  5. Add your developer token and customer ID.

Location of the Google Ads Customer ID

  1. Create a conversion action inside Google Ads
    1. Under Goals > Conversions > Summary, you'll need to create a conversion goal
    2. Click New conversion action
    3. Select Website
    4. Enter your domain and scan your website
    5. Click Add a conversion action manually, fill in the details about the category name, and enable enhanced conversions (if not already)
    6. Press Done and Save and continue
    7. Click See the event snippet. It should show something like gtag('event', 'conversion', {'send_to': 'AW-XXXXXXXXXXX/XXXXXXXXXXXXXXXXXX'}). You want the conversion action ID which is the send_to value before the forward slash like AW-XXXXXXXXXXX

Steps to create a conversion action inside Google Ads

  1. Back in PostHog, add the conversion action ID to the destination configuration.

  2. Set up your event and property filters to remove unnecessary events. You only want to send events that are conversions. Filter out unrelated events or ones missing data like gclid.

  3. Press Create & enable, test your destination, and then watch your conversions get sent to Google Ads.

Configuration

FAQ

Is the source code for this destination available?

PostHog is open-source and so are all the destination on the platform. The source code is available on GitHub.

Who maintains this?

This is maintained by PostHog. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Questions?

Was this page useful?

Next article

Send PostHog event data to Google Cloud Storage

You'll also need access to the relevant Google Cloud account. Installation In PostHog, click the " Data pipeline " tab in the left sidebar. Click the 'Destinations' tab. Search for 'Google Cloud Storage' and select the destination. Connect your Google Cloud account at the configuration step. Press 'Create & Enable' and watch your 'events' get populated in Google Cloud Storage! Configuration FAQ Is the source code for this destination available? PostHog is open-source and so are all the…

Read next article