We've just overhauled our registration process on our site. When a user registers they are directed to a pop up / light box as opposed to a unique url.

Tracking the conversion funnel was super easy until this change, as goals where assigned through the various entrance and exist points.

Is it possible to somehow track say for example, how many times the light box was closed (ie user does not want to register), or how long the user was on the lightbox? I imagine this would be a case of custom .js script?

Essentially I need this info to pull into Google Analytics. Any ideas?

2 Answers 2


To track the conversion funnel, with a lightbox, it would be better to use virtual pageviews. (in Google Analytics or in Google Tag Manager). Then you can add the virtual URLS to a conversion funnel and track user behaviour and abandonment.

Closing the lightbox should be an event or a return to the real URL.


Yes... You can use jQuery to track the click on the button

jQuery( function() {
     jQuery('#button1').click( function() {
          // Use google tracking code here. Use Events
  • 1
    Shouldn't you show what the event code looks like?
    – John Conde
    Commented Apr 25, 2017 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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