Is there a way to create a segment to show pages published within a certain timeframe? | Community
Skip to main content
Level 2
November 20, 2018

Is there a way to create a segment to show pages published within a certain timeframe?

  • November 20, 2018
  • 3 replies
  • 13034 views

Hello,

Our news team would like a report that shows analytics data for all news stories published in the last two weeks. We have an eVar that captures date published, in a time stamp format, but I'm unsure as to how (or if) I can apply a dynamic time range to the variable in order to have a segment that would only show articles published in the last two weeks. Would I have to create a time dimension? If so, is that something I need to refer to our developers?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Urs_Boller
Community Advisor
Community Advisor
November 20, 2018

I don't know of any way to make this dynamic. static would not be a problem, just make somethink like "date starts with 2018-11-" to get all articles from this month.

Maybe a way to solve this (only looking forward) would be a numeric event where you capture the days/month since publish date (by calculating the date difference when user visits the article). this way you can create a dynamic segment eg. "days since publish lower 30" or something similar.

Pablo_Childe
Community Advisor
Community Advisor
November 20, 2018

Would this work...

The other option would be to create a specific Success event(First publish date) not evar(make sure pagename was also captured at time of event fire). Then run segment to show event exists and last 2 weeks time frame. All would then be dynamic and allow for rolling timeframe analysis.

cgarzi11Author
Level 2
November 26, 2018

Wow great idea! I will try it.

Level 7
November 28, 2018

By using the "date published", I consider you will get the result that:

the article is published during your "date published" range AND the artile is visited by end-user, UNLESS the tracking codes are embeded in your CMS as well.

We met similar cases in our KM system, but since the "Date Published" is set as a custom eVar in front-end user only, so, ONLY once the published articles are visited by end user, all tracking codes will record and fire.

E.G., in the last 14 days, following articles were published:

KM01, KM02, VID01, FAQ01

But only VID01 is visited, then "Date Published" will never fired in KM01, KM02, FAQ01 since thery were not visited.

But if it is embeded into backend CMS, once the "publish" is a success event, then "Date Published" will be fired as well.