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

ga similar named exhibit collision fix #3165

Merged
merged 1 commit into from
Oct 2, 2024
Merged

ga similar named exhibit collision fix #3165

merged 1 commit into from
Oct 2, 2024

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Oct 1, 2024

@dnoneill dnoneill marked this pull request as ready for review October 1, 2024 21:29
Copy link
Contributor

@corylown corylown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to do this that doesn't also remove the exhibit home page from the list of most popular pages?

Exhibits prod (first page listed is the home page):
Screenshot 2024-10-02 at 1 44 02 PM

This PR (home page is missing from the list):
Screenshot 2024-10-02 at 1 44 12 PM

@dnoneill dnoneill force-pushed the analytics-bug branch 2 times, most recently from 5cd8ba8 to d4fc8df Compare October 2, 2024 19:34
@@ -37,8 +37,8 @@ def dimension_filter(path)
filter: Google::Analytics::Data::V1beta::Filter.new(
field_name: 'pagePath',
string_filter: Google::Analytics::Data::V1beta::Filter::StringFilter.new(
match_type: :BEGINS_WITH,
value: path.to_s
match_type: :PARTIAL_REGEXP,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FULL_REGEXP works for data and martin-wong as well. Went back and forth about this and decided partial would probably be safer.

@dnoneill dnoneill requested a review from corylown October 2, 2024 19:35
@corylown corylown merged commit d18ffc5 into main Oct 2, 2024
6 checks passed
@corylown corylown deleted the analytics-bug branch October 2, 2024 20:06
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

Successfully merging this pull request may close these issues.

Analytics data appearing for one exhibit that is for a different exhibit
2 participants