Skip to content

Commit

Permalink
Merge pull request #1580 from Sefaria/GA4-struct
Browse files Browse the repository at this point in the history
Ga4 struct
  • Loading branch information
rneiss authored Aug 10, 2023
2 parents f26a60b + 2ea4de3 commit 693ebe8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions static/js/Misc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1448,14 +1448,16 @@ SaveButton.propTypes = {
};


const ToolTipped = ({ altText, classes, style, onClick, children }) => (
const ToolTipped = ({ altText, classes, style, onClick, children }) => {
const analyticsContext = useContext(AdContext)
return (
<div aria-label={altText} tabIndex="0"
className={classes} role="button"
style={style} onClick={onClick}
style={style} onClick={e => TrackG4.gtagClick(e, onClick, `ToolTipped`, {"classes": classes}, analyticsContext)}
onKeyPress={e => {e.charCode == 13 ? onClick(e): null}}>
{ children }
</div>
);
)};


class FollowButton extends Component {
Expand Down

0 comments on commit 693ebe8

Please sign in to comment.