{"id":176534,"date":"2025-04-08T01:30:28","date_gmt":"2025-04-08T01:30:28","guid":{"rendered":"https:\/\/accountants4yourbusiness.co.uk\/analytics\/google-tag-manager-track-social-interactions\/"},"modified":"2025-04-08T01:30:28","modified_gmt":"2025-04-08T01:30:28","slug":"google-tag-manager-track-social-interactions","status":"publish","type":"post","link":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534","title":{"rendered":"Google Tag Manager: Track Social Interactions"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>(Last updated June 2014) <a href=\"https:\/\/www.google.com\/analytics\">Google Analytics<\/a> provides us with a nifty way of <a href=\"http:\/\/www.seotakeaways.com\/social-interactions-tracking-through-google-analytics\/\">tracking social interactions<\/a>. With a simple plugin, you can track how many +1s and Likes your pages accumulate.<\/p>\n<p>This guide shows you how to activate social interaction tagging with Google Tag Manager and Universal Analytics. The instructions are for Facebook Likes, Google+ +1s (now deprecated since <strong>Google Analytics tracks +1s automatically<\/strong>), Twitter Tweets and Pinterest Pins.<\/p>\n<p>Note that if you use a third-party API (e.g. <a href=\"http:\/\/www.addthis.com\">AddThis<\/a>) these tricks probably won\u2019t work. You\u2019ll need to use the API functions themselves to enable tracking.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"setting-up-social-interaction-macros\">Setting up social interaction macros<\/h2>\n<p>Well, first of all, you\u2019ll need a bunch of <a href=\"https:\/\/www.simoahava.com\/analytics\/macro-guide-google-tag-manager\/\">macros<\/a> to collect the data from your social actions.<\/p>\n<p>So let\u2019s start with Google Tag Manager.<\/p>\n<p>Steps:<\/p>\n<ul>\n<li>Create a new container version<\/li>\n<li>Create a new macro of the Data Layer Variable persuasion, and name it <strong>Social network<\/strong><\/li>\n<li>Add <strong>socialNetwork<\/strong> as the variable name<\/li>\n<li>Save the macro<\/li>\n<\/ul>\n<div style=\"aspect-ratio: 832 \/ 354;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/social-network.jpg\" title=\"Social Network GTM macro\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"354\" width=\"832\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/social-network.jpg#ZgotmplZ\" alt=\"Social Network GTM macro\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<ul>\n<li>Create a new Data Layer Variable macro, and name it <strong>Social action<\/strong><\/li>\n<li>Add <strong>socialAction<\/strong> as the variable name<\/li>\n<li>Save the macro<\/li>\n<li>Create a new Data Layer Variable macro, and name it <strong>Social target<\/strong><\/li>\n<li>Add <strong>socialTarget<\/strong> as the variable name<\/li>\n<li>Save the macro<\/li>\n<\/ul>\n<p>So now you created three important macros, all making it easier for to track social interactions via Google Tag Manager. <strong>Network<\/strong> will pass the name of the social network the action belongs to (e.g. Facebook), <strong>Action<\/strong> will pass the name of the action performed (e.g. Like), and <strong>Target<\/strong> will pass the name of the page the action occurred on (e.g. <a href=\"http:\/\/www.example.com\/post1)\">http:\/\/www.example.com\/post1)<\/a>.<\/p>\n<h2 id=\"setting-up-the-send-tag\">Setting up the send tag<\/h2>\n<p>For social interaction events to appear in Google Analytics, they need to be sent (d\u2019oh again). To send a social interaction, you need to create a tag which will have the macros we just created as its arguments. This tag is then set to fire upon a social action.<\/p>\n<ol>\n<li>Create a new Universal Analytics tag<\/li>\n<li>Give it a name (such as <strong>Send social<\/strong>)<\/li>\n<li>Add your tracking ID (it\u2019s best to store it as a macro)<\/li>\n<li>Choose <strong>Social<\/strong> as the Track Type<\/li>\n<li>Add your macros as the arguments (see image below for clues)<\/li>\n<li>Set <strong>{{event}} equals socialInt<\/strong> as the firing rule (we\u2019ll come back to this soon)<\/li>\n<li>Save tag<\/li>\n<\/ol>\n<div style=\"aspect-ratio: 679 \/ 595;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/send-social-tag.jpg\" title=\"Create tag to send social interaction with\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"595\" width=\"679\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/send-social-tag.jpg#ZgotmplZ\" alt=\"Create tag to send social interaction with\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Here we create a new tag which houses the arguments the social interaction will have. The firing rule is primed to wait for an event called <strong>socialInt<\/strong>, which we\u2019ll send from our social action tags.<\/p>\n<h2 id=\"set-up-facebook-like\">Set up Facebook like<\/h2>\n<div style=\"aspect-ratio: 400 \/ 54;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/like-button.jpg\" title=\"Facebook Like Button\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"54\" width=\"400\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/like-button.jpg#ZgotmplZ\" alt=\"Facebook Like Button\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>I will not go into how to add a Facebook like button to your page, you\u2019ll have to do that yourself. Facebook has a great guide and tool behind <a href=\"https:\/\/developers.facebook.com\/docs\/plugins\/like-button\/\">this link<\/a> which will help you create the necessary code.<\/p>\n<p>However, once you have your button in place, you need to somehow track the clicks. This is done by using a <strong>callback function<\/strong>. A callback is a function which is run immediately after an event has completed.<\/p>\n<p>Here\u2019s how to create the callback function in GTM.<\/p>\n<p>Steps:<\/p>\n<ul>\n<li>Create a new Custom HTML tag (or use a single tag for all your social share callbacks)<\/li>\n<li>Give it a name (e.g. <strong>Social Shares<\/strong>)<\/li>\n<li>Add the following code:<\/li>\n<\/ul>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-html\" data-lang=\"html\">script&gt;\n<span style=\"color:#00a\">if<\/span> (<span style=\"color:#00a\">typeof<\/span> FB !== <span style=\"color:#a50\">'undefined'<\/span>){\n  FB.Event.subscribe(<span style=\"color:#a50\">'edge.create'<\/span>,\n      <span style=\"color:#00a\">function<\/span>(href) {\n          dataLayer.push({\n              <span style=\"color:#a50\">'event'<\/span>: <span style=\"color:#a50\">'socialInt'<\/span>, \n              <span style=\"color:#a50\">'socialNetwork'<\/span>: <span style=\"color:#a50\">'Facebook'<\/span>, \n              <span style=\"color:#a50\">'socialAction'<\/span>: <span style=\"color:#a50\">'Like'<\/span>, \n              <span style=\"color:#a50\">'socialTarget'<\/span>: href\n          });\n      }\n  );\n}\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<ul>\n<li>Set to fire after DOM has been loaded (<strong>{{event}} equals gtm.dom<\/strong>)<\/li>\n<li>Save tag<\/li>\n<\/ul>\n<p>OK, so here\u2019s your Facebook Like callback function. Upon clicking the Like button, this function is called. Before control is returned to the page, the trigger event for the <strong>Send Social<\/strong> tag (<strong>socialInt<\/strong>) is pushed into the data layer. After that, the three required arguments are passed along as well. The value for <strong>socialTarget<\/strong> is <strong>href<\/strong>, which is one of the parameters of the callback function, and it represents the URL of the page the event occurred on.<\/p>\n<p>By using <strong>FB.Event.Subscribe<\/strong>, you can listen to a number of different events (e.g. message send, login). Check the available options in the <a href=\"https:\/\/developers.facebook.com\/docs\/reference\/javascript\/FB.Event.subscribe\/\">Facebook dev guide<\/a>.<\/p>\n<h2 id=\"set-up-google-1\">Set up Google +1<\/h2>\n<div style=\"aspect-ratio: 50 \/ 35;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/google-plus.jpg\" title=\"Google Plus One button\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"35\" width=\"50\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/google-plus.jpg#ZgotmplZ\" alt=\"Google Plus One button\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p><strong>UPDATE<\/strong>: Note that this is pretty much obsolete now, since Google Analytics and Universal Analytics both track +1s automatically.<\/p>\n<p>Again, I\u2019m not going to tell you how to add the button to your page. It\u2019s dead simple, and you can find a good guide <a href=\"https:\/\/developers.google.com\/+\/web\/+1button\/\">here<\/a>.<\/p>\n<p>With Google+, you need to specify the callback as an argument in the button tag. With Facebook this was automated. Note that there are a number of events for which you can specify a callback: clicks, interaction starts (when someone hovers or clicks the button) and interaction ends (when someone closes the +1 bubble). I just chose the click since it\u2019s the simplest way to track (though a tad inaccurate).<\/p>\n<p>I chose <strong>sendPlus<\/strong> as the callback function name. A sample button code would then be:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-html\" data-lang=\"html\">g:plusone <span style=\"color:#1e90ff\">href<\/span>=<span style=\"color:#a50\">\"http:\/\/example.com\"<\/span> <span style=\"color:#1e90ff\">size<\/span>=<span style=\"color:#a50\">\"standard\"<\/span>  <span style=\"color:#1e90ff\">annotation<\/span>=<span style=\"color:#a50\">\"none\"<\/span> <span style=\"color:#1e90ff\">callback<\/span>=<span style=\"color:#a50\">\"sendPlus\"<\/span>&gt;<span style=\"color:#1e90ff;font-weight:bold\">g:plusone<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>Note that the developers\u2019 reference has the callback as <strong>data-callback<\/strong>, but this seems to work as well.<\/p>\n<p>Now to set up the callback function.<\/p>\n<ul>\n<li>Create a new Custom HTML tag (or use a single tag for all your social callbacks)<\/li>\n<li>Give it a name (e.g. <strong>Google Plus One<\/strong>)<\/li>\n<li>Add the following code:<\/li>\n<\/ul>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-html\" data-lang=\"html\">script&gt;\n<span style=\"color:#00a\">function<\/span> sendPlus(g) {\n    dataLayer.push({\n        <span style=\"color:#a50\">'event'<\/span>: <span style=\"color:#a50\">'socialInt'<\/span>, \n        <span style=\"color:#a50\">'socialNetwork'<\/span>: <span style=\"color:#a50\">'Google'<\/span>, \n        <span style=\"color:#a50\">'socialAction'<\/span>: <span style=\"color:#a50\">'+1'<\/span>, \n        <span style=\"color:#a50\">'socialTarget'<\/span>: g.href\n    });\n};\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<ul>\n<li>Set to fire on all pages (<strong>{{url}} matches RegEx .<\/strong>*)<\/li>\n<li>Save tag<\/li>\n<\/ul>\n<p>It\u2019s basically the same as with Facebook.<\/p>\n<p>This callback function hijacks the +1 button click and sends the necessary stuff to datalayer before returning control back to the page.<\/p>\n<h2 id=\"set-up-tweets\">Set up tweets<\/h2>\n<div style=\"aspect-ratio: 67 \/ 30;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/tweet.jpg\" title=\"Tweet button\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"30\" width=\"67\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/tweet.jpg#ZgotmplZ\" alt=\"Tweet button\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>To set up a Tweet callback function, you\u2019ll need to make use of <a href=\"https:\/\/dev.twitter.com\/docs\/intents\/events\">web intent events<\/a>. They add additional JavaScript functionality (such as the option to declare a callback function) to your Tweet button.<\/p>\n<p>Initialize the Twitter widgets with the following code in your HEAD element:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\"><span style=\"color:#0aa\">window<\/span>.twttr = (<span style=\"color:#00a\">function<\/span> (d,s,id) {\n  <span style=\"color:#00a\">var<\/span> t, js, fjs = d.getElementsByTagName(s)[<span style=\"color:#099\">0<\/span>];\n  <span style=\"color:#00a\">if<\/span> (d.getElementById(id)) <span style=\"color:#00a\">return<\/span>; js=d.createElement(s); js.id=id;\n  js.src=<span style=\"color:#a50\">\"https:\/\/platform.twitter.com\/widgets.js\"<\/span>; fjs.parentNode.insertBefore(js, fjs);\n  <span style=\"color:#00a\">return<\/span> <span style=\"color:#0aa\">window<\/span>.twttr || (t = { _e: [], ready: <span style=\"color:#00a\">function<\/span>(f){ t._e.push(f) } });\n}(<span style=\"color:#0aa\">document<\/span>, <span style=\"color:#a50\">\"script\"<\/span>, <span style=\"color:#a50\">\"twitter-wjs\"<\/span>));\n<\/code><\/pre>\n<\/div>\n<p>You don\u2019t have to make any modifications to your Tweet button code (providing it\u2019s not implemented via a third-party API, such as AddThis.<\/p>\n<p>In your social share Custom HTML tag, add the following code:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\"><span style=\"color:#00a\">if<\/span> (<span style=\"color:#00a\">typeof<\/span> twttr !== <span style=\"color:#a50\">'undefined'<\/span>) {\n  twttr.ready(<span style=\"color:#00a\">function<\/span> (twttr) {\n    twttr.events.bind(<span style=\"color:#a50\">'click'<\/span>, clickEventToAnalytics);  \n  });\n}\n<span style=\"color:#00a\">function<\/span> clickEventToAnalytics() {\n  dataLayer.push({\n    <span style=\"color:#a50\">'event'<\/span>: <span style=\"color:#a50\">'socialInt'<\/span>, \n    <span style=\"color:#a50\">'socialNetwork'<\/span>: <span style=\"color:#a50\">'Twitter'<\/span>, \n    <span style=\"color:#a50\">'socialAction'<\/span>: <span style=\"color:#a50\">'tweet'<\/span>, \n    <span style=\"color:#a50\">'socialTarget'<\/span>: <span style=\"color:#0aa\">window<\/span>.location.href\n  });\n}\n<\/code><\/pre>\n<\/div>\n<p>Here you bind the CLICK event to function <strong>clickEventToAnalytics<\/strong>. There are a bunch of different events at your disposal, and you can find them in the <a href=\"https:\/\/dev.twitter.com\/docs\/intents\/events\">developers\u2019 documentation<\/a>.<\/p>\n<p>Note how I use the global JavaScript variable <strong>window.location.href<\/strong> as the target this time.<\/p>\n<h2 id=\"set-up-pinterest-pin-it\">Set up Pinterest Pin It<\/h2>\n<p>Pinterest is a bit problematic, since when you load the pinit.js script, it replaces any code you may have used in the link tags. This is problematic because Pinterest doesn\u2019t provide any callback functions, so the social share push would need to be added directly to the link code. With pinit.js, any modifications you do are erased upon page load.<\/p>\n<p>However, you can get your pins tracked using <a href=\"https:\/\/www.simoahava.com\/analytics\/auto-event-tracking-google-tag-manager\/\">auto-event tracking<\/a>. With a Link Click Listener in place, create a Custom HTML Tag with the following content:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-html\" data-lang=\"html\">script&gt;\n  dataLayer.push({<span style=\"color:#a50\">'event'<\/span>: <span style=\"color:#a50\">'socialInt'<\/span>, <span style=\"color:#a50\">'socialNetwork'<\/span>: <span style=\"color:#a50\">'Pinterest'<\/span>, <span style=\"color:#a50\">'socialAction'<\/span>: <span style=\"color:#a50\">'Pin It'<\/span>, <span style=\"color:#a50\">'socialTarget'<\/span>: <span style=\"color:#0aa\">window<\/span>.location.href});\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>The firing rule for this is:<\/p>\n<p><strong>{{event}} equals gtm.linkClick<br \/>{{element classes}} contains pin_it_button<\/strong><\/p>\n<p>So once the Pin It button is clicked (the link has \u201cpin_it_button\u201d in its long list of class names), this custom HTML tag pushes the event into the data layer, after which your social share event tag is fired.<\/p>\n<h2 id=\"test-implementation\">Test implementation<\/h2>\n<p>So now you have your callback functions which provide the data, the macros which store the data, and the Universal Analytics tag which sends the data. Wonderful!<\/p>\n<p><strong>Save your container version and publish it<\/strong>.<\/p>\n<p>Now go to a page on your site where the buttons can be found. Use a debugger like Firebug, or Chrome\u2019s Developer Tools, and load the page. Pay attention to the <strong>Network<\/strong> tab in your debugger, and <strong>click Like or +1<\/strong>. You should see something happening, namely a GET request to <strong><a href=\"https:\/\/www.google-analytics.com\">www.google-analytics.com<\/a><\/strong>. Check out the headers of this request, and you should see something like this:<\/p>\n<div style=\"aspect-ratio: 832 \/ 354;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/network.jpg\" title=\"Network tab in Chrome\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"354\" width=\"832\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/network.jpg#ZgotmplZ\" alt=\"Network tab in Chrome\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Here you can see the query parameters.<\/p>\n<p><strong>sa<\/strong> is Social Action (Like)<br \/><strong>sn<\/strong> is Social Network (Facebook)<br \/><strong>st<\/strong> is Social Target (URL of the page)<\/p>\n<p>Of course, don\u2019t forget to check Google Analytics itself (it might take some time for the data to appear).<\/p>\n<div style=\"aspect-ratio: 613 \/ 106;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2013\/11\/social-interactions.jpg\" title=\"Social Interactions in Google Analytics reports\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"106\" width=\"613\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2013\/11\/social-interactions.jpg#ZgotmplZ\" alt=\"Social Interactions in Google Analytics reports\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>(Last updated June 2014) Google Analytics provides us with a nifty way of tracking social interactions. With a simple plugin, you can track how many +1s and Likes your pages accumulate. This guide shows you how to activate social interaction tagging with Google Tag Manager and Universal Analytics. The instructions are for Facebook Likes, Google+ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":176535,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[1531,43510,14495,10974,1791,1018],"dealstore":[],"offerexpiration":[],"class_list":["post-176534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-google","tag-interactions","tag-manager","tag-social","tag-tag","tag-track"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Tag Manager: Track Social Interactions - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Tag Manager: Track Social Interactions - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"(Last updated June 2014) Google Analytics provides us with a nifty way of tracking social interactions. With a simple plugin, you can track how many +1s and Likes your pages accumulate. This guide shows you how to activate social interaction tagging with Google Tag Manager and Universal Analytics. The instructions are for Facebook Likes, Google+ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-08T01:30:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"654\" \/>\n\t<meta property=\"og:image:height\" content=\"534\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#article\",\"isPartOf\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/b8eaddeb20a8727558e0d0cddcca426e\"},\"headline\":\"Google Tag Manager: Track Social Interactions\",\"datePublished\":\"2025-04-08T01:30:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\"},\"wordCount\":1352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#organization\"},\"image\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg\",\"keywords\":[\"Google\",\"Interactions\",\"Manager\",\"Social\",\"TAG\",\"Track\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\",\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\",\"name\":\"Google Tag Manager: Track Social Interactions - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg\",\"datePublished\":\"2025-04-08T01:30:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage\",\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg\",\"contentUrl\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg\",\"width\":654,\"height\":534},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accountants4yourbusiness.co.uk\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Tag Manager: Track Social Interactions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#website\",\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accountants4yourbusiness.co.uk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/b8eaddeb20a8727558e0d0cddcca426e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Faccountants4yourbusiness.co.uk%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Faccountants4yourbusiness.co.uk%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/accountants4yourbusiness.co.uk\"],\"url\":\"https:\/\/accountants4yourbusiness.co.uk\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Tag Manager: Track Social Interactions - Som2ny Network","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:\/\/accountants4yourbusiness.co.uk\/?p=176534","og_locale":"en_US","og_type":"article","og_title":"Google Tag Manager: Track Social Interactions - Som2ny Network","og_description":"(Last updated June 2014) Google Analytics provides us with a nifty way of tracking social interactions. With a simple plugin, you can track how many +1s and Likes your pages accumulate. This guide shows you how to activate social interaction tagging with Google Tag Manager and Universal Analytics. The instructions are for Facebook Likes, Google+ [&hellip;]","og_url":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534","og_site_name":"Som2ny Network","article_published_time":"2025-04-08T01:30:28+00:00","og_image":[{"width":654,"height":534,"url":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#article","isPartOf":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534"},"author":{"name":"admin","@id":"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/b8eaddeb20a8727558e0d0cddcca426e"},"headline":"Google Tag Manager: Track Social Interactions","datePublished":"2025-04-08T01:30:28+00:00","mainEntityOfPage":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534"},"wordCount":1352,"commentCount":0,"publisher":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/#organization"},"image":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage"},"thumbnailUrl":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg","keywords":["Google","Interactions","Manager","Social","TAG","Track"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/accountants4yourbusiness.co.uk\/?p=176534#respond"]}]},{"@type":"WebPage","@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534","url":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534","name":"Google Tag Manager: Track Social Interactions - Som2ny Network","isPartOf":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage"},"image":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage"},"thumbnailUrl":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg","datePublished":"2025-04-08T01:30:28+00:00","breadcrumb":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accountants4yourbusiness.co.uk\/?p=176534"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#primaryimage","url":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg","contentUrl":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2025\/04\/social-network.jpg","width":654,"height":534},{"@type":"BreadcrumbList","@id":"https:\/\/accountants4yourbusiness.co.uk\/?p=176534#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accountants4yourbusiness.co.uk\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Google Tag Manager: Track Social Interactions"}]},{"@type":"WebSite","@id":"https:\/\/accountants4yourbusiness.co.uk\/#website","url":"https:\/\/accountants4yourbusiness.co.uk\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accountants4yourbusiness.co.uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accountants4yourbusiness.co.uk\/#organization","name":"Som2ny Network","url":"https:\/\/accountants4yourbusiness.co.uk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/logo\/image\/","url":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/accountants4yourbusiness.co.uk\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/b8eaddeb20a8727558e0d0cddcca426e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accountants4yourbusiness.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Faccountants4yourbusiness.co.uk%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Faccountants4yourbusiness.co.uk%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/accountants4yourbusiness.co.uk"],"url":"https:\/\/accountants4yourbusiness.co.uk\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/176534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176534"}],"version-history":[{"count":0,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/176534\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=\/wp\/v2\/media\/176535"}],"wp:attachment":[{"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176534"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=176534"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/accountants4yourbusiness.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=176534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}