PageSourceSearch

https://sushilovers.dk/Plugins/NopStation.GoogleAnalytics/Content/js/ns.google.analytics.js

js sushilovers.dk collected 2026-10-08 18:44:57 UTC 1,138 bytes, 43 lines download raw bytes

1$(function () {
2  NSGoogleAnalytics.init()
3});
4
5var NSGoogleAnalytics = {
6  init: function () {
7    $('.product-item').click(function (e) {
8      NSGoogleAnalytics.productClicked(e);
9    });
10
11    $('#newsletter-subscribe-button').on('click', function () {
12      NSGoogleAnalytics.newsLetterClicked();
13    });
14  },
15
16  newsLetterClicked: function () {
17    if ($('#newsletter_subscribe').is(':checked')) {
18      alert('subcribed');
19      var email = $("#newsletter-email").val();
20      gtag('event', 'newsletter', {
21        'status': 'unsubscribe',
22        'email': email
23      });
24    }
25    else {
26      alert('unsubscribed');
27      var email = $("#newsletter-email").val();
28      gtag('event', 'newsletter', {
29        'status': 'subscribe',
30        'email': email
31      });
32    }
33  },
34
35  productClicked: function (elem) {
36    var productId = elem.currentTarget.dataset.productid;
37    var productName = elem.currentTarget.querySelector('.product-title a').textContent;
38    gtag('event', 'product-item-clicked', {
39      'product-id': productId,
40      'product-name': productName
41    });
42  },
43};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.