How can I add Google Analytics event tracking code for a picture gallery widget?

  • 2
  • Question
  • Updated 5 years ago
  • Answered
I added a Picture Gallery widget to my website and I want to add Google Analytics Event tracking to see if visitors are looking at the new picture gallery. Where do I put the code? I can't see the html for this widget.

Thank you.
Photo of Peggy

Peggy

  • 5 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hello Peggy

If you have Yola Silver or Yola Gold, you can add Site Tracking Code to your website. You will find it in your Sitebuilder under Site > Tracking > Site Tracking Code. Please be careful when you add the code, adding incorrect code can break you site and make it inaccessible.
Photo of Peggy

Peggy

  • 5 Posts
  • 0 Reply Likes
Thank you, but I already have Site Tracking set up. I want to set up Goal or Event tracking through Google Analytics to track specifically when a visitor clicks the Picture Gallery. I have the HTML code to do that, but, unlike other Widgets, I cannot find the option to view the HTML for the Picture Gallery widget so I can add my Event tracking code.
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hi Peggy

I see. I'm afraid that the code section of the Picture Gallery Widget is not accessible, so it will currently not be possible to add the Event Tracking Code to it. I'm sorry that I don't have better news for you in this matter right now.