Skip to content

Commit

Permalink
Two minor updates to the variable_set() fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jen Lampton committed May 26, 2023
1 parent 814dcca commit 5b177a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions googleanalytics.module
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ function googleanalytics_preprocess_layout() {
// @FIXME: Cannot find the debug URL!???
$library = 'https://www.googletagmanager.com/gtag/js?id=' . $id_list[0];
}
elseif ($config->get('googleanalytics_cache') && $url = _googleanalytics_cache('https://www.googletagmanager.com/gtag/js')) {
elseif ($config->get('cache') && $url = _googleanalytics_cache('https://www.googletagmanager.com/gtag/js')) {
// Should a local cached copy of gtag.js be used?
$query_string = '?' . state_get('css_js_query_string', '0');
$query_string = '?' . state_get('css_js_query_string', base_convert(REQUEST_TIME, 10, 36));
$library = $url . $query_string;
}
else {
Expand Down

0 comments on commit 5b177a1

Please sign in to comment.