Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd like to track clicks on cbox buttons in colorbox. It looks like I can do this with a custom style, but I'm not sure if this is the best way to do.
However if this is the way to go, how can GA module provide a style for colorbox? I guess it's best to maintain in the ga module, but users should not made to copy it manually to colorbox module folder as this is also dropped with every colorbox release.
Comments
Comment #1
frjo CreditAttribution: frjo commentedWould it not be possible to hook in with one of the Callbacks in the Colorbox plugin?
http://www.jacklmoore.com/colorbox
Comment #2
hass CreditAttribution: hass commentedOk, found an example in the FAQ Track ColorBox usage with Google Analytics. So we do not need any other hooks. Thanks.
Comment #3.0
(not verified) CreditAttribution: commentedA