Skip to content

Commit bce2d41

Browse files
author
markzegarelli
authored
Merge pull request #1937 from segmentio/perkville_docs
New Destination Partner - Perkville docs
2 parents 39a410e + dfd0827 commit bce2d41

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed

src/_data/catalog/destinations.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17285,6 +17285,92 @@ items:
1728517285
characters long, and look something like this: `43c4b9f66d5f88435700003c`.
1728617286
required: true
1728717287
label: Advertiser ID
17288+
- display_name: Perkville
17289+
name: Perkville
17290+
slug: perkville
17291+
hidden: false
17292+
url: connections/destinations/catalog/perkville
17293+
previous_names:
17294+
- Perkville
17295+
website: https://www.perkville.com/
17296+
status: PUBLIC_BETA
17297+
categories:
17298+
- Referrals
17299+
logo:
17300+
url: >-
17301+
https://public-segment-devcenter-production.s3.amazonaws.com/493a250b-60e1-4c61-8619-25059cfedc9e.svg
17302+
mark:
17303+
url: >-
17304+
https://public-segment-devcenter-production.s3.amazonaws.com/58ca6823-e03a-4f91-92cc-dc289f1eaccb.svg
17305+
methods:
17306+
track: true
17307+
identify: false
17308+
group: false
17309+
alias: false
17310+
page: false
17311+
platforms:
17312+
browser: true
17313+
mobile: true
17314+
server: true
17315+
components: []
17316+
browserUnbundlingSupported: false
17317+
browserUnbundlingPublic: false
17318+
replay: false
17319+
connection_modes:
17320+
device:
17321+
web: false
17322+
mobile: false
17323+
server: false
17324+
cloud:
17325+
web: false
17326+
mobile: false
17327+
server: false
17328+
summary: No connection mode information available.
17329+
cmode_type: none
17330+
case: '0'
17331+
settings:
17332+
- name: apiKey
17333+
type: string
17334+
defaultValue: ''
17335+
description: >-
17336+
Generate the token in Settings > Apps. Click "show token" under the
17337+
Segment app, then copy it and paste the value here.
17338+
required: true
17339+
label: API Key
17340+
- name: businessId
17341+
type: string
17342+
defaultValue: ''
17343+
description: >-
17344+
Your Perkville business ID. Reach out to [email protected] for this
17345+
information.
17346+
required: true
17347+
label: Business ID
17348+
- name: eventToPerkMap
17349+
type: text-map
17350+
defaultValue: {}
17351+
description: >-
17352+
Map your event names to the perk you would like to award points for. For
17353+
instance, "Checked In" > 123456. This will award all "Checked In" events
17354+
with perk 123456.
17355+
required: true
17356+
label: Event to Perk Map
17357+
- name: locationId
17358+
type: string
17359+
defaultValue: ''
17360+
description: >-
17361+
Your Perkville Location ID. Reach out to [email protected] for this
17362+
information.
17363+
required: true
17364+
label: Location ID
17365+
- name: sendEmail
17366+
type: boolean
17367+
defaultValue: false
17368+
description: >-
17369+
If we post a transaction, send a transactional email to the email address
17370+
provided in the event. Set to False if you want to suppress emails for
17371+
this flow.
17372+
required: true
17373+
label: Send email
1728817374
- display_name: PersistIQ
1728917375
name: PersistIQ
1729017376
slug: persistiq
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Perkville Destination
3+
rewrite: true
4+
---
5+
6+
[Perkville](https://www.perkville.com/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) is a customer reward and referral platform - similar to airline mile programs - that integrates with e-commerce, point of sale, membership and scheduling systems to provide a seamless experience that drives referrals and loyalty.
7+
8+
This destination is maintained by Perkville. For any issues with the destination, [contact the Perkville Support team](mailto:[email protected]).
9+
10+
The Perkville Destination is in beta, which means that they are still actively developing the destination. To join their beta program, or if you have any feedback to help improve the Perkville Destination and its documentation, [contact the Perkville support team](mailto:[email protected]).
11+
12+
13+
## Getting Started
14+
15+
{% include content/connection-modes.md %}
16+
17+
1. From the Destinations catalog page in the Segment App, click **Add Destination**.
18+
2. Search for "Perkville" in the Destinations Catalog, and select the "Perkville" destination.
19+
3. Choose which Source should send data to the "Perkville" destination.
20+
4. Go to [Perkville > Settings > Apps](https://www.perkville.com/settings/usr/apps/){:target="_blank"} while logged in as an admin.
21+
5. Under Connect Segment, click "Generate Token" and then "Accept."
22+
6. Click "Show token" under the Segment app, then copy the token.
23+
7. Paste the token into the "API Key" field for the "Perkville" destination settings in Segment.
24+
25+
26+
## Supported methods
27+
28+
Perkville supports the following method, as specified in the [Segment Spec](/docs/connections/spec).
29+
30+
31+
### Track
32+
33+
Send [Track](/docs/connections/spec/track) calls to award points for allowlisted actions. For example:
34+
35+
```js
36+
analytics.track('Order Completed', {
37+
order_id: 'o283h08fh2390f923uofu23',
38+
revenue: 9.99,
39+
40+
});
41+
```
42+
43+
> warning "Important"
44+
> You should only send the track events you need to Perkville. You may use [Segment Destination Filters](/docs/connections/destinations/destination-filters/) to prevent unwanted events being sent to Perkville. You must allowlist the names of the events you need in the Perkville destination settings in the Segment App. Segment sends those events to Perkville for you, and returns an error if the event is not allowlisted.
45+
46+
#### Required Values
47+
48+
The only required event value is `email`. This must be present within the `event`, `event.properties`, or `event.context.traits` objects.
49+
50+
#### Quantity Calculation
51+
52+
Any events that have an `order_id` will be treated as spend transactions. The quantity of points given will reflect the event's `revenue`, `value`, or `total` in that priority order. Per [the eCommerce spec](/docs/connections/spec/ecommerce/v2/#order-refunded), if the order event name includes "Refund," points will be removed from the Perkville account associated with the provided email.
53+
54+
All other events default to a quantity of 1.

0 commit comments

Comments
 (0)