Skip to content

Commit

Permalink
Update with givebutter and redirect counter
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkao committed Sep 17, 2023
1 parent c46ffe3 commit 765ba16
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
42 changes: 35 additions & 7 deletions buy.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
<html>
<head>
<title>Buy Redirect</title>
<title>Buy AniClover | Oct 7 @ Tamper Room</title>

<meta property="og:url" content ="https://aniclover.com/buy"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="AniClover | Oct 7 @ Tamper Room"/>
<meta property="og:description" content="Anime songs, otaku EDM, & vinyl scratch wizardry feat. dj tom the s.c. from Japan"/>
<meta property="og:image" content="https://aniclover.com/assets/20230719 -AniCLoversary 4 - Digital Flyer.png"/>

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@aniclover"/>
<meta name="twitter:title" content="AniClover | Oct 7 @ Tamper Room"/>
<meta name="twitter:description" content="Anime songs, otaku EDM, & vinyl scratch wizardry feat. dj tom the s.c. from Japan"/>
<meta name="twitter:image" content="https://aniclover.com/assets/20230719 -AniCLoversary 4 - Digital Flyer.png"/>


<script type="text/javascript">
var QUERY_STRING = "utm_campaign=acv2023Oct&utm_source=fbig"
var BASE_URL = "https://aniclover.com"
var BASE_URL = "https://givebutter.com/5SObJN"

var joinChar = '?';
if (window.location.search) {
Expand Down Expand Up @@ -40,16 +53,31 @@
/></noscript>
<!-- End Meta Pixel Code -->

<!-- <meta http-equiv="refresh" content="0; URL=https://aniclover.com?utm_campaign=acv2023Oct&utm_source=fbig" /> -->
<script>
function redirect(count = 0) {
if ((typeof fbq !== 'undefined') && (fbq.version > '2.9')) {
window.location = targetUrl;
} else if (count > 200) {
window.location = targetUrl;
} else {
setTimeout(redirect(count + 1), 10);
}
}

window.addEventListener('load', function() {
dataLayer.push({'event': 'view_main_from_flyer', 'eventCallback': redirect, 'eventTimeout' : 2000})
})

</script>

<!-- <meta http-equiv="refresh" content="0; URL=https://aniclover.com?utm_campaign=acv2023Oct&utm_source=flyer" /> -->
</head>
<body>
<a id="link" href="https://aniclover.com?utm_campaign=acv2023Oct&utm_source=fbig">Click here to continue to buy tickets</a>
<a id="link" href="https://givebutter.com/5SObJN?utm_campaign=acv2023Oct&utm_source=flyer">Click here to continue to buy tickets</a>

<script type="text/javascript">
const link = document.querySelector("#link")
link.setAttribute("href", targetUrl)

window.location = targetUrl;
link.setAttribute("href", targetUrl)
</script>
</body>
</html>
16 changes: 9 additions & 7 deletions tickets.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@


<script type="text/javascript">
var QUERY_STRING = "utm_campaign=acv2023Oct&utm_source=twitter"
var BASE_URL = "https://aniclover.com"
var QUERY_STRING = "utm_campaign=acv2023Oct&utm_source=tw"
var BASE_URL = "https://givebutter.com/5SObJN"

var joinChar = '?';
if (window.location.search) {
Expand Down Expand Up @@ -54,24 +54,26 @@
<!-- End Meta Pixel Code -->

<script>
function redirect() {
function redirect(count = 0) {
if ((typeof fbq !== 'undefined') && (fbq.version > '2.9')) {
window.location = targetUrl;
} else if (count > 200) {
window.location = targetUrl;
} else {
setTimeout(redirect, 10);
setTimeout(redirect(count + 1), 10);
}
}

window.addEventListener('load', function() {
dataLayer.push({'event': 'view_main_from_twitter', 'eventCallback': redirect, 'eventTimeout' : 2000})
dataLayer.push({'event': 'view_main_from_flyer', 'eventCallback': redirect, 'eventTimeout' : 2000})
})

</script>

<!-- <meta http-equiv="refresh" content="0; URL=https://aniclover.com?utm_campaign=acv2023Oct&utm_source=twitter" /> -->
<!-- <meta http-equiv="refresh" content="0; URL=https://aniclover.com?utm_campaign=acv2023Oct&utm_source=flyer" /> -->
</head>
<body>
<a id="link" href="https://aniclover.com?utm_campaign=acv2023Oct&utm_source=twitter">Click here to continue to buy tickets</a>
<a id="link" href="https://givebutter.com/5SObJN?utm_campaign=acv2023Oct&utm_source=flyer">Click here to continue to buy tickets</a>

<script type="text/javascript">
const link = document.querySelector("#link")
Expand Down

0 comments on commit 765ba16

Please sign in to comment.