|
20 | 20 | ?channel={{ default_track }}/{{ lowest_risk_available }} |
21 | 21 | {% endif %}" |
22 | 22 | class="p-view-store-button" |
23 | | - data-js="open-desktop"> |
| 23 | + data-js="open-desktop" |
| 24 | + data-analytics-click |
| 25 | + data-analytics-target="snap_details_view_in_desktop_store" |
| 26 | + data-analytics-channel="{{ default_track }}/{{ lowest_risk_available }}"> |
24 | 27 | View in Desktop store |
25 | 28 | </button> |
26 | 29 | <p class="p-form-help-text">Make sure <a href="/docs/installing-snapd">snap support</a> is enabled in your Desktop store.</p> |
|
30 | 33 | </div> |
31 | 34 | <div class="u-fixed-width"> |
32 | 35 | <p><b>Install using the command line</b></p> |
33 | | - <div class="p-code-snippet"> |
| 36 | + <div class="p-code-snippet" style="position: relative;"> |
34 | 37 | <pre class="p-code-snippet__block--icon"><code id="snap-install">{{ install_snippet( |
35 | 38 | package_name, default_track, lowest_risk_available, confinement) }}</code></pre> |
| 39 | + <button class="u-no-margin--bottom" title="Copy to clipboard" data-js="copy-install-command" data-copy-target="snap-install" data-analytics-click data-analytics-target="snap_details_copy_install_command" data-analytics-channel="{{ default_track }}/{{ lowest_risk_available }}" style="position: absolute; top: 0.5rem; right: 0.5rem; background: transparent; border: none; cursor: pointer; padding: 0.25rem;"><i class="p-icon--copy" style="opacity: 0.7;">Copy to clipboard</i></button> |
36 | 40 | </div> |
37 | 41 | <p class="p-form-help-text"> |
38 | 42 | Don't have snapd? <a href="/docs/installing-snapd">Get set up for snaps</a>. |
|
167 | 171 | </div> |
168 | 172 | </div> |
169 | 173 | <p>Ubuntu 16.04 or later?</p> |
170 | | - <button data-snap="{{ package_name }}?channel=${channel}" class="p-view-store-button" data-js="open-desktop">View in Desktop store</button> |
| 174 | + <button data-snap="{{ package_name }}?channel=${channel}" class="p-view-store-button" data-js="open-desktop" data-analytics-click data-analytics-target="snap_details_channel_view_in_desktop_store" data-analytics-channel="${channel}">View in Desktop store</button> |
171 | 175 | <p class="p-form-help-text">Make sure <a href="/docs/installing-snapd">snap support</a> is enabled in your Desktop store.</p> |
172 | 176 | </div> |
173 | 177 | <div class="u-fixed-width"> |
174 | 178 | <hr /> |
175 | 179 | </div> |
176 | 180 | <div class="u-fixed-width"> |
177 | 181 | <p><b>Install using the command line</b></p> |
178 | | - <div class="p-code-snippet"> |
| 182 | + <div class="p-code-snippet" style="position: relative;"> |
179 | 183 | <pre class="p-code-snippet__block--icon is-wrapped"><code id="snap-install-alt">sudo snap install {{ package_name }}${paramString}</code></pre> |
| 184 | + <button class="u-no-margin--bottom" title="Copy to clipboard" data-js="copy-install-command" data-copy-target="snap-install-alt" data-analytics-click data-analytics-target="snap_details_channel_copy_install_command" data-analytics-channel="${channel}" style="position: absolute; top: 0.5rem; right: 0.5rem; background: transparent; border: none; cursor: pointer; padding: 0.25rem;"><i class="p-icon--copy" style="opacity: 0.7;">Copy to clipboard</i></button> |
180 | 185 | </div> |
181 | 186 | <p class="p-form-help-text"> |
182 | 187 | Don't have snapd? <a href="/docs/installing-snapd">Get set up for snaps</a>. |
|
189 | 194 | <td>${row[0]}/${row[1]}</td> |
190 | 195 | <td>${row[2]}</td> |
191 | 196 | <td class="u-hide--medium u-hide--small">${row[3]}</td> |
192 | | - <td class="u-align--center"><a href="#" class="p-channel-map__version-table-install">Install ›</a></td> |
| 197 | + <td class="u-align--center"><a href="#" class="p-channel-map__version-table-install" data-analytics-click data-analytics-target="snap_details_channel_version_install" data-analytics-channel="${row[0]}/${row[1]}" data-analytics-version="${row[2]}">Install ›</a></td> |
193 | 198 | </tr> |
194 | 199 | </script> |
195 | 200 |
|
|
0 commit comments