Posts Tagged ‘dayparting’
DayParting your site to adapt to your audience in Saxotech Online.
Day-Parting or DayParting has been heavily utilized by the Television media industry for years to target audiences and provide the content that will be appealing to your demographic at that given span of time.
The same practices of Day-Parting / DayParting can be applied within Saxotech Online to provide the exact content your audience.
You want to serve up two different include files within Saxotech Online based on the Time (midnite until noon / noon until midnite).
This can be achieved by a Macro within Saxotech Online, a little syntax and a dash of objectScript.
\\Set the current 2 digit hour and two digit minute to a local variable named DayPartingTimeTest
<%currentdate$d("hhmm")$V(DayPartingTimeTest)%>
\\If the time is greater than 12:00 a.m. AND before 12:00 p.m
[%{DayPartingTimeTest>0000&DayPartingTimeTest<1200}
\\morning content
<pbs:include virtual="/Includes/SomeIncludeFile_Morning.inc">
%|%
\\nightly content
<pbs:include virtual="/Includes/SomeIncludeFile_AfterNoon.inc">
%]
This is a basic example to get you started but this can be applied to PBS:AD tags as well as integrating with other 3rd party AD systems to target ad’s to your audience just like your content.