Analytics | URL (equivalent) Of A Lightbox

Hello,

Is it possible within Code to get URL-equivalent of a Wix lightbox and use that value as a destination in Google analytics?

Here is why I ask this: currently, I have no way besides counting messages to get any analytics data on users interest in chat at various times and through various channels. < This is not practical as I just cannot do it all the time and for each report and client. So instead, if you go to Practice Areas | Alexander J. Houthuijzen, Attorney-at-Law and scroll to the middle of the page, there is a button called CHAT that brings the functionality into the center of the user’s view on any screen. Now, if you click this, you will see a lightbox that simply guides you the user as to how you can either make a phone call to us or where you should look for our chat for example on larger screens (I like to keep it minimized and get smart with it this way as to not ruin the design experience on smaller screens with a giant overlay).

Solve for count of clicks/views on that lightbox! I can view pages on analytics and find out all sorts of data about them, but not lightboxes or the button clicks to them as there is no URL associated.

Is there currently a way to track such activity in any shape or form? any tricks?

1 Like

Hi Omid,

Since you raised this question Wix released Analytics Tools - Adding Custom Code to Your Site | Help Center | Wix.com
But unfortunately there is no Analytics support for Lightboxes.

I could suggest a possible workaround how to track views of a Ligthbox.

Here are the steps:

  • add an Analytics to your site
  • create a hidden page
  • add iframe component (“Embed a Site”) to your Lightbox
  • setup iframe component adress to just created hidden page
  • make iframe component as less visible as possible (small and might be hidden behind another component)

The idea is that now when Lightbox will be shown, it will open hidden page in hidden iframe, and you could treat views of this page as Lightbox views.

This solution has some drawbacks, but worth to try I think.