mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-30 18:10:28 +08:00
add affiliate tracking script
This commit is contained in:
+8
-1
@@ -60,7 +60,14 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
<Script
|
||||
id="shadcraft"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `window.lemonSqueezyAffiliateConfig = { store: "shadcraft" };`,
|
||||
__html: `
|
||||
window.lemonSqueezyAffiliateConfig = {
|
||||
store: 'mystore', // Replace with your store's subdomain
|
||||
trackOnLoad: false,
|
||||
onReady: function(e) {
|
||||
e.Track('6NjlYZ');
|
||||
}
|
||||
}`,
|
||||
}}
|
||||
/>
|
||||
<Script id="affiliate" src="https://lmsqueezy.com/affiliate.js" defer />
|
||||
|
||||
Reference in New Issue
Block a user