PopNx.to Help Center · English · ไทย · 한국어 · 日本語 · 中文 · Español · Deutsch
Connect ad tags (Integrations) and the cookie consent bar
Add the Pixel or tag of an ad platform at the label level for retargeting and to measure campaigns. Every tag loads only after the fan presses Accept on the cookie consent bar (PDPA).
What is supported
Set this up in Settings › Integrations. The settings are at the label level, so they apply to every published link. Only an Owner can add, change or remove tags.
- Meta Pixel
- Google tag: you can enter a GA4 or Google Ads (
AW-xxx) ID, and for Google Ads you can also add a conversion label. - Google Tag Manager
- TikTok Pixel
- Snap Pixel
- X (Twitter) Pixel
- Reddit Pixel
- Spotify Pixel: enter the pixel key from Spotify Ads Manager › Events. It measures Spotify ads only for campaigns created after the pixel was added. When a fan taps a service button, it sends a Lead event.
- Apple Music affiliate token (Apple Performance Partners): this is not a pixel and does not wait for the fan to accept cookies. The system automatically adds
at=(the label's token) andct=(the name of the link the fan opened, such assong-tk) to every Apple Music and iTunes button. You can see opens, sign-ups and purchases by channel in Apple's Partnerize.
You can turn each one on or off separately. The system checks the ID format before accepting it. If you paste the wrong format, it is not added.
Enter only the ID. Never put an access token, API key or ad account password in any PopNx.to field.
Steps
- Ask the person who manages the label's ad accounts for the ID. For example, for Meta it is in Events Manager, for GA4 in Data streams, and for TikTok in Ads Manager > Events.
- Go to Settings › Integrations. Choose the platform in Add tag, paste the ID, then press Add integration. Each tag starts switched on.
- Open one published link page on a phone.
- Press Accept on the cookie bar, then check in the platform's test tool, such as Meta's Test events or GA4's DebugView, that the event arrived.
- Open the page again in a private window and press Decline. Then check that the platform did not get the event.
Turn tags off for certain links
If there is a link where you do not want ad tags, turn off Use the label's tags on this link on that link's Advanced › Integrations page. Editors can do this too.
Events sent to platforms
When a fan taps a service button, the system sends a Clickthrough event with the name of the service they tapped.
| Platform | Event name |
|---|---|
| Meta | trackCustom named Clickthrough |
| GA4 | clickthrough |
| Google Tag Manager | dataLayer event clickthrough |
| TikTok | ClickButton |
Use these names when you create a Custom conversion or an audience on the ad platform, such as an audience of "people who went on to listen".
How the cookie consent bar works
- When the label has ad tags on, fans who open the link page see a bar where they choose Accept or Decline. Without tags, there is no bar.
- Before the fan chooses, or if the fan declines, no ad tag is loaded.
- At the bottom of a link page with tags there is a Cookie settings link, so fans can change their mind later.
- The service buttons work as normal, whatever the fan chooses.
- PopNx.to's own numbers still count every visit, because they use no cookies and store no IP addresses (see 09).
Why audiences are smaller than visits
This is normal, for these reasons
- Some fans decline cookies.
- Browsers or ad blockers remove the tags.
- Platforms can only match people who are logged in to their app in the same browser. For example, people who open the link in TikTok's browser may not be counted in a Meta audience.
- One person opening the page several times counts as several visits, but joins an audience only once.
Tips
- Keep using one set of label Pixels, so audiences build up across releases.
- If you need an audience for a single song, filter by URLs that contain that song's link name on the ad platform.
- When you stop using a platform, turn off or delete its ID. Do not leave unmanaged tags behind.
Sending from the server (Conversions API)
Browser pixels are often blocked, such as on iPhones with tracking turned off or when fans use an ad blocker. So PopNx.to also sends the same events from our server to Meta (Conversions API) and TikTok (Events API).
- It sends only for fans who pressed Accept for cookies on that page.
- Every event uses the same ID as the pixel, so the platform counts it once, not twice.
- What is sent: the event type, the link page, the service tapped, and the fan's IP address and browser type (passed straight to the platform; PopNx.to does not keep them).
- Meta gets both visits (PageView) and taps (Clickthrough). TikTok gets taps (ClickButton).
How to turn it on: done once. The ad account owner makes the token, and it is entered on the PopNx.to server as a Worker secret.
- Meta: open Events Manager › the label's Pixel › Settings › Conversions API › Generate access token
- TikTok: open Events Manager › the label's Pixel › Settings › Generate Access Token
- Enter the token as a Worker secret (never paste it in a web page or a chat).
npx wrangler secret put META_CAPI_TOKENnpx wrangler secret put TIKTOK_EVENTS_TOKENOnce it is entered, the Integrations page shows it as on. Check the result in each platform's Events Manager › Test events.