Skip to content

Commit dee130c

Browse files
committed
Use S_REGISTERED_USER
1 parent 2cb1c26 commit dee130c

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

event/listener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function load_google_analytics()
6868
$this->template->assign_vars(array(
6969
'GOOGLEANALYTICS_ID' => $this->config['googleanalytics_id'],
7070
'GOOGLEANALYTICS_USER_ID' => $this->user->data['user_id'],
71-
'S_GOOGLEANALYTICS_USER_ID' => $this->user->data['is_registered'],
7271
));
7372
}
7473

styles/all/template/event/overall_header_stylesheets_after.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
77

88
ga('create', '{{ GOOGLEANALYTICS_ID }}', 'auto');
9-
{% if S_GOOGLEANALYTICS_USER_ID -%}
9+
{% if S_REGISTERED_USER -%}
1010
ga('set', 'userId', {{ GOOGLEANALYTICS_USER_ID }});
1111
{% endif -%}
1212
{% EVENT phpbb_googleanalytics_alter_ga_requirements -%}

tests/event/listener_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function test_load_google_analytics()
9393
->with(array(
9494
'GOOGLEANALYTICS_ID' => $this->config['googleanalytics_id'],
9595
'GOOGLEANALYTICS_USER_ID' => $this->user->data['user_id'],
96-
'S_GOOGLEANALYTICS_USER_ID' => $this->user->data['is_registered'],
9796
));
9897

9998
$dispatcher = new \Symfony\Component\EventDispatcher\EventDispatcher();

0 commit comments

Comments
 (0)