Skip to content

Commit 005e2ba

Browse files
committed
[GH Usage] Grouped GH Usage analytics with dependencies section
1 parent ad9dfba commit 005e2ba

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/NuGetGallery/Scripts/gallery/page-display-package.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,12 @@ $(function () {
105105
});
106106
}
107107

108-
// Emit a Google Analytics event when the user expands or collapses the Dependencies section.
109108
if (window.nuget.isGaAvailable()) {
109+
// Emit a Google Analytics event when the user expands or collapses the Dependencies section.
110110
$("#dependency-groups").on('hide.bs.collapse show.bs.collapse', function (e) {
111111
ga('send', 'event', 'dependencies', e.type);
112112
});
113-
}
114113

115-
if (window.nuget.isGaAvailable()) {
116114
// Emit a Google Analytics event when the user expands or collapses the GitHub Usage section.
117115
$("#github-usage").on('hide.bs.collapse show.bs.collapse', function (e) {
118116
ga('send', 'event', 'github-usage', e.type);

0 commit comments

Comments
 (0)