I'm trying track the number of times a pop-up displays on my site, but can't get it to show as an Event in Google Analytics. I've included this in the pop-up itself:

    <a href="http://www.domain.com/destination"><img src="http://www.domain.com/popup.jpg" onload=”ga(‘send’, ‘event’, ‘popups’, ‘popup1’);“></a>

Any idea what I'm doing wrong? Thanks!

  • I'm closing this question because the problem was due to a typo with your code. You found the problem and corrected it, but this question is unlikely to be helpful to future visitors. – Stephen Ostermiller Mar 29 '16 at 15:06

For what it's worth, I found the problem. The single and double quote marks were improperly formatted. (You can see they're the slanted versions, when I should have used the vertical ones.)

| improve this answer | |
  • The good old "smart" quotes vs. "straight" quotes issues. Gets them every time! – nyuen Mar 19 '16 at 22:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.