Change from OR to proper AND (#816)

This commit is contained in:
Ben Halpern 2018-10-04 11:34:20 -04:00 committed by GitHub
parent b8b0e5db4a
commit 12fee733f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ class GoogleAnalytics
def get_feed_impression_info
requests = @article_ids.map do |id|
make_report_request("ga:eventAction=~featured-feed-impression,ga:eventLabel==articles-#{id}",
make_report_request("ga:eventAction==featured-feed-impression;ga:eventLabel==articles-#{id}",
"ga:totalEvents")
end
results = fetch_all_results(requests)
@ -33,7 +33,7 @@ class GoogleAnalytics
def get_feed_click_info
requests = @article_ids.map do |id|
make_report_request("ga:eventAction=~featured-feed-click,ga:eventLabel==articles-#{id}",
make_report_request("ga:eventAction==featured-feed-click;ga:eventLabel==articles-#{id}",
"ga:totalEvents")
end
results = fetch_all_results(requests)