The Scripts card allows you to add tracking pixels and custom JavaScript to your links for enhanced tracking and additional functionality.
Adding Scripts
Toggle on the Scripts card to add custom code to your links. This feature enables you to:
Add tracking pixels for marketing platforms
Include custom JavaScript for additional functionality
Insert analytics code to track detailed user behavior
Add third-party integrations and tools
Script Requirements
Each script should be:
Written in standard JavaScript
Added using the script tags (
<script></script>
)Formatted with monospace font for readability
<script>
// Your custom JavaScript here
console.log("Script loaded successfully");
// Example tracking pixel
!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', 'YOUR-PIXEL-ID-HERE'); fbq('track', 'PageView');
</script>
Managing Multiple Scripts
Add one script per card
To add multiple scripts, click "Add another script" to create additional script cards
Remove individual scripts by clicking the X next to the script card
Scripts are executed when customers load your link page. Make sure to test them thoroughly before deploying to ensure they work correctly and don't affect page performance.
Best Practices
Test thoroughly: Always test your scripts in a controlled environment before going live
Performance matters: Keep scripts minimal and efficient to avoid slowing down page load times
Clean up regularly: Remove unused scripts to maintain optimal performance
Proper formatting: Maintain clean code formatting for easier troubleshooting
Consider loading time: Be mindful of how many scripts you add and their impact on user experience
Security first: Only use trusted scripts from reputable sources
Troubleshooting Tips
If your scripts aren't working as expected:
Check for JavaScript errors in your browser's developer console
Verify that the script tags are properly formatted
Ensure your script is compatible with modern browsers
Test your script on multiple devices and browsers
Check that there are no conflicts with other scripts on the page