Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

How to apply your segments to the adobe raw data feed?

Level 1
Level 1

We are trying to build certain metrics from the adobe raw files that we export through the data feed. We have been successful in calculating visits and page views. But when we try to apply logic that we have in a segment (Ex: page = x OR page = y) we don't seem to get the same number of visits we see in adobe analytics. 

For Example: In adobe analytics, there's a segment called "Contact Us" and in the segment we have rules that include visit if page = x or prop1 = y


To calculate the same visits using adobe raw data feed, we use the following code, but it doesn't give us numbers that match when we see visits to that segment in adobe analytics:
SELECT count(distinct concat(post_vis_id_high,
CAST(visit_num AS VARCHAR),
CAST(visit_start_time_gmt AS VARCHAR)))Visits, date FROM "adobe_data_feed"
WHERE exclude_hit = 0
AND hit_source NOT IN (5,7,8,9))

AND (page = x OR post_prop1 = y)
group by date
order by date

2 Replies
Level 2
Level 2

In data feeds, the "page" is called "pagename" so you probably want to use post_pagename.  I don't know why you have a field named "date".  The field in our datafeeds is "date_time" and it is set to the same date_time that our reportsuite is set to.  So we pull date(date_time) as dt when we need to group data by the same 'day' that we see in SiteCatalyst.

Level 1
Level 1
Date is referenced from the date_time field from the data feed. I was not aware that page name also had a post_ version. I have replaced it with post_pagename but the numbers are still not matching with what we're seeing in adobe analytics.