Skip to content

Commit 8b09086

Browse files
[ZARAZ] Small cleanup (cloudflare#3196)
* Reworded how to inject events api Created table to ilustrate trigger creation * Apply suggestions from code review Co-authored-by: Pedro Sousa <[email protected]> Co-authored-by: Pedro Sousa <[email protected]>
1 parent ecd99cd commit 8b09086

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

products/zaraz/src/content/events-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pcx-content-type: reference
55

66
# Events API
77

8-
Cloudflare Zaraz has an Events API that lets you customize Zaraz to your needs. Just add the Events API JavaScript code to your website to get started. If you want to use the API in your HTML code, place it inside the `<body>` element.
8+
Cloudflare Zaraz has an Events API that lets you customize Zaraz to your needs. To get started, add the Events API JavaScript code to the `<body>` element of your website.
99

1010
## Zaraz Track
1111

products/zaraz/src/content/get-started/create-trigger.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ To create a new, custom trigger:
2929

3030
The following is an example of a complete rule:
3131

32-
```txt
33-
{{ client.__zarazTrack }} Contains purchase
34-
```
32+
<TableWrap>
33+
34+
| Variable name | Match operation | Match string |
35+
| ------------- | --------------- | ------------ |
36+
| `{{ client.__zarazTrack }}` | _Contains_ | `purchase` |
37+
38+
</TableWrap>
3539

3640
1. Click **Save**.
3741

0 commit comments

Comments
 (0)