You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be clear, this issue does not impact our ability to capture search terms on the live site. We can still get this data, but using a more roundabout method.
Currently the "view_search_results" data is only captured on a full static refresh of a page. When you search using the Blacklight searchbar, where the result is loaded by turbolinks, the result is not captured. This must be related to turbolinks, but not sure how.
Type "something" in the search bar, and hit search
Your URL is now https://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=something
In the GA4 Realtime panel, you WILL see a page view registered for "something - Virtual Tribunals Search Results". You will NOT see a view_search_results event registered with the search_term parameter value as "something"
Now, while still on https://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=something, manually refresh the page. To make your results in GA4 more clear and distinct from your first search, you could manually edit the q param to something like https://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=somethingx2 before refreshing.
Back in the GA4 Realtime panel, you will see a pageview registered for "something x2- Virtual Tribunals Search Results". You will ALSO see a view_search_results event registered with the search_term parameter value as "somethingx2".
The text was updated successfully, but these errors were encountered:
To be clear, this issue does not impact our ability to capture search terms on the live site. We can still get this data, but using a more roundabout method.
Currently the "view_search_results" data is only captured on a full static refresh of a page. When you search using the Blacklight searchbar, where the result is loaded by turbolinks, the result is not captured. This must be related to turbolinks, but not sure how.
To reproduce:
https://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=something
view_search_results
event registered with thesearch_term
parameter value as "something"https://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=something
, manually refresh the page. To make your results in GA4 more clear and distinct from your first search, you could manually edit the q param to something likehttps://virtualtribunals.stanford.edu/nuremberg?search_field=all_fields&q=somethingx2
before refreshing.view_search_results
event registered with thesearch_term
parameter value as "somethingx2".The text was updated successfully, but these errors were encountered: