Adding conditional to analytic

This commit is contained in:
maximest-pierre 2018-04-01 09:01:56 -04:00
parent a8dd4a2caa
commit 8b50d3d516

View file

@ -10,8 +10,8 @@
<?php if (IS_PRODUCTION): ?> <?php if (IS_PRODUCTION): ?>
<?php js_start() ?> <?php js_start() ?>
if(!localStorage.getItem('status_token')){ if(!localStorage.getItem('status_token')){
ga('send', 'event', 'YT Sync', 'pending', ''); ga('send', 'event', 'YT Sync', '<?php echo $isSyncAgreed ? "pending" : "queued" ?>', '');
}; }
<?php js_end() ?> <?php js_end() ?>
<?php endif ?> <?php endif ?>