Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter segment with few values(segmentos ID) #94

Open
manuelgomezrico opened this issue Jul 5, 2018 · 1 comment
Open

Filter segment with few values(segmentos ID) #94

manuelgomezrico opened this issue Jul 5, 2018 · 1 comment

Comments

@manuelgomezrico
Copy link

Hi
I don’t know if is possible that I can do one filter of type segment with two segments id
If the answer if yes, could learn me one example?
Thanks

@adibbehjat
Copy link

This is one approach

queue = list()
segments = ['SegmentID_A','SegmentID_B']

for segment in segments:
	report = suite.report.element('page').metric('visits').range(dateFrom,dateTo).filter(segment)
	queue.append(report)

heartbeat = lambda: sys.stderr.write('.')
reports = omniture.sync(queue, heartbeat)

for report in reports:
	print report.report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants