Skip to content

Commit

Permalink
Event tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Oct 30, 2020
1 parent a919105 commit c73067e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_App/BotAnalysis/Networks/Graph2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ import * as d3 from 'd3'
import Card from 'react-bootstrap/Card'
//import Row from 'react-bootstrap/Row'
//import Col from 'react-bootstrap/Col'
import ReactGA from 'react-ga'

import Spinner from '../../Spinner'
import cachedData from './data'

function nodeClickHandler(node, event){
console.log("YOU CLICKED", node["id"])
ReactGA.event({category: "Bot Networks", action: "Click Node", label: node["id"]})
//window.open(`https://twitter.com/${node["id"]}`, '_blank')
window.open(`/user-opinions?sn=${node["id"]}`, '_blank')
}
Expand Down

0 comments on commit c73067e

Please sign in to comment.