Version 1
[yaffs-website] / web / core / modules / statistics / statistics.js
diff --git a/web/core/modules/statistics/statistics.js b/web/core/modules/statistics/statistics.js
new file mode 100644 (file)
index 0000000..572cd45
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * @file
+ * Statistics functionality.
+ */
+
+(function ($, Drupal, drupalSettings) {
+
+  'use strict';
+
+  $(document).ready(function () {
+    $.ajax({
+      type: 'POST',
+      cache: false,
+      url: drupalSettings.statistics.url,
+      data: drupalSettings.statistics.data
+    });
+  });
+})(jQuery, Drupal, drupalSettings);