Discussions
Temporary Landing Page - Expiring landing page

For certain promotions or limited-time information, it would be useful to be able to set a time frame in which a landing page can be viewed, so is active.
As is, the landing page has to be deleted manually, so users need to remember to go in and deactive certain landing pages.
Perhaps it would even be useful as a setting to connect the landing page's availability to the campaign's time frame so that if needed, the landing page is deactivated once the campaign reached its end date.
Comments
-
I recommend adding some variation of the following JavaScript to your page.
<script type="text/javascript">
var END_TIME = new Date('Wed Apr 26 2017 01:00:00 GMT-0400').getTime();
if ( new Date().getTime() > END_TIME ) {
window.location = '[CLOSED URL]';
}
</script>
Just edit with your date, time, and redirect URL.
-
Probably you can manage with the marketing calendar. Since there is no OOTB feature in Eloqua, you can overcome with this.
-
I recommend adding some variation of the following JavaScript to your page.
<script type="text/javascript">
var END_TIME = new Date('Wed Apr 26 2017 01:00:00 GMT-0400').getTime();
if ( new Date().getTime() > END_TIME ) {
window.location = '[CLOSED URL]';
}
</script>
Just edit with your date, time, and redirect URL.
what will happen if this is added? I currently face the same problem as the TS. I want some pages to be inactive at a certain moment, but I want to save the page / file.
At this moment I have to delete the pages and save the html on my local machine. That seems very, very illogical.
-
I recommend adding some variation of the following JavaScript to your page.
<script type="text/javascript">
var END_TIME = new Date('Wed Apr 26 2017 01:00:00 GMT-0400').getTime();
if ( new Date().getTime() > END_TIME ) {
window.location = '[CLOSED URL]';
}
</script>
Just edit with your date, time, and redirect URL.
This javascript was very helpful! Getting used to using GMT is tricky, but I think I've worked out the kinks! Thanks!
-
The tips above are from skilled professionals.
However as an Eloqua User I don't want to have to code for seemingly simple functions that could be added with no need for the user to have to code.