How to use the analytics.tagFollowEvent function in analytics

To help you get started, we’ve selected a few analytics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lbryio / lbry-desktop / ui / page / tags / view.jsx View on Github external
function handleFollowClick() {
    doToggleTagFollow(tag);

    const nowFollowing = !isFollowing;
    analytics.tagFollowEvent(tag, nowFollowing, 'tag-page');
  }
github lbryio / lbry-desktop / ui / component / tagsSelect / view.jsx View on Github external
function handleTagClick(tag) {
    if (onRemove) {
      onRemove(tag);
    } else if (doToggleTagFollow) {
      doToggleTagFollow(tag.name);

      const wasFollowing = followedTags.map(tag => tag.name).includes(tag.name);
      const nowFollowing = !wasFollowing;
      analytics.tagFollowEvent(tag.name, nowFollowing, 'tag-select');
    }
  }
github lbryio / lbry-desktop / src / ui / page / tags / view.jsx View on Github external
function handleFollowClick() {
    doToggleTagFollow(tag);

    const nowFollowing = !isFollowing;
    analytics.tagFollowEvent(tag, nowFollowing, 'tag-page');
  }