emory-libraries / blacklight-catalog

1 stars 2 forks source link

Spike: investigate workarounds for unexpected URL parameters sent to Library Search #1255

Closed eporter23 closed 2 years ago

eporter23 commented 2 years ago

During the migration to Drupal, we uncovered a problem where the Google Analytics configuration for the Library sites are using cross-domain tracking. The links from libraries.emory.edu to search.libraries.emory.edu are receiving "link decoration" to help analytics join the sessions. See related ticket on d9 repository.

Example of link decoration added by Drupal when a user creates a link to the Library Search homepage: https://search.libraries.emory.edu/?_ga=2.254463560.1947920273.1649182547-1700922359.1649079393

_ga= will be consistent, but the other numeric portions are dynamic.

Problem: Blacklight thinks the ?_ga... parameter is a query, which fails. This means trying to link to the Library Search homepage will always load what looks like a failed search results view for a user.

Screen Shot 2022-04-06 at 9.30.35 AM.png

This could also occur if users create other links with unexpected parameters.

We are continuing to explore options with Drupal's analytics settings, but want to investigate from the Blacklight side as well.

bwatson78 commented 2 years ago

PR made: https://github.com/emory-libraries/blacklight-catalog/pull/1257

Screen Shot 2022-04-06 at 2.30.10 PM.png Screen Shot 2022-04-06 at 2.30.38 PM.png Screen Shot 2022-04-06 at 2.31.25 PM.png

eporter23 commented 2 years ago

@lovinscari closing this because it is up and running on prod and working great.