First-party retargeting: audiences (automatic 'My visitors' fed by pages + zones, custom pixel audiences via /p.js + /p.gif, ls.vid cookie + 24 h soft key), include/exclude audience targeting on banner/text/login campaigns, zone tag sends credentials with CORS echo, audience-targeted campaigns never syndicate, Audiences panel on Zones and selector on Ads
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
/* LinkSpin audience pixel. One line on any page you control:
|
||||
<script async src="https://linkspin.app/p.js" data-aud="la-xxxxxx"></script>
|
||||
Adds the visitor to that audience for 30 days so your LinkSpin campaigns can target (or exclude) them. Optional
|
||||
data-ev="lead" names the event. It stores a random visitor id cookie on linkspin.app and nothing else. */
|
||||
(function () {
|
||||
var s = document.currentScript; if (!s) return;
|
||||
var a = s.getAttribute('data-aud') || ''; if (!/^la-[a-f0-9]{6}$/.test(a)) return;
|
||||
var base = (s.src || '').replace(/\/p\.js.*$/, '');
|
||||
var e = s.getAttribute('data-ev') || '';
|
||||
var q = 'a=' + encodeURIComponent(a) + (e ? '&e=' + encodeURIComponent(e.slice(0, 24)) : '')
|
||||
+ '&u=' + encodeURIComponent(String(location.href).slice(0, 300)) + '&r=' + encodeURIComponent(String(document.referrer).slice(0, 200)) + '&t=' + Date.now();
|
||||
var img = new Image(1, 1); img.alt = ''; img.referrerPolicy = 'strict-origin-when-cross-origin'; img.src = base + '/p.gif?' + q;
|
||||
})();
|
||||
Reference in New Issue
Block a user