Freecodecamp: Trigger Google Analytics event when navbar "chat" button clicked

Created on 25 Jun 2016  路  3Comments  路  Source: freeCodeCamp/freeCodeCamp

We are trying to figure out how frequently the navbar chat button is clicked.

help wanted

Most helpful comment

@jondcoleman no worries. I haven't made the change already

All 3 comments

I think I can do this. The file located here has the chat opening functionality. If I need the analytics.js library to trigger an event, is it okay for me to put an import statement at the top of this file, or is the library already available for use?

@sthodup1 made this change before realizing you were planning to do this. Sorry about that. If you've got a change already in place I'll withdraw the PR.

@jondcoleman no worries. I haven't made the change already

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ar5had picture ar5had  路  3Comments

itsmikewest picture itsmikewest  路  3Comments

jurijuri picture jurijuri  路  3Comments

robwelan picture robwelan  路  3Comments

danielonodje picture danielonodje  路  3Comments