Created
January 5, 2018 21:07
-
-
Save JayGreentree/80406665736c065f977a52e9921c7703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __tracked = 0; | |
nwindow["trackVisitorCount"] = function(count) { | |
__tracked = 1; | |
$(".close - reveal - modal").click(); | |
ga(" send ", " event ", " Online Service ", " viewer ", count.toString()); | |
var $img = $( < img > ); | |
$img.attr(" style ", " display: none; "); | |
$img.attr(" src ", \" http: //my.thursdaychurch.org/WebHooks/OnlineCampusAttendance.ashx?count=" + count.toString()); $img.appendTo("body"); | |
}; | |
nsetTimeout(function() { | |
$(".reveal-modal").on("closed", function () { | |
if (!__tracked) { | |
trackVisitorCount(0); | |
} | |
}); | |
}, 0); | |
","title":"js","once":false},{"id":1301,"type":"entrance_url","trigger_value":"","action":"wysiwyg_modal","action_value":"<p><strong>How many people are in the room with you?</strong></p><p class=\"vc-buttons\"></p><p align=\"center\"><button onclick=\"trackVisitorCount(1)\">Just Me></button><button onclick=\"trackVisitorCount(2)\">2</button\><button onclick=\"trackVisitorCount(3)\">3</button><button onclick=\"trackVisitorCount(4)\">4</button><button onclick=\"trackVisitorCount(5)\">5</button><button onclick=\"trackVisitorCount(6)\">6-9</button><button onclick=\"trackVisitorCount(10)\">10+</button\></p\>","title":"ASK attendance","once":false}], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment