Skip to content

Commit 7727c86

Browse files
committed
Fixes some issues with setting the GA ID.
1 parent 8e29d12 commit 7727c86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dmriprep/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
'https://github.com/nipreps/{name}/archive/{ver}.tar.gz'.format(
1616
name=__packagename__, ver=__version__))
1717

18-
__ga_id__ = "UA-156165436-1"
18+
__ga_id__ = "UA-156165436-1"

dmriprep/cli/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def main():
304304
try:
305305
dmriprep_wf.run(**plugin_settings)
306306
except Exception as e:
307-
popylar.track_event('run', 'cli_error')
307+
popylar.track_event(__ga_id__, 'run', 'cli_error')
308308
raise
309309
else:
310310
if opts.run_reconall:
@@ -318,7 +318,7 @@ def main():
318318
errno = 0
319319
logger.log(25, 'dMRIPrep finished without errors')
320320
if not opts.notrack:
321-
popylar.track_event('run', 'cli_finished')
321+
popylar.track_event(__ga_id__, 'run', 'cli_finished')
322322

323323
finally:
324324
from niworkflows.reports import generate_reports

0 commit comments

Comments
 (0)