From e476c077e6c2d1a5e088584a07ef664390c5d9dc Mon Sep 17 00:00:00 2001 From: Jim Myers Date: Wed, 4 Mar 2020 16:32:19 -0500 Subject: [PATCH 1/3] bug fix for changed UI --- .../files/var/www/dataverse/branding/analytics-code.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html index 4e6a01f2d5d..c8b1a3e945a 100644 --- a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html +++ b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html @@ -117,7 +117,7 @@ var row = target.parents('tr')[0]; if(row != null) { //finds the file id/DOI in the Dataset page - label = $(row).find('td.col-file-metadata > a').attr('href'); + label = $(row).find('td.col-file-metadata a').attr('href'); } else { //finds the file id/DOI in the file page label = $('#fileForm').attr('action'); From eb38f4dcad3f5cbacd64129add0ab4e74812ffe2 Mon Sep 17 00:00:00 2001 From: Jim Myers Date: Wed, 4 Mar 2020 16:57:50 -0500 Subject: [PATCH 2/3] release note --- doc/release-notes/6725-analytics-bug.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/release-notes/6725-analytics-bug.md diff --git a/doc/release-notes/6725-analytics-bug.md b/doc/release-notes/6725-analytics-bug.md new file mode 100644 index 00000000000..bbb703fcb58 --- /dev/null +++ b/doc/release-notes/6725-analytics-bug.md @@ -0,0 +1,3 @@ +# Google Analytics Download Tracking Bug + +The button tracking capability discussed in the installation guide (http://guides.dataverse.org/en/4.20/installation/config.html#id88) relies on an analytics-code.html file that must be configured using the :WebAnalyticsCode setting. The example file provided in the installation guide is no longer compatible with recent Dataverse releases (>v4.16). Installations using this feature should update their analytics-code.html file by following the installation instructions using the updated example file. (Alternately, sites can modify their existing files to include the one-line change made in the example file at line 120.) \ No newline at end of file From 1e5951fe35257dc0d0a110590475fa54ae55db36 Mon Sep 17 00:00:00 2001 From: Michael Heppler Date: Fri, 6 Mar 2020 10:08:04 -0500 Subject: [PATCH 3/3] Changed selector in analytics exmaple to be more precise [ref #6725] --- .../files/var/www/dataverse/branding/analytics-code.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html index c8b1a3e945a..ca703dddf11 100644 --- a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html +++ b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/analytics-code.html @@ -117,7 +117,7 @@ var row = target.parents('tr')[0]; if(row != null) { //finds the file id/DOI in the Dataset page - label = $(row).find('td.col-file-metadata a').attr('href'); + label = $(row).find('div.file-metadata-block > a').attr('href'); } else { //finds the file id/DOI in the file page label = $('#fileForm').attr('action');