{"id":415983,"date":"2024-12-19T08:00:00","date_gmt":"2024-12-19T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/unipixel\/"},"modified":"2025-10-26T20:23:00","modified_gmt":"2025-10-26T20:23:00","slug":"unipixel","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/unipixel\/","title":{"rendered":"UniPixel: Server-side Event Tracking &#038; Consent for Google &#038; Meta"},"content":{"rendered":"<p>UniPixel brings next-level event tracking to WordPress with full client- and server-side support for Meta, Google, and TikTok.<br \/>\nIt solves the growing gaps caused by browser restrictions, ad blockers, and cookie limits \u2014 ensuring your conversion data stays accurate, complete, and privacy-safe.<\/p>\n<h3>Key Features<\/h3>\n<ul>\n<li>Fine-tuned control over client-side and server-side event sending for every platform.  <\/li>\n<li>Works with <strong>Meta Conversion API<\/strong> and <strong>Google Server-Side Tagging<\/strong>.  <\/li>\n<li>Tracks standard WooCommerce events (ViewContent, AddToCart, InitiateCheckout, Purchase) with full order and product data.  <\/li>\n<li>Create and manage your own <strong>custom events<\/strong> for clicks, views, and interactions.  <\/li>\n<li>Automatic <strong>deduplication<\/strong> keeps matching client\/server events counted only once.  <\/li>\n<li>Built-in <strong>consent banner<\/strong> integrates with your site\u2019s privacy framework to control when events are allowed to send.  <\/li>\n<li>Live event viewer for testing, plus optional database logging for full event history.  <\/li>\n<li>Simple setup with clear layouts, recommended defaults, and inline help.<\/li>\n<\/ul>\n<h3>Why Use UniPixel<\/h3>\n<p>Modern tracking needs more than browser pixels.<br \/>\nUniPixel sends verified conversion events directly from your own server to Meta and Google \u2014 keeping data flowing even when scripts or cookies are blocked.<br \/>\nClient-side tracking still runs for richer, contextual insights, while server-side delivery ensures reliability and compliance.<br \/>\nEverything is managed inside WordPress, giving you transparent control over how events send, when consent applies, and how data is logged.<\/p>\n<p>The result: more complete measurement, better ad platform optimisation, and a future-proof tracking setup for your store or website.<\/p>\n<h3>Setup<\/h3>\n<h4>How do I configure Meta (Facebook) Conversion API tracking?<\/h4>\n<p>To enable Meta (Facebook) Conversion API tracking, you need:<br \/>\n\u2013 Facebook Pixel ID<br \/>\n\u2013 Access Token<\/p>\n<h3>Getting Your Facebook Pixel ID<\/h3>\n<ol>\n<li>Log in to Facebook Business Manager: https:\/\/business.facebook.com\/<\/li>\n<li>Go to <strong>Events Manager<\/strong>.<\/li>\n<li>Select your Pixel.<\/li>\n<li>Copy the <strong>Pixel ID<\/strong> from the top-right corner.<\/li>\n<\/ol>\n<h3>Generating an Access Token<\/h3>\n<ol>\n<li>Go to <strong>Business Settings<\/strong> in Facebook Business Manager.<\/li>\n<li>Navigate to <strong>System Users<\/strong> and click <strong>Add System User<\/strong>.<\/li>\n<li>Assign Admin permissions and select your Business Account.<\/li>\n<li>In the <strong>Permissions<\/strong> tab, ensure access to \u201cManage Ads\u201d.<\/li>\n<li>Click <strong>Generate Access Token<\/strong>.<\/li>\n<li>Copy and save the token securely.<\/li>\n<\/ol>\n<p>Enter these details in <strong>WordPress Admin > UniPixel Settings > Meta<\/strong>.<\/p>\n<h4>How do I configure Google Server-Side Tracking?<\/h4>\n<p>To enable Google Analytics (GA4) and Google Ads server-side tracking, you need:<br \/>\n\u2013 GA4 Measurement ID<br \/>\n\u2013 Google Tag Manager (GTM) Container ID (if using GTM)<br \/>\n\u2013 Google API Secret<\/p>\n<h3>Getting Your GA4 Measurement ID<\/h3>\n<ol>\n<li>Log in to Google Analytics: https:\/\/analytics.google.com\/<\/li>\n<li>Click <strong>Admin > Data Streams<\/strong>.<\/li>\n<li>Select your website data stream.<\/li>\n<li>Copy the <strong>Measurement ID<\/strong> (format: G-XXXXXXXXXX).<\/li>\n<\/ol>\n<h3>Getting Your Google Tag Manager (GTM) Container ID<\/h3>\n<ol>\n<li>Log in to Google Tag Manager: https:\/\/tagmanager.google.com\/<\/li>\n<li>Select your container.<\/li>\n<li>Copy the <strong>Container ID<\/strong> (format: GTM-XXXXXX).<\/li>\n<\/ol>\n<h3>Getting Your Google API Secret<\/h3>\n<ol>\n<li>Go to <strong>Google Analytics Admin<\/strong>.<\/li>\n<li>Under <strong>Data Streams<\/strong>, select your website stream.<\/li>\n<li>Scroll down to <strong>Measurement Protocol API Secret<\/strong>.<\/li>\n<li>Click <strong>Create<\/strong>, name it (e.g., \u201cServer-Side Tracking\u201d), and copy the API Secret.<\/li>\n<\/ol>\n<p>Enter these details in <strong>WordPress Admin > UniPixel Settings > Google<\/strong>.<\/p>\n<h4>What if I already have Meta or Google tracking installed?<\/h4>\n<p>If your site already includes tracking via another plugin or manually, select <strong>\u201cPixel Already Included\u201d<\/strong> in UniPixel settings. This prevents duplicate tracking scripts but still allows UniPixel to send custom events.<\/p>\n<h4>How does server-side event tracking work?<\/h4>\n<p>UniPixel supports both client-side and server-side event tracking:<br \/>\n\u2013 <strong>Client-side events<\/strong> are sent directly from the browser.<br \/>\n\u2013 <strong>Server-side events<\/strong> use API calls to prevent ad blockers from blocking conversions.<\/p>\n<p>To enable server-side tracking for Meta, enter your <strong>Access Token<\/strong>.<br \/>\nFor Google, enter your <strong>API Secret<\/strong>.<\/p>\n<h4>How does UniPixel prevent duplicate events?<\/h4>\n<p>UniPixel uses <strong>event deduplication<\/strong> by assigning a unique event ID to each event. This ensures that events sent via both client-side and server-side are not counted twice.<\/p>\n<h3>Tips<\/h3>\n<h4>Deduplication<\/h4>\n<p>To ensure events tracked by both the Facebook Pixel and the Conversion API are not counted twice, use deduplication. This involves sending an event ID with each event tracked by the pixel and the API. Facebook uses this ID to identify and merge identical events, providing accurate tracking and reporting. Configure this in your Facebook Business Manager settings under Events Manager.<\/p>\n<h3>Privacy and 3rd Party Services<\/h3>\n<p>This plugin uses external services provided by Meta (Facebook) and Google to track and log user events for analytics and advertising purposes. The plugin interacts with the following services:<\/p>\n<ul>\n<li><strong>Meta (Facebook) Pixel<\/strong>: Sends user event data (e.g., PageView, Purchase) to Facebook for tracking purposes.<\/li>\n<li><strong>Meta\u2019s Graph API<\/strong>: Sends user event data server-side for tracking and logging purposes.<\/li>\n<li><strong>Google Analytics<\/strong>: Sends user event data to Google for analytics and tracking via the Measurement Protocol and Google Tag Manager.<\/li>\n<\/ul>\n<h3>Domains<\/h3>\n<p>This plugin communicates with the following domains:<br \/>\n\u2013 <strong>Meta (Facebook)<\/strong>:<br \/>\n  \u2013 https:\/\/www.facebook.com<br \/>\n  \u2013 https:\/\/graph.facebook.com<br \/>\n\u2013 <strong>Google<\/strong>:<br \/>\n  \u2013 https:\/\/www.google-analytics.com<br \/>\n  \u2013 https:\/\/www.googletagmanager.com<br \/>\n\u2013 <strong>Buildio<\/strong>:<br \/>\n  \u2013 https:\/\/buildio.dev<\/p>\n<h3>Data Sent<\/h3>\n<p>Data sent to these domains may include:<br \/>\n\u2013 User interactions (e.g., clicks, page views, purchases)<br \/>\n\u2013 IP address and user agent (collected by tracking mechanisms)<br \/>\n\u2013 Custom event data such as purchase amount, currency, and transaction ID (depending on how the plugin is configured)<br \/>\n\u2013 Diagnostic information may be sent to Buildio to assist with plugin performance and bug fixes, including site url, ip address and basic interactions. No sensitive information or keys are sent.<\/p>\n<h3>Privacy and Terms<\/h3>\n<p>For more details on Meta\u2019s and Google\u2019s privacy policies and terms of use, please visit the following links:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.facebook.com\/about\/privacy\" rel=\"nofollow ugc\">Meta (Facebook) Privacy Policy<\/a><\/li>\n<li><a href=\"https:\/\/www.facebook.com\/terms.php\" rel=\"nofollow ugc\">Meta (Facebook) Terms of Service<\/a><\/li>\n<li><a href=\"https:\/\/policies.google.com\/privacy\" rel=\"nofollow ugc\">Google Privacy Policy<\/a><\/li>\n<li><a href=\"https:\/\/policies.google.com\/terms\" rel=\"nofollow ugc\">Google Terms of Service<\/a><\/li>\n<li><a href=\"https:\/\/buildio.dev\/privacy\" rel=\"nofollow ugc\">Buildio Privacy Policy<\/a><\/li>\n<\/ul>\n<h3>License<\/h3>\n<p>This plugin is licensed under the GPLv2 or later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Server-side event tracking for Meta Pixel (Facebook Conversions API) and Google Analytics, for accurate measurment. Includes custom events and consent \u2026<\/p>\n","protected":false},"author":65,"featured_media":433276,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"UniPixel: Server-side Event Tracking & Consent for Google & Meta - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Server-side event tracking for Meta Pixel (Facebook Conversions API) and Google Analytics, for accurate measurment. Includes custom events and consent \u2026"},"footnotes":""},"categories":[1],"tags":[14463,39907,14594,506,18694],"class_list":["post-415983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-conversion-tracking","tag-custom-events","tag-facebook-conversion-api","tag-google-analytics","tag-meta-pixel"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/415983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=415983"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/415983\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/433276"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=415983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=415983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=415983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}