Skip to content

Instantly share code, notes, and snippets.

View bolo181's full-sized avatar

Justin bolo181

View GitHub Profile
JS
<script type="text/javascript">
$(window).on('load',function(){
$('#myModal').modal('show');
});
</script>
HTML
<div class="modal hide fade" id="myModal">
<script type="text/javascript">
analytics.track('Viewed Form Confirmed Appointment Dialog', {
PageId: window.ub.page.id,
PageName: window.ub.page.name,
PageVariant: window.ub.page.variantId,
URL: window.ub.page.url
});
</script>
<style>
html, body, .lp-pom-body {
overflow-x: hidden;
}
</style>
@bolo181
bolo181 / Facebook Custom Event
Last active July 13, 2016 00:25
Facebook Custom Event
<!-- Facebook Custom Event -->
<script>
fbq('trackCustom', '<CustomEventName>', {
custom_param1: 'ABC',
custom_param2: 123,
value: 10.00,
currency: 'USD'
});
</script>
<!-- End Facebook Custom Event -->
@bolo181
bolo181 / typeform pop-up params
Created July 7, 2016 22:54
Add URL params to Typeform pop-up button or text links
<style>
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #64adab;
-webkit-box-shadow:inset 0px 1px 0px 0px #64adab;
box-shadow:inset 0px 1px 0px 0px #64adab;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #4fb0ae), color-stop(1, #4fb0ae));
background:-moz-linear-gradient(top, #4fb0ae 5%, #4fb0ae 100%);
background:-webkit-linear-gradient(top, #4fb0ae 5%, #4fb0ae 100%);
background:-o-linear-gradient(top, #4fb0ae 5%, #4fb0ae 100%);
background:-ms-linear-gradient(top, #4fb0ae 5%, #4fb0ae 100%);
@bolo181
bolo181 / facebook-wca-standard-events.html
Created July 7, 2016 22:36 — forked from danieljwonder/facebook-wca-standard-events.html
Sample Facebook Standard Events for New Facebook WCA (Website Custom Audience) Pixel
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{facebook pixel}}');
fbq('track', 'PageView');
</script>