Commit 0ee672e5 authored by Alexander Hass's avatar Alexander Hass
Browse files

Change all links to HTTPS

parent 18ded023
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line

Module: Google Analytics
Author: Alexander Hass <http://drupal.org/user/85918>
Author: Alexander Hass <https://drupal.org/user/85918>


Description
@@ -45,15 +45,15 @@ user with 'Administer Google Analytics' permission.
Like the blocks visibility settings in Drupal core, there is a choice for
"Add if the following PHP code returns TRUE." Sample PHP snippets that can be
used in this textarea can be found on the handbook page "Overview-approach to
block visibility" at http://drupal.org/node/64135.
block visibility" at https://drupal.org/node/64135.

Custom dimensions and metrics
=============================
One example for custom dimensions tracking is the "User roles" tracking.

1. In the Google Analytics (http://www.google.com/analytics/) Management 
   Interface you need to setup Dimension #1 with name e.g. "User roles". This
   step is required. Do not miss it, please.
1. In the Google Analytics (https://marketingplatform.google.com/about/)
   Management Interface you need to setup Dimension #1 with name 
   e.g. "User roles". This step is required. Do not miss it, please.

2. Enter the below configuration data into the Drupal custom dimensions settings
   form under admin/config/system/googleanalytics. You can also choose another
@@ -69,7 +69,7 @@ Advanced Settings
=================
You can include additional JavaScript snippets in the custom javascript
code textarea. These can be found on the official Google Analytics pages
and a few examples at http://drupal.org/node/248699. Support is not
and a few examples at https://drupal.org/node/248699. Support is not
provided for any customisations you include.

To speed up page loading you may also cache the Google Analytics "analytics.js"
@@ -89,7 +89,7 @@ Body:
  <li><a href="mailto:foo@example.com">Mailto</a></li>
  <li><a href="/files/test.txt">Download file</a></li>
  <li><a class="colorbox" href="#">Open colorbox</a></li>
  <li><a href="http://example.com/">External link</a></li>
  <li><a href="https://example.com/">External link</a></li>
  <li><a href="/go/test">Go link</a></li>
</ul>

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
  ],
  "support": {
    "issues": "https://www.drupal.org/project/issues/google_analytics",
    "source": "http://git.drupal.org/project/google_analytics.git"
    "source": "https://git.drupal.org/project/google_analytics.git"
  },
  "license": "GPL-2.0+",
  "require": {}
+3 −3
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * Adds the required Javascript to all your Drupal pages to allow tracking by
 * the Google Analytics statistics package.
 *
 * @author: Alexander Hass <http://drupal.org/user/85918>
 * @author: Alexander Hass <https://drupal.org/user/85918>
 */

use Drupal\Component\Serialization\Json;
@@ -52,7 +52,7 @@ function google_analytics_help($route_name, RouteMatchInterface $route_match) {
      return $output;

    case 'google_analytics.admin_settings_form':
      return t('<a href=":ga_url">Google Analytics</a> is a free (registration required) website traffic and marketing effectiveness service.', [':ga_url' => 'http://www.google.com/analytics/']);
      return t('<a href=":ga_url">Google Analytics</a> is a free (registration required) website traffic and marketing effectiveness service.', [':ga_url' => 'https://marketingplatform.google.com/about/']);
  }
}

@@ -176,7 +176,7 @@ function google_analytics_page_attachments(array &$page) {

    // Track access denied (403) and file not found (404) pages.
    if ($status == '403') {
      // See http://www.google.com/support/analytics/bin/answer.py?answer=86927
      // See https://www.google.com/support/analytics/bin/answer.py?answer=86927
      $url_custom = '"' . $base_path . '403.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer';
    }
    elseif ($status == '404') {
+2 −2
Original line number Diff line number Diff line
@@ -179,8 +179,8 @@
   * Extract the relative internal URL from an absolute internal URL.
   *
   * Examples:
   * - http://mydomain.com/node/1 -> /node/1
   * - http://example.com/foo/bar -> http://example.com/foo/bar
   * - https://mydomain.com/node/1 -> /node/1
   * - https://example.com/foo/bar -> https://example.com/foo/bar
   *
   * @param {string} url
   *   The web url to check.
+2 −2
Original line number Diff line number Diff line
@@ -161,8 +161,8 @@
   * Extract the relative internal URL from an absolute internal URL.
   *
   * Examples:
   * - http://mydomain.com/node/1 -> /node/1
   * - http://example.com/foo/bar -> http://example.com/foo/bar
   * - https://mydomain.com/node/1 -> /node/1
   * - https://example.com/foo/bar -> https://example.com/foo/bar
   *
   * @param {string} url
   *   The web url to check.
Loading