Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<%@ Master Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<noscript>For full functionality of this page it is necessary to enable JavaScript. </noscript>
<link rel="stylesheet" type="text/css" href="../WBUR/donation-form.css">
<title>WBUR Donation Page</title>
<asp:ContentPlaceHolder id="AllegHead" runat="server">
</asp:ContentPlaceHolder>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-70853-10']);
_gaq.push(['_setDomainName', 'wbur.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body id="masterBody" class="futurecast-skin" style="background-color:#FFFFFF; padding:0; margin:0; text-align:center">
<div style="background-color: #FFFFFF; margin-left:auto; margin-right:auto; width:695px; text-align:center; margin-top:15px">
<div id="top">
<img src="WBUR\wbur_124_k.svg" width="210" height="70" title="Logo" />
</div>
<form id="form1" runat="server">
<asp:ContentPlaceHolder id="AllegMain" runat="server">
</asp:ContentPlaceHolder>
</form>
<script type="text/javascript">
var donationAmount, donationType, transactionId, pageId;
if (document.getElementById("ctl00_AllegMain_PLGAMT")) {
donationAmount = document.getElementById("ctl00_AllegMain_PLGAMT").innerHTML;
}
if (document.getElementById("ctl00_AllegMain_paymentMethod")) {
donationType = document.getElementById("ctl00_AllegMain_paymentMethod").innerHTML.split(' ').join('+');
}
if (document.getElementById("ctl00_AllegMain_TRANID")) {
transactionId = document.getElementById("ctl00_AllegMain_TRANID").innerHTML;
}
if (document.getElementById("pageID")) {
pageId = document.getElementById("pageID").getAttributeNode("value").value;
}
//console.log(donationAmount, donationType, transactionId, pageId);
/* Quantcast tag */
var _qevents = _qevents || [];
(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();
if (donationAmount > 0 && donationType && transactionId && pageId) {
_qevents.push(
{
"qacct":"p-Z4bfNLnN8psjN",
"labels":"_fp.event.Donation Confirmation,_fp.customer."+donationType+",_fp.pcat."+pageId,
"orderid":transactionId,
"revenue":donationAmount,
"event":"refresh"
}
);
}
/* Google Analytics */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67560273-1', 'auto');
if (donationAmount > 0 && donationType) {
ga('send', 'pageview', { 'dimension6': donationAmount,'dimension7': donationType });
}
/* Facebook Pixel Code */
!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','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1723321954577947');
fbq('track', 'PageView');
if (donationAmount > 0 && donationType) {
fbq('track', 'InitiateCheckout');
fbq('track', 'Purchase', {value: donationAmount, type: donationType, currency: 'USD' });
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.