활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Is it possible to change one link to another link dynamically based on time?
For example: If we are deploying a campaign through Adobe, which will have a discount of $800 for a Laptop model and it will be valid only for 12 hours from the time of deployment. In this instance at the end of 12 hours’ time, the offer landing page should be automatically changed to normal landing page.
해결되었습니다! 솔루션으로 이동.
Hi ,
In your HTML, you can use Contact Date of delivery to check the start time of your deployment/start of the offer and use a different variable which defines the offer expiry time as below:
var offerStarts = delivery.scheduling.contactDate;
var offerEnds = offerStarts.getHours( )+ 12;
In your delivery, where you have the offer specific content, you can use the if else statement:
If (offerStarts < = offerEnds)
{ display content 1}
else
{display content 2}
Hope this helps.
Thanks,
Anita
Hi ,
In your HTML, you can use Contact Date of delivery to check the start time of your deployment/start of the offer and use a different variable which defines the offer expiry time as below:
var offerStarts = delivery.scheduling.contactDate;
var offerEnds = offerStarts.getHours( )+ 12;
In your delivery, where you have the offer specific content, you can use the if else statement:
If (offerStarts < = offerEnds)
{ display content 1}
else
{display content 2}
Hope this helps.
Thanks,
Anita
Hi Anita,
Thanks for your responds, can you please elaborate the process please, so that it will be easy for me to achieve this.
Thanks,
Parthiban.
조회 수
답글
좋아요 수
Hi Parthiban,
In the email delivery, you can define the offer start and end variables using JS as below at the very beginning of your HTML.
And in the main HTML code, where you have the offer specific section- use the conditional statement -if else to display or not display the offer depending on the time in the variables.
Thanks,
Anita
Hi Anita,
It works fine only to the deployment, it's not working fine to already deployed campaigns. Is there any workaround
조회 수
답글
좋아요 수
Hi Partibhan,
Yes as per the logic , you get the "contactDate" of the delivery at the time of it's execution and basis that the offer end time is being calculated.
Any specific reason/requirement for the changes you want to make in the already deployed campaigns as this logic works in real time??
Thanks,
Anita
조회 수
답글
좋아요 수
Hi Anita,
We have countdown timer campaigns, We use gif image for the countdown timer and once the timer ends we wanted to replace timer image with another blank image.
조회 수
답글
좋아요 수