Skip to content

Commit

Permalink
📝 Add UTM params forwarding video tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Nov 3, 2023
1 parent 0203d92 commit 57e4540
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
4 changes: 4 additions & 0 deletions apps/docs/docs/editor/blocks/bubbles/audio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ The Audio bubble block allows you to play a recorded audio to your user. You can

## Troobleshooting

### The first audio bubble is not autoplaying

That is expected. Most web browser have a policy that prevents audio from playing automatically. The user needs to interact with the page before the audio can be played.

### The audio is not playing on iOS / Safari

It most likely means that your audio file is malformed. Depending on where the file comes from, you need to make sure the encoding is done correctly. To check if the file is correctly encoded you should be able to download it and play the file locally on your computer.
37 changes: 24 additions & 13 deletions apps/docs/docs/guides/utm-in-results.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# Forward UTM parameters to a typebot

The UTM parameter name should be listed in the Variables dropdown of your flow you can create it on any variable dropdown:

<video controls>
<source src="/video/utm-declaration.mp4"/>
</video>

Then, if your typebot is launched with the declared UTM parameter. It should appear in the Results tab:

<video controls>
<source src="/video/utm-in-results.mp4"/>
</video>

## Forward UTMs to a redirect link
The UTM parameter name should be listed in the Variables dropdown of your flow you can create it on any variable dropdown. Then, if your typebot is launched with the declared UTM parameter. It should appear in the Results tab.

Once you have saved the UTM values into variables like `utm_source` and `utm_value`. You can build a redirect URL in a [Redirect block](../editor/blocks/logic/redirect.md) with the same UTMs like this:

```
https://redirect-site.com?utm_source={{utm_source}}&utm_value={{utm_value}}
```

<div
style={{
position: "relative",
paddingBottom: "64.5933014354067%",
height: 0
}}
>
<iframe
src="https://www.loom.com/embed/9b6cb65aff0a485e9e021b42310b207c?sid=2c61af7c-6aef-443e-b63e-941a079f2031"
frameBorder={0}
webkitallowfullscreen=""
mozallowfullscreen=""
allowFullScreen=""
style={{
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%"
}}
/>
</div>
Binary file removed apps/docs/static/video/utm-declaration.mp4
Binary file not shown.
Binary file removed apps/docs/static/video/utm-in-results.mp4
Binary file not shown.

1 comment on commit 57e4540

@vercel
Copy link

@vercel vercel bot commented on 57e4540 Nov 3, 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

Please sign in to comment.