Tracking & referrals
Remarketing pixels
When UGCBloom boosts your creators' posts, the snippet you already have can also load UGCBloom's own ad pixels on your site. Visitors who accept marketing cookies join an audience in our ad account, so we can show your boosted posts again to people who already visited. The pixels stay off until the visitor grants marketing or ads consent.
Install
Use the tag you already have for referral tracking. Do not add a second script. Copy it from Settings → Integrations → Tracking pixel and place it on every page, including landing pages. In Google Tag Manager, use a Custom HTML tag; the org id is in the script address so it survives GTM stripping attributes.
<script src="https://ugcbloom.com/api/script.js?org=org_your_org_id" defer></script>
There is nothing else to set up on your side. Our team switches the pixels on for your site, and the same settings card then shows which ones load and when the snippet was last seen.
What loads
- Meta: a pixel UGCBloom made for your brand alone. Your visitors never share an audience with another brand's.
- TikTok and Google: only once we run TikTok, Google or YouTube ads for you.
Each pixel fires a page view on UGCBloom's pixel only, so a pixel you run yourself does not count a page view twice. Sign-up, purchase and server-side conversions are not sent by this snippet.
If you run your own Meta, TikTok or Google tags too
fbq('track', ...), ttq.track(...), and gtag('event', ...) without a send_to. So your own sign-up or purchase events can reach UGCBloom's pixels. We use them only to measure and target the ads we run for you.Consent
The script loads no advertising tag until it can read a grant for marketing or ads. It understands:
- Google Consent Mode v2.
ad_storage,ad_user_dataandad_personalizationmust all begranted. It reads the dataLayer consent commands andgoogle_tag_data. - IAB TCF v2.2 via
__tcfapi. Purposes 1 (store and access), 3 (create an ads profile) and 4 (select personalised ads) must all be consented. A CMP that reportsgdprApplies: falseis not treated as a grant, and it does not block the referral cookie. - Cookiebot:
Cookiebot.consent.marketing. - OneTrust: the default Targeting group
C0004inOnetrustActiveGroups. A banner without aC0004category is not read; Consent Mode or TCF on the same page still counts. - CookieYes:
getCkyConsent().categories.advertisement.
If more than one of these is present, every one of them has to grant. A Consent Mode update always beats a default. A default that denies consent in some regions counts as a denial until your banner sends an update, because the snippet cannot tell where the visitor is. The script listens for consent changes and loads the tags without a reload once they grant.
The snippet never changes your consent settings. It reads them, and the decision is yours. If a visitor withdraws consent, our pixels do not load from their next page on; a page already open keeps what it loaded until it is left.
No signal, no pixels
The referral cookie (ugcbloom_ref) is separate. When one of those signals denies marketing consent, the cookie is not written, and neither page_view nor window.UGCBloom.fire events are sent; a later denial clears a cookie this page already set. When no signal is found, or a signal cannot say (such as Consent Mode that sets only ad_storage), the cookie is still set, so creator referrals keep being attributed.
What you need to do
- Name UGCBloom, and each platform the settings card says loads (Meta, TikTok, Google), in your privacy policy and cookie banner, under marketing or advertising cookies.
- Have a data processing agreement with UGCBloom in place before the pixels go live. Ask your UGCBloom contact for it.
- Use a cookie banner the snippet can read (above). No advertising tag fires before opt-in in the EU and UK. The snippet stores no personal data of its own beyond the hostname of the install check and the referral cookie described above.
If your site has a content security policy, allow the tag hosts: connect.facebook.net, www.googletagmanager.com and analytics.tiktok.com.
Confirm it is live
The snippet pings UGCBloom when it loads, at most once every few minutes per browser. Settings → Integrations → Tracking pixel shows Installed: last seen <time> on <domain>. A page view that has not been granted consent still counts as installed. Our team also sees when a pixel last actually loaded, which needs a visitor who accepted marketing cookies.
/api/script-configPublic pixel configuration
const response = await fetch( "https://ugcbloom.com/api/script-config?org=org_your_org_id" ); const data = await response.json();
›Example response
{
"meta": "123456789012345",
"google": "AW-1234567890"
}/api/script-pingInstall beacon
const response = await fetch(
"https://ugcbloom.com/api/script-ping", {
method: "POST",
headers: {
"Content-Type": "text/plain"
},
body: "{\"org\":\"org_your_org_id\",\"domain\":\"brand.example\",\"pixels\":[\"meta\",\"google\"]}"
}
);
const data = await response.json();