Automatically start countdown timer for discount when auto-email sent out

Topic summary

A user seeks to implement time-limited discount codes that automatically trigger when specific automated emails are sent to customers, with three scenarios:

Use Cases:

  • First purchase: 10% discount valid for 5 hours after welcome email
  • 72 hours post-welcome: Buy 2 get 1 at 25% off, valid for 48 hours
  • 30-day inactivity: 10% discount valid for 48 hours

All scenarios ideally include countdown timers displayed within the emails.

Key Challenges Identified:

Email countdown timers are technically limited—emails don’t support scripting or animations beyond GIFs. Some embeddable services exist but typically aren’t free for dynamic countdowns. Excessive visual elements risk triggering spam filters.

Recommended Solutions:

  • Use advanced discount apps or automation services like Mechanic (https://tasks.mechanic.dev/?q=discounts) for time-restricted discount logic
  • Leverage Shopify Email app and marketing campaigns for email sequences
  • Custom scripting may be required for these specific automation requirements

Important Considerations:

Frequent automated emails to new customers can damage sender reputation and lead to spam blacklisting. The discussion remains open regarding implementation specifics and the user’s coding capabilities.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Use Case 1 - When a new customer makes their first purchase Email 1 (Welcome Email) is sent out with a 10% discount for their next purchase. The 10% discount has a 5 hour time restriction. How do I automatically trigger the discount to last for only 5 hours, and if possible, display the countdown timer in the email?

Use Case 2 - 72 Hours after Email 1 (Welcome Email) is sent out, a buy 2 get 1 25% off deal is activated and email automatically sent out. Again, how do you automatically restrict the time frame for the discount to 48 hours (in this case), and again if possible, display that countdown timer in the email?

Use Case 3 - If no purchase has been made in 30 days, an automatic email with a 48 hour 10% off discount is activated and sent out. Again, preferably displaying a countdown timer.

Question, how coding-inclined are you?

@Zenoah the email and discount are separate complications.

Emails are not scriptable for animations , generally use gifs and respect file sizes and the users inbox.

There are some embeddable services, though I don’t think any free for dynamic times.

Google it https://www.google.com/search?q=timer+in+email & https://www.google.com/search?q=animations+in+email+with+gifs

Remember annoying emails with excess visual noise or gimmicks are good way to end up in spam filters.

For discounts, you will need an advanced discount app or an automation app/service to do such specific things.

Again respect your users inbox and be 100% sure customers expect this type of campaign sequence behavior or get spam blacklisted.

If your a new company doing this out the gate is hammering inboxes every few days is not a good idea.

For automation see apps like mechanic to automate email and advanced discount behaviors.

It has a library of tasks but for such custom cases you will need to custom script it

https://tasks.mechanic.dev/?q=discounts

If you need this automation built then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Good Hunting.

For campaign sequences see shopify marketing and the shopify email app

https://help.shopify.com/en/manual/promoting-marketing/create-marketing/create-marketing-campaigns

Thanks!