With the Attentive and Shopify integration, you can sync unique discount codes directly from Shopify into an offer in Attentive. You can also upload bulk-generated discount codes created in Shopify or create an offer that matches a shared discount code from Shopify.
Create an offer with auto-generated unique discount codes from Shopify
Follow the steps below to create an offer that gets unique, automatically-generated discount codes from Shopify.
- If you have multiple Attentive accounts, each linked to a single Shopify store, the same Shopify discount code can be used across these different Attentive accounts.
- If you manage multiple regions in a single Attentive account, a single Attentive offer linked to a single Shopify discount code can be used in all the regions you manage.
- If you manage multiple regions in a single Attentive account, and you use multiple Attentive offers, each separate offer must be linked to a unique Shopify discount code.
- On the Offers page, click + Create offer.
- In the Choose an offer type window, click Select next to Integrated discount codes.
Note: This option doesn’t appear if you haven’t yet set up an integration with Shopify.The Create integrated discount codes page appears. - Enter a Discount name. We recommend using the same name that you use for the discount in Shopify.
- In the External ID field, enter the external ID of the discount from your Shopify account.
- To find a discount’s external ID, go to the Discounts page in Shopify and click on the discount you want to use. The string of numbers at the end of the URL is the external ID. Copy and paste this number into the External ID field in Attentive.
Note: External IDs can’t be reused. If you try to reuse an external ID that was used to create another offer (even if that offer has been deleted), you won’t be able to create the new offer.
- To find a discount’s external ID, go to the Discounts page in Shopify and click on the discount you want to use. The string of numbers at the end of the URL is the external ID. Copy and paste this number into the External ID field in Attentive.
- In the Code format field, create a code format with no spaces that contains
{RAND}
, as in the screenshot above. When subscribers receive a code,{RAND}
is replaced by six random characters.
Example:SAVE10{RAND}
- (Optional) Enter a Description.
- (Optional) Click Add auto-apply link to automatically apply the discount at checkout, then complete the following:
-
Destination URL: Enter the link where your subscribers should be sent. Include
{{subscriber.signupOffer.link}}
(for welcome journeys) or{{offer.code}}
where you want the discount code to appear in the URL.
Example:You can add this URL to messages by clicking the offer button in the message composer and clickinghttps://{shopname}.myshopify.com/discount/{{offer.code}}
{{offer.link}}
. See the instructions for creating campaign and journey messages for more information. -
Add UTM parameters: Add UTM parameters you want to append to the link.
Note: UTM_Source and UTM_Medium may already be filled out based on your Google Analytics configuration. See FAQ for more information.
-
Destination URL: Enter the link where your subscribers should be sent. Include
- Click Create.
- Wait approximately 5–10 minutes to ensure that discount codes are being generated.
Note: New discount codes are automatically generated once you reach 1,000 remaining.
After you’ve created your new offer, you can add it to welcome journeys and other kinds of journeys.
Create an offer with unique discount codes from Shopify
If you want to use unique, bulk-generated discount codes from Shopify, you can upload a CSV file with those codes to Attentive. See Create unique discount codes for more information.
Create an offer with a shared discount code from Shopify
After you create a discount with a discount code in Shopify (e.g., SPRING10 for 10% off your purchase), create a new shared discount code in Attentive and use the code from Shopify as its Discount code. See Create a shared discount code for more information.