{"id":25395,"date":"2025-11-30T19:59:42","date_gmt":"2025-11-30T19:59:42","guid":{"rendered":"https:\/\/wpulike.com\/?p=25395"},"modified":"2026-06-11T11:49:09","modified_gmt":"2026-06-11T09:49:09","slug":"track-wp-ulike-engagement-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/","title":{"rendered":"Track WP ULike with Google Tag Manager (GA4 Guide)"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Your WP ULike stats live in WordPress. But your funnels, audiences, and GA4 reports need those clicks too.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you use <strong>WP ULike<\/strong>, you already get a solid <a href=\"https:\/\/wpulike.com\/blog\/wp-ulike-pro-statistics\/\">Statistics Panel<\/a> inside WordPress. Trends, filters, comparisons \u2014 it&#8217;s all there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But sometimes you also need like and unlike events inside <strong>Google Analytics 4<\/strong>. That&#8217;s where <strong>Google Tag Manager (GTM)<\/strong> comes in. With a small script and a few tags, you can send every WP ULike click to GA4 as a clean event.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a step-by-step guide you can copy and set up in about 15 minutes. No plugin changes required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you will track<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WP ULike fires a JavaScript event called <code>WordPressUlikeUpdated<\/code> every time a user likes or unlikes content. That event is your hook for GTM tracking.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our script reads the button state and pushes these values to the data layer:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>action<\/strong> \u2014 like, unlike, dislike, or undislike<\/li>\n\n\n\n<li><strong>content ID<\/strong> \u2014 the post, comment, or item ID<\/li>\n\n\n\n<li><strong>content type<\/strong> \u2014 post, comment, activity, topic, etc.<\/li>\n\n\n\n<li><strong>counter<\/strong> \u2014 the updated count shown on the button<\/li>\n\n\n\n<li><strong>timestamp<\/strong> \u2014 when the action happened<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">From there, GTM sends a GA4 event called <code>wp_ulike_engagement<\/code> with those parameters attached.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before you start<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure you already have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WP ULike or WP ULike Pro installed and working on the front end<\/li>\n\n\n\n<li>Google Tag Manager installed on your site<\/li>\n\n\n\n<li>A GA4 property connected to GTM<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Also, publish your GTM container after each step below. Otherwise Preview mode works but live tracking won&#8217;t.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Add the data layer script in GTM<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Google Tag Manager, create a new tag:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tag type: <strong>Custom HTML<\/strong><\/li>\n\n\n\n<li>Trigger: <strong>All Pages<\/strong><\/li>\n\n\n\n<li>Name it something like <strong>WP ULike \u2013 Data Layer Listener<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then paste this script into the HTML field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(function() {\n  document.addEventListener('WordpressUlikeUpdated', function(event) {\n    const ulikeElement = event.detail;\n\n    if (!ulikeElement) return;\n\n    const button = ulikeElement.querySelector('.wp_ulike_btn');\n    const counter = ulikeElement.querySelector('.count-box');\n    const generalElement = ulikeElement.querySelector('.wp_ulike_general_class');\n\n    if (!generalElement || !button) return;\n\n    const factor = button.getAttribute('data-ulike-factor') || 'up';\n    const isDownvote = factor === 'down';\n    let actionType;\n\n    if (generalElement.classList.contains('wp_ulike_is_liked')) {\n      actionType = isDownvote ? 'dislike' : 'like';\n    } else if (generalElement.classList.contains('wp_ulike_is_unliked')) {\n      actionType = isDownvote ? 'undislike' : 'unlike';\n    } else {\n      actionType = 'unknown';\n    }\n\n    const contentId = button.getAttribute('data-ulike-id');\n    const contentType = button.getAttribute('data-ulike-type');\n    const counterValue = counter ? counter.textContent.trim() : null;\n\n    window.dataLayer = window.dataLayer || [];\n    window.dataLayer.push({\n      event: 'wp_ulike_engagement',\n      wp_ulike_action: actionType,\n      wp_ulike_content_id: contentId,\n      wp_ulike_content_type: contentType,\n      wp_ulike_counter: counterValue,\n      wp_ulike_timestamp: new Date().toISOString()\n    });\n  });\n})();<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This script listens for WP ULike clicks and pushes a <code>wp_ulike_engagement<\/code> event into the data layer. That&#8217;s the event GTM will pick up next.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Create data layer variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next, go to <strong>Variables \u2192 New<\/strong> in GTM and create four <strong>Data Layer Variable<\/strong> entries:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>wp_ulike_action<\/strong> \u2192 Data Layer Variable Name: <code>wp_ulike_action<\/code><\/li>\n\n\n\n<li><strong>wp_ulike_content_id<\/strong> \u2192 Data Layer Variable Name: <code>wp_ulike_content_id<\/code><\/li>\n\n\n\n<li><strong>wp_ulike_content_type<\/strong> \u2192 Data Layer Variable Name: <code>wp_ulike_content_type<\/code><\/li>\n\n\n\n<li><strong>wp_ulike_counter<\/strong> \u2192 Data Layer Variable Name: <code>wp_ulike_counter<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These variables let your GA4 tag read the values our script sends.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create the GTM trigger<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now create the trigger that fires when our data layer event runs:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Triggers \u2192 New<\/strong><\/li>\n\n\n\n<li>Trigger type: <strong>Custom Event<\/strong><\/li>\n\n\n\n<li>Event name: <code>wp_ulike_engagement<\/code><\/li>\n\n\n\n<li>Save as <strong>WP ULike \u2013 Engagement Event<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> use <code>wp_ulike_engagement<\/code> here, not <code>WordPressUlikeUpdated<\/code>. The DOM event is handled by our script. GTM listens for the data layer push.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Send the event to GA4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new <strong>Google Analytics: GA4 Event<\/strong> tag:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Event name: <code>wp_ulike_engagement<\/code><\/li>\n\n\n\n<li>Event parameters:\n<ul class=\"wp-block-list\">\n<li><code>action<\/code> \u2192 {{wp_ulike_action}}<\/li>\n\n\n\n<li><code>content_id<\/code> \u2192 {{wp_ulike_content_id}}<\/li>\n\n\n\n<li><code>content_type<\/code> \u2192 {{wp_ulike_content_type}}<\/li>\n\n\n\n<li><code>counter<\/code> \u2192 {{wp_ulike_counter}}<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Trigger: <strong>WP ULike \u2013 Engagement Event<\/strong><\/li>\n\n\n\n<li>Save and publish your container<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Test everything<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open GTM <strong>Preview<\/strong> mode and load a page with WP ULike buttons. Then:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click a like or unlike button on the page<\/li>\n\n\n\n<li>In Tag Assistant, confirm the Custom HTML tag fired on page load<\/li>\n\n\n\n<li>After clicking, look for the <code>wp_ulike_engagement<\/code> event in the data layer<\/li>\n\n\n\n<li>Confirm your GA4 Event tag fired on that trigger<\/li>\n\n\n\n<li>Check GA4 <strong>Realtime<\/strong> for the <code>wp_ulike_engagement<\/code> event<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If all five checks pass, your tracking is live.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress stats vs GA4 tracking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You don&#8217;t have to pick one or the other. WP ULike&#8217;s built-in stats are great for quick content insights inside WordPress. GA4 tracking is better when you want funnels, custom audiences, behavior flows, or reports alongside your other site events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Together, they give you a full picture: native engagement data in WP ULike, plus the same actions inside your analytics stack.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Need help with the stats panel itself? Read our <a href=\"https:\/\/wpulike.com\/blog\/revamped-analytics-dashboard\/\">analytics dashboard guide<\/a>. Stuck on setup? Reach out via <a href=\"https:\/\/wpulike.com\/support\/\">Support<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Frequently asked questions<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">What event does WP ULike fire for Google Tag Manager?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">WP ULike fires a DOM event called <code>WordPressUlikeUpdated<\/code> when a vote finishes. For GTM, our script converts that into a data layer event named <code>wp_ulike_engagement<\/code>, which is what your GA4 tag should listen for.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Do I need WP ULike Pro for GTM tracking?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">No. The <code>WordPressUlikeUpdated<\/code> event fires on both the free and Pro plugins. GTM tracking works the same way on either.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Why isn&#8217;t my GTM trigger firing?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The most common mistake is using <code>WordPressUlikeUpdated<\/code> as the GTM Custom Event name. GTM can&#8217;t hear DOM events directly. Use <code>wp_ulike_engagement<\/code> as the trigger instead, after the Custom HTML script pushes it to the data layer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Can I track dislikes too?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. The script sends <code>like<\/code>, <code>unlike<\/code>, <code>dislike<\/code>, or <code>undislike<\/code> in the action parameter, depending on your button type and the user&#8217;s click.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Does this work with GA4 only?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This guide targets GA4 through GTM. If you still use Universal Analytics, you can adapt the same data layer variables to a UA event tag, but GA4 is the recommended setup today.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Your WP ULike stats live in WordPress. But your funnels, audiences, and GA4 reports need those clicks too. If you use WP ULike, you already get a solid Statistics Panel inside WordPress. Trends, filters, comparisons \u2014 it&#8217;s all there. But sometimes you also need like and unlike events inside Google Analytics 4. That&#8217;s where Google [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":25400,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-25395","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike<\/title>\n<meta name=\"description\" content=\"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike\" \/>\n<meta property=\"og:description\" content=\"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"WP ULike\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpulike\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-30T19:59:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-11T09:49:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alimir\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpulike\" \/>\n<meta name=\"twitter:site\" content=\"@wpulike\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alimir\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/\"},\"author\":{\"name\":\"Alimir\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/person\\\/775669fad322a2d0abd7b90b0a13a343\"},\"headline\":\"Track WP ULike with Google Tag Manager (GA4 Guide)\",\"datePublished\":\"2025-11-30T19:59:42+00:00\",\"dateModified\":\"2026-06-11T09:49:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/\"},\"wordCount\":801,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/gtm.png\",\"articleSection\":[\"Articles\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/\",\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/\",\"name\":\"Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/gtm.png\",\"datePublished\":\"2025-11-30T19:59:42+00:00\",\"dateModified\":\"2026-06-11T09:49:09+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/person\\\/775669fad322a2d0abd7b90b0a13a343\"},\"description\":\"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/gtm.png\",\"contentUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/gtm.png\",\"width\":800,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/track-wp-ulike-engagement-with-google-tag-manager\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpulike.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Track WP ULike with Google Tag Manager (GA4 Guide)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#website\",\"url\":\"https:\\\/\\\/wpulike.com\\\/\",\"name\":\"WP ULike\",\"description\":\"Turn Votes Into Actionable Audience Insight\",\"alternateName\":\"ULike\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpulike.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/person\\\/775669fad322a2d0abd7b90b0a13a343\",\"name\":\"Alimir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"url\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"contentUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"caption\":\"Alimir\"},\"description\":\"I'm an engineer with experience in management, leading teams by example, and I'm very connected to motivational initiatives that help them to innovate.\",\"sameAs\":[\"http:\\\/\\\/wpulike.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike","description":"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike","og_description":"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.","og_url":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/","og_site_name":"WP ULike","article_publisher":"https:\/\/www.facebook.com\/wpulike\/","article_published_time":"2025-11-30T19:59:42+00:00","article_modified_time":"2026-06-11T09:49:09+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png","type":"image\/png"}],"author":"Alimir","twitter_card":"summary_large_image","twitter_creator":"@wpulike","twitter_site":"@wpulike","twitter_misc":{"Written by":"Alimir","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#article","isPartOf":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/"},"author":{"name":"Alimir","@id":"https:\/\/wpulike.com\/#\/schema\/person\/775669fad322a2d0abd7b90b0a13a343"},"headline":"Track WP ULike with Google Tag Manager (GA4 Guide)","datePublished":"2025-11-30T19:59:42+00:00","dateModified":"2026-06-11T09:49:09+00:00","mainEntityOfPage":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/"},"wordCount":801,"commentCount":0,"image":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png","articleSection":["Articles"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/","url":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/","name":"Track WP ULike with Google Tag Manager (GA4 Guide) - WP ULike","isPartOf":{"@id":"https:\/\/wpulike.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#primaryimage"},"image":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png","datePublished":"2025-11-30T19:59:42+00:00","dateModified":"2026-06-11T09:49:09+00:00","author":{"@id":"https:\/\/wpulike.com\/#\/schema\/person\/775669fad322a2d0abd7b90b0a13a343"},"description":"Send WP ULike likes and unlikes to GA4 with Google Tag Manager. Step-by-step GTM setup with copy-paste script and data layer variables.","breadcrumb":{"@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#primaryimage","url":"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png","contentUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2025\/11\/gtm.png","width":800,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/wpulike.com\/blog\/track-wp-ulike-engagement-with-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpulike.com\/"},{"@type":"ListItem","position":2,"name":"Track WP ULike with Google Tag Manager (GA4 Guide)"}]},{"@type":"WebSite","@id":"https:\/\/wpulike.com\/#website","url":"https:\/\/wpulike.com\/","name":"WP ULike","description":"Turn Votes Into Actionable Audience Insight","alternateName":"ULike","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpulike.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpulike.com\/#\/schema\/person\/775669fad322a2d0abd7b90b0a13a343","name":"Alimir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","url":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","contentUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","caption":"Alimir"},"description":"I'm an engineer with experience in management, leading teams by example, and I'm very connected to motivational initiatives that help them to innovate.","sameAs":["http:\/\/wpulike.com"]}]}},"_links":{"self":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/25395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/comments?post=25395"}],"version-history":[{"count":1,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/25395\/revisions"}],"predecessor-version":[{"id":25919,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/25395\/revisions\/25919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/media\/25400"}],"wp:attachment":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/media?parent=25395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/categories?post=25395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/tags?post=25395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}