Sending conversions from Joonbot to Google Ads is easy.
For that, you can use Google functions in our Javascript blocks.
You have two ways to send events to Google Ads. You can use:
- Google Ads functions
- Google Tag Manager Data Layer
Send conversions directly to Google Ads
To set up conversion tracking for your conversion, you must have the global site tag and a JS function in a JS block linked to your chatbot.
1. Create a conversion in your Google Ads account
2. Choose "Install the tag yourself" and paste the Global site tag into your website.
3. Copy the AW-CONVERSION_ID
4. Add a Javascript block to your chatbot conversational path.
5. Insert in your JS block the following code with your own properties (meaning your AW-CONVERSION_ID).
window.gtag('event', 'conversion', {'send_to': 'AW-CONVERSION_ID'})
You are done!
Send conversions to Google Ads using GTM
1. Check that you have Google Tag Manager installed on your website.
2. Add a Javascript block to your chatbot conversational path.
3. Insert in your JS block the following code with your own properties.
window.dataLayer.push({
'event' : 'pageview',
'loginStatus' : 'logged in',
'pageType' : 'product details page'
})
In the example below, we wanted to send an event every time someone book a meeting using our home page chatbot. So we wrote this code:
window.dataLayer.push({
'event' : 'home_bot_meeting_booked',
})
4. Create a conversion in your Google Ads account
5. Choose "Use Google Tag Manager" and copy the Conversion ID and Conversion label somewhere.
6. Create a 'Custom Event' trigger in GTM.
7. Create a 'Google Ads Conversion Tracking' tag in GTM that is triggered by the custom event you just created.
Paste the conversion ID and Conversion Label here.
You are done!
Comments
0 comments
Please sign in to leave a comment.