|
| 1 | +--- |
| 2 | +title: 'Bucket Web (Actions) Destination' |
| 3 | +hidden: true |
| 4 | +id: 656dc9330d1863a8870bacd1 |
| 5 | +beta: true |
| 6 | +versions: |
| 7 | + - name: "Bucket (Classic)" |
| 8 | + link: '/docs/connections/destinations/catalog/bucket' |
| 9 | +--- |
| 10 | + |
| 11 | +{% include content/plan-grid.md name="actions" %} |
| 12 | + |
| 13 | +[Bucket](https://bucket.co/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="blank"} is a feature-focused analytics software that empowers software teams with a repeatable approach to shipping features that satisfy customers. |
| 14 | + |
| 15 | +Bucket maintains this destination. For any issues with the destination, [contact the Bucket Support team ](mailto:[email protected]). |
| 16 | + |
| 17 | + |
| 18 | +> warning "" |
| 19 | +> If you are using both the Bucket Web (Actions) destination and the server side [Bucket destination](/docs/connections/destinations/catalog/bucket/) on the same source, avoid duplicate event tracking by disabling the "Track Event" mapping in Bucket Web (Actions). |
| 20 | +
|
| 21 | + |
| 22 | +## Benefits of Bucket Web (Actions) compared to Bucket Classic |
| 23 | + |
| 24 | +Bucket Web (Actions) provides the following benefits over the classic Bucket destination: |
| 25 | + |
| 26 | +- Clearer mapping of data. Actions-based destinations let you define the mapping between the data Segment receives from your source and the data Segment sends to the destination. |
| 27 | +- Automatically enables [Live Satisfaction](https://bucket.co/live-satisfaction){:target="_blank"} prompts in your app, giving you fully-automated customer satisfaction scores and feedback on your features. |
| 28 | + |
| 29 | + |
| 30 | +## Getting started |
| 31 | + |
| 32 | +1. From the Destinations catalog page in the Segment App, click **Add Destination**. |
| 33 | +2. Search for "Bucket Web" in the Destinations Catalog, and select the Bucket Web (Actions) destination. |
| 34 | +3. Select a source to send data to the Bucket destination. |
| 35 | +4. Go to [Bucket's Settings](https://app.bucket.co){:target="blank"} and find and copy the Tracking Key on the Tracking page. |
| 36 | +5. Enter the Tracking Key as Tracking Key in the "Bucket Web (Actions)" destination settings in Segment. |
| 37 | + |
| 38 | +{% include components/actions-fields.html %} |
| 39 | + |
| 40 | +## Content security policies (CSP) |
| 41 | + |
| 42 | +If you are running with strict Content Security Policies active on your website, you must enable these directives in order to use this destination: |
| 43 | + |
| 44 | +| Directive | Values | Module | Reason | |
| 45 | +| --------------- | ------------------------------- | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | |
| 46 | +| script-src-elem | https://cdn.jsdelivr.net | bootstrap | Loads the Bucket tracking SDK from a CDN | |
| 47 | +| connect-src | https://tracking.bucket.co | tracking | Used for all tracking methods: `analytics.identify()`, `analytics.group()` and `analytics.track()` | |
| 48 | +| connect-src | https://livemessaging.bucket.co | live satisfaction | Server sent events from the Bucket Live Feedback service, which allows for automatically collecting feedback when a user used a feature. | |
| 49 | +| style-src | 'unsafe-inline' | feedback UI | The feedback UI is styled with inline styles. Not having this directive results unstyled HTML elements. | |
| 50 | + |
| 51 | +As HTTP-header: |
| 52 | + |
| 53 | +```http |
| 54 | +Content-Security-Policy: script-src-elem https://cdn.jsdelivr.net; connect-src https://livemessaging.bucket.co https://tracking.bucket.co; style-src 'unsafe-inline' |
| 55 | +``` |
| 56 | + |
| 57 | +As `<meta>`-tag: |
| 58 | + |
| 59 | +```html |
| 60 | +<meta http-equiv="Content-Security-Policy" content="script-src-elem https://cdn.jsdelivr.net; connect-src https://livemessaging.bucket.co https://tracking.bucket.co; style-src 'unsafe-inline'"> |
| 61 | +``` |
0 commit comments