Hello everyone.
I have a requirement to add the last published Date-time on a standard pageview event so that we can see when the last time a page was updated (keeping content up to date and relevant).
The developers can pass this in any format I need but I'm struggling to find any documentation around what format to use so that I can evaluate the hours/days/months between to setup different alerts (some content may need an alert triggering after a few hours, some a few days and most 6 months or so)
Has anyone done something similar? if so in which format did you pass the Date time to an eVar/Event etc?
Solved! Go to Solution.
Views
Replies
Total Likes
That's absolutely brilliant.
I already use the plugin for another eVar and I'm familiar with creating classifications so I'll be sure to leverage that here too.
Thank you so much for you help. I won't see the development changes for a few weeks yet (prod a bit more) but I'll be sure to come back here once I do.
Views
Replies
Total Likes
@malixx4 - ISO 8601 can be one of the formats that you can use to pass timestamp. Dates and times expressed in ISO 8601 can take several different forms. Adobe does not support all features in ISO 8601.
Further, this can be passed to an evar. But how do you plan to evaluate the value to find hour, month, day to setup alerts based on those values?
Views
Replies
Total Likes
Hello @Ishan_Sinha_
Thank you for the info and speedy response.
Initially I wanted to make sure that what I requested to be pushed to the page dataLayer would be usable in both reporting (getTimeParting) and somehow* for alerts to trigger.
Do you have any ideas on how alerts (based on time elapsed) could be achieved?
Views
Replies
Total Likes
@malixx4 - You could use classification to classify timestamp captured in an evar into Day, Month, etc. Further, Alerts can be set on those classified values: https://experienceleague.adobe.com/docs/analytics/analyze/analysis-workspace/virtual-analyst/intelli....
Another alternative is to use the getTimeParting plug-in as suggested by @Pankaj_Sabharwal .
Thanks!
Hi @malixx4
The solution to your problem is to use getTimeParting plugin & you can get the time in your desired TimeZone captured in an eVar.
var tpA = s.getTimeParting('n','-7');
s.eVarX = tpA.split('|')[0]; // time at minute level
Reference documentation for the same - getTimeParting
Date / Date range you can always choose for the report whenever you run them in Adobe Analytics.
I also recommend using Classifications to break it out by:
Day of Week, Month, AM v PM, Weekday vs Weekend.
Thanks.
That's absolutely brilliant.
I already use the plugin for another eVar and I'm familiar with creating classifications so I'll be sure to leverage that here too.
Thank you so much for you help. I won't see the development changes for a few weeks yet (prod a bit more) but I'll be sure to come back here once I do.
Views
Replies
Total Likes
Views
Like
Replies