Reduce friction and frustration by giving your customers the opportunity to update their subscriptions with 1-Click actions. This guide will take you through what 1-Click is, how to add links to Attentive, and lists out all currently available actions.
How 1-Click Actions Work
1-Click actions are unique and secure URLs you can send to your customers through email and SMS messages. When clicked on, they will perform a specific pre-determined action such as reactivating a churned subscription.
Let’s follow the same example, say a customer wants to resubscribe to your product. Normally they would have to find your Subscription Manager on the store homepage, log in, locate the subscription, and click to reactivate it; or go through checkout again. With 1-Click actions, you can cut down all of those steps to just one: clicking on their unique URL.
What 1-Click URLs look like
1-Click actions piggyback off of Ordergroove’s API, so all of the URLs will look similar:
https://<STORE_URL>/?og_quick_action=<ACTION>&og_quick_action_token=<TOKEN_STRING>
- <STORE_URL>: Your store’s homepage or a different landing page you want to direct customers to after taking the action
- <ACTION>: The action that you want to perform, taken from the list below
- <TOKEN_STRING>: Generated by Ordergroove and stored in Attentive
Enabling 1-Click Actions for your store
1-Click actions need to point to a URL that has Ordergroove’s main.js script tag, and can not be in the My Account section.
During the open beta Ordergroove has to enable 1-Click Actions for you. Please submit a support ticket requesting access to 1-Click and for your Merchant Public ID.
Add the following script under the <HEAD> html element to the specific account page you want to direct users to after they click the button from Attentive messages:
<script type=“text/javascript” src=“https://static.ordergroove.com/<MERCHANT_PUBLIC_ID>/main.js”></script>”.
Replace MERCHANT_PUBLIC_ID with the ID # you received from Ordergroove Support.
During the open beta Ordergroove has to enable 1-Click Actions for you. Please submit a support ticket requesting access to 1-Click and for your Merchant Public ID.
Add the following script under the <HEAD> html element to the specific account page you want to direct users to after they click the button in their Attentive outreach:
<script type=“text/javascript” src=“https://static.ordergroove.com/<MERCHANT_PUBLIC_ID>/main.js”></script>”.
Replace MERCHANT_PUBLIC_ID with the ID # you received from Ordergroove Support.
Adding 1-Click Actions to Attentive
1-Click Actions can be added to Attentive Journeys and Campaigns, and can be used with automated Two-Way messaging.
Add 1-Click action to an SMS message
- Log in to Attentive. Open an existing SMS journey based on an Ordergroove trigger, or create a new one.
- Add a text message step to the journey.
- Click the link button at the bottom of the message editor.
- In the popup, Copy one of the sample code snippets listed below and paste it into the Link URL section.
- Replace <STORE_URL> with the URL of the tagged page you would like to redirect users to when they take an action.
- Click Shorten and Insert URL.
Add 1-Click action to a two-way journey
- Log in to Attentive. Open an existing SMS journey based on an Ordergroove trigger, or create a new one.
- Add an auto-reply text message step to the journey.
- Set up a keyword for your message.
- In the keyword branch, add a text message step.
- Click the link button at the bottom of the message editor.
- In the popup, Copy one of the sample code snippets listed below and paste it into the Link URL section.
- Replace <STORE_URL> with the URL of the tagged page you would like to redirect users to when they take an action.
- Click Shorten and Insert URL.
Available 1-Click Actions
The following is a list of all available 1-Click Actions along with an example URL. 1-Click Actions is under active development, and this list will grow as we build out the program.
Delay Shipment
Delays a subscribers upcoming shipment by 14 days. The number of days to delay can optionally be overwritten as a URL parameter.
- Action: delay
- Sample Code (w/ on-site confirmation via Ordergroove JS):
https://<STORE_URL>/?og_quick_action=delay&og_delay_by=14&og_quick_action_token={{triggerEvent.custom['action_token']}}
-
Fields:
- og_delay_by=14: The amount of days to delay the shipment. You can replace 14 for a custom delay period.
- Sample Code (via API):
https://restapi.ordergroove.com/one_click/delay/?days={{days}}&token={{event.action_token}}
-
Fields:
- days={{days}}: The amount of days to delay the shipment. Replace {{days}} with an integer.
Reactivate Subscription
Reactivates a customer’s subscription. The first order date is set to the next day. The customer will get charged the next day, and will resume all previous subscription settings such as frequency and quantity.
- Action: reactivate
- Sample Code (w/ on-site confirmation via Ordergroove JS):
https://<STORE_URL>/?og_quick_action=reactivate&og_quick_action_token={{triggerEvent.custom['action_token']}}
- Sample Code (via API):
https://restapi.ordergroove.com/one_click/reactivate/?token={{event.action_token}}
One-Time Product Upsell
Adds an item to a customer's upcoming order. Requires the Ordergroove external product id of the item you want to add to the order.
- Action: upsell
- Sample Code (w/ on-site confirmation via Ordergroove JS):
https://<STORE_URL>/?og_quick_action=upsell&og_product_id=123ABC&og_quick_action_token={{triggerEvent.custom['action_token']}}
-
Fields:
- og_product_ID=123ABC: The product you want to append to a customer's order. Replace 123ABC with the Ordergroove product ID. You can find the ID by logging in to Ordergroove > Products > Click the product you want to upsell > External Product ID.
- Sample Code (via API):
https://restapi.ordergroove.com/one_click/upsell/?og_product_id={{id}}&token={{event.action_token}}
-
Fields:
- og_product_ID={{id}}: The product you want to append to a customer's order. Replace 123ABC with the Ordergroove product ID. You can find the ID by logging in to Ordergroove > Products > Click the product you want to upsell > External Product ID.