testing pixel code
This commit is contained in:
parent
b969421dfa
commit
eaee3cf33d
@ -41,15 +41,24 @@
|
|||||||
async function purchasePlan(subscriptionType: string = "") {
|
async function purchasePlan(subscriptionType: string = "") {
|
||||||
if (data?.user) {
|
if (data?.user) {
|
||||||
let subId = "";
|
let subId = "";
|
||||||
|
let value = 0;
|
||||||
if (subscriptionType === "lifeTime") {
|
if (subscriptionType === "lifeTime") {
|
||||||
subId = import.meta.env.VITE_LEMON_SQUEEZY_LIFE_TIME_ACCESS_ID;
|
subId = import.meta.env.VITE_LEMON_SQUEEZY_LIFE_TIME_ACCESS_ID;
|
||||||
|
value = 599;
|
||||||
} else if (mode) {
|
} else if (mode) {
|
||||||
subId = import.meta.env.VITE_LEMON_SQUEEZY_ANNUAL_ID;
|
subId = import.meta.env.VITE_LEMON_SQUEEZY_ANNUAL_ID;
|
||||||
|
value = 59.88;
|
||||||
} else {
|
} else {
|
||||||
subId = import.meta.env.VITE_LEMON_SQUEEZY_MONTHLY_ID;
|
subId = import.meta.env.VITE_LEMON_SQUEEZY_MONTHLY_ID;
|
||||||
|
value = 9.99;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
twq("event", "tw-onuuu-ospg6", {
|
||||||
|
value: value,
|
||||||
|
currency: "USD",
|
||||||
|
conversion_id: data?.user?.id,
|
||||||
|
});
|
||||||
|
|
||||||
const isDarkMode =
|
const isDarkMode =
|
||||||
window.matchMedia &&
|
window.matchMedia &&
|
||||||
window.matchMedia("(prefers-color-scheme: dark)").matches;
|
window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
@ -104,6 +113,24 @@
|
|||||||
window.lemonSqueezyAffiliateConfig = { store: "stocknear" };
|
window.lemonSqueezyAffiliateConfig = { store: "stocknear" };
|
||||||
</script>
|
</script>
|
||||||
<script src="https://lmsqueezy.com/affiliate.js" defer></script>
|
<script src="https://lmsqueezy.com/affiliate.js" defer></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
!(function (e, t, n, s, u, a) {
|
||||||
|
e.twq ||
|
||||||
|
((s = e.twq =
|
||||||
|
function () {
|
||||||
|
s.exe ? s.exe.apply(s, arguments) : s.queue.push(arguments);
|
||||||
|
}),
|
||||||
|
(s.version = "1.1"),
|
||||||
|
(s.queue = []),
|
||||||
|
(u = t.createElement(n)),
|
||||||
|
(u.async = !0),
|
||||||
|
(u.src = "https://static.ads-twitter.com/uwt.js"),
|
||||||
|
(a = t.getElementsByTagName(n)[0]),
|
||||||
|
a.parentNode.insertBefore(u, a));
|
||||||
|
})(window, document, "script");
|
||||||
|
twq("config", "onuuu");
|
||||||
|
</script>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user