mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Add youtube status analytic
This commit is contained in:
parent
bc3c4e17e6
commit
3dc7a2839a
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@
|
|||
<?php $statusData = $status_token['data'] ?>
|
||||
<?php $isSyncAgreed = in_array($statusData['status'], ["syncing", "synced", "queued"]) ?>
|
||||
<?php $isRewardClaimed = $statusData['is_reward_claimed'] ?? false ?>
|
||||
<?php if (IS_PRODUCTION): ?>
|
||||
<?php js_start() ?>
|
||||
if(!localStorage.getItem('status_token')){
|
||||
ga('send', 'event', 'YT Sync', '', '');
|
||||
};
|
||||
<?php js_end() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<main class="channel-settings">
|
||||
<?php echo View::render('acquisition/_youtube_header') ?>
|
||||
<section class="section channel pad-top">
|
||||
|
|
Loading…
Add table
Reference in a new issue