Skip to content Skip to sidebar Skip to footer

How To Open A Lightbox On Page Load If Url Equals Using Google Tag Manager

The title pretty much says it. I would like to show a lightbox on page load only if the url is www.example.com/#popup versus www.example.com If this could be accomplished with goog

Solution 1:

if (window.location.hash === "#popup") {
    $.featherlight("#mylightbox");                   
}

See https://github.com/noelboss/featherlight/#manual-calling-of-featherlight

Fiddle Shows manual lightbox open call. http://jsfiddle.net/fm9wp96r/

Post a Comment for "How To Open A Lightbox On Page Load If Url Equals Using Google Tag Manager"