To set an expiration date for your AffEasy links, follow these steps:
Open the link builder in your AffEasy dashboard.
Toggle the “Link Expiration” switch to reveal the expiration options.
You can set the expiration date in two ways:
a. Use natural language: Type in any time interval, such as “in 2 hours” or “tomorrow at 5PM”. AffEasy will automatically convert this to the correct date-time format.
b. Use the date-time picker: Manually select the date and time from the provided calendar and time selector.
When a user tries to access an expired link, they will see an “Expired Link” page.
Clicks to the link after the expiration date will not be tracked in your
analytics.
For developers and advanced users, AffEasy provides API access to set link expiration programmatically. Here’s an example of how to create a link with an expiration date using the AffEasy API:
Copy
import { AffEasy } from "affeasy";const affeasy = new AffEasy();await affeasy.links.create({ url: "https://example.com/limited-offer", expiresAt: "2024-12-31T23:59:59Z", expirationUrl: "https://example.com/offer-ended",});
If you have any questions about setting expiration dates for your links or using any of our advanced features, please don’t hesitate to contact our support team. We’re here to help you make the most of AffEasy’s powerful link management tools!