{"id":1194,"date":"2017-11-30T11:40:42","date_gmt":"2017-11-30T11:40:42","guid":{"rendered":"http:\/\/support.gaconnector.com\/?p=1194"},"modified":"2020-05-21T06:43:50","modified_gmt":"2020-05-21T06:43:50","slug":"how-to-push-ga-connector-info-to-data-layer-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/gaconnector.com\/docs\/how-to-push-ga-connector-info-to-data-layer-in-google-tag-manager\/","title":{"rendered":"How to push GA Connector info to data layer in Google Tag Manager"},"content":{"rendered":"<p>To push GA Connector info to GTM data layer, use the following JavaScript code:<\/p>\n<pre class=\"lang:default decode:true \">var gaconnectorInfo =\u00a0gaconnector.getCookieValues();\r\ndataLayer.push( gaconnectorInfo );<\/pre>\n<p>&nbsp;<\/p>\n<p>To make sure that GA Connector is fired by the time this script is run, use the\u00a0<a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6238868\">tag sequencing<\/a>\u00a0functionality provided by Google Tag Manager:<br \/>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-1936\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199-700x392.png\" alt=\"\" width=\"700\" height=\"392\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199-700x392.png 700w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199-300x168.png 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199.png 768w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199-60x34.png 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/IMG_2199-150x84.png 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<figure id=\"attachment_1114\" class=\"wp-caption aligncenter\"><figcaption class=\"wp-caption-text\">Tag sequencing<\/figcaption><\/figure>\n<p>It allows to set the script from the article to fire after GA Connector.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To push GA Connector info to GTM data layer, use the following JavaScript code: var gaconnectorInfo =\u00a0gaconnector.getCookieValues(); dataLayer.push( gaconnectorInfo ); &nbsp; To make sure that GA Connector is fired by the time this script is run, use the\u00a0tag sequencing\u00a0functionality provided by Google Tag Manager: Tag sequencing It allows to set the script from the article [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/1194"}],"collection":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/comments?post=1194"}],"version-history":[{"count":5,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/1194\/revisions"}],"predecessor-version":[{"id":1937,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/1194\/revisions\/1937"}],"wp:attachment":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/media?parent=1194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/categories?post=1194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/tags?post=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}