Skip to content

Commit

Permalink
📝 Add Google Ads conversion instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 7, 2023
1 parent a16367b commit 4614caf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,10 @@ export const GoogleAnalyticsSettings = ({
placeholder="G-123456..."
onChange={updateTrackingId}
/>
<TextInput
label="Event category:"
defaultValue={options?.category ?? ''}
placeholder="Example: Typebot"
onChange={updateCategory}
/>
<TextInput
label="Event action:"
defaultValue={options?.action ?? ''}
placeholder="Example: Submit email"
placeholder="Example: conversion"
onChange={updateAction}
/>
<Accordion allowToggle>
Expand All @@ -74,6 +68,12 @@ export const GoogleAnalyticsSettings = ({
</AccordionButton>
</h2>
<AccordionPanel pb={4} as={Stack} spacing="6">
<TextInput
label="Event category:"
defaultValue={options?.category ?? ''}
placeholder="Example: Typebot"
onChange={updateCategory}
/>
<TextInput
label="Event label:"
defaultValue={options?.label ?? ''}
Expand Down
8 changes: 8 additions & 0 deletions apps/docs/docs/editor/blocks/integrations/ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ The Google Analytics integration block allows you to track a Google Analytics ev
width="600"
alt="Google Analytics block"
/>

## Track conversions with Google Ads

To track conversions for your Google Ad, you can add a Google Analytics block whenever you'd like to trigger the conversion event with the following properties:

- Event action: conversion
- Send to: <YOUR_AW_ID>
- Value (optional): a number to quantify the conversion
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"cache": false
},
"api:generate": {
"dependsOn": ["@typebot.io/prisma#db:generate"],
"dependsOn": ["bot-engine#build", "@typebot.io/prisma#db:generate"],
"cache": false
},
"db:generate": {
Expand Down

2 comments on commit 4614caf

@vercel
Copy link

@vercel vercel bot commented on 4614caf Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs.typebot.io
docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4614caf Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.