{"id":1464,"date":"2024-05-24T08:25:40","date_gmt":"2024-05-24T06:25:40","guid":{"rendered":"https:\/\/life.dev.indicom.dk\/faqs\/tvaerdomaenesporing-med-google-analytics\/"},"modified":"2024-10-23T14:11:54","modified_gmt":"2024-10-23T12:11:54","slug":"tvaerdomaenesporing-med-google-analytics","status":"publish","type":"faq","link":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/","title":{"rendered":"Tracking data with Google Analytics and other tools"},"content":{"rendered":"<h6>Guidance for tracking data with Google Analytics and other tools<\/h6>\n<h3>Overview:<\/h3>\n<p>This guide describes 2 ways to track which traffic sources generate sales and their revenue.<br \/>\nA simple redirect solution back to your own site upon purchase, and an extended solution in the form of cross-domain tracking.<br \/>\nThe same methods and tag manger triggers described for Google Analytics can be used to set up tracking for other marketing systems than Google Analytics.<br \/>\nBefore describing solutions, it is worth mentioning that it is possible to disable Life Peak&#8217;s cookie consent tool if you want to implement your own on lifepeaks.dk sites.<\/p>\n<h3>The simple solution:<\/h3>\n<p>The simple redirect solution is sufficient for many when it comes to checking the value of your marketing efforts and optimizing them.<br \/>\nWhen you purchase a gift card, you ask lifepeaks to redirect back to a thank you page for gift cards on your own site that you create and set up goals for yourself in google analytics.<br \/>\nIn addition, for GA4, you must create lifepeaks.dk as an unwanted referral under google analytics admin (nut at the bottom left of the first image below) -&gt; data streams -&gt; click on the existing data stream and select configure as shown in the first image.<br \/>\nUnder unwanted referrals, enter lifepeaks.dk as shown in the next image, in addition to your own domain which should already be there.<br \/>\nThis way, the original traffic source that brought your users to your site is preserved.<br \/>\nIn addition, the user&#8217;s chosen consent from their visit to your site is reused.<br \/>\nIn addition, the URL for your own thank you page, which lifepeaks.dk redirects to upon your request, will contain the transaction id and the total value as exemplified here: https:\/\/test.com\/?transaction_id=647bba344396e7c8170902bcf2e1555165658a87758051.784&amp;total=1010.<br \/>\nThe only thing you miss out on by choosing the redirect solution is the lifepeaks thank you page with pdf links to gift cards and more (however, these are sent to gift card buyers by email), as well as extended analytics data.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1051\" src=\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg\" alt=\"\" width=\"2345\" height=\"1326\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg 2345w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-400x226.jpeg 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-1024x579.jpeg 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-768x434.jpeg 768w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-1536x869.jpeg 1536w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-2048x1158.jpeg 2048w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0166-1920x1086.jpeg 1920w\" sizes=\"auto, (max-width: 2345px) 100vw, 2345px\" \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1052\" src=\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0167.jpeg\" alt=\"\" width=\"2340\" height=\"845\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167.jpeg 2340w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-400x144.jpeg 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-1024x370.jpeg 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-768x277.jpeg 768w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-1536x555.jpeg 1536w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-2048x740.jpeg 2048w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/05\/IMG_0167-1920x693.jpeg 1920w\" sizes=\"auto, (max-width: 2340px) 100vw, 2340px\" \/>\n<h3>The extended solution:<\/h3>\n<p>The extended solution uses cross-domain tracking.<br \/>\nThis guide assumes that the same tag manager container ID (hereafter container) is used on both the primary website and on lifepeaks.com<\/p>\n<p>If you want to run with two containers, this is also possible. In that case, after the import described in point 2 below, you &#8216;simply&#8217; extract the &#8216;iframe host domain&#8217; code part from the &#8216;lifepeaks iframe&#8217; tag and put it in the other tag manager container in a custom HTML tag, with a tag manager trigger on the pages where the lifepeaks iframe is loaded or just an all pages trigger if in doubt, and a ga4 event tag identical to the imported one.<\/p>\n<p>If you run with only one tag manager as the guide suggests, it may mean that some tracking systems will get extra data.<br \/>\nBasically, this doesn&#8217;t matter, but some people may want to be aware of this and with new implementations and changes, it&#8217;s always a good idea to check your data in the following days.<\/p>\n<p>The user&#8217;s chosen consent from their visit to your site is reused by the iframe implementation of the lifepeaks gift card purchase thank you page.<br \/>\nIf the lifepeaks gift card purchase thank you page is loaded as a regular link with lifepeaks.dk in the browser address bar, the lifepeaks cookie consent tool controls whether data is sent, unless you have implemented your own consent tool as mentioned at the beginning of this article.<\/p>\n<h4>Guidance for setting up the extended solution:<\/h4>\n<p>1. Download <em>Life Peaks Ecommerce Tracking Zip<\/em> <span style=\"text-decoration: underline;\"><strong><a href=\"\/wp-content\/uploads\/2024\/03\/lifepeaks-ecommerce-tracking.zip\">her<\/a><\/strong><\/span> and extract the file.<br \/>\n2. Go to the Admin section of Tag Manager and click &#8216;Import Container&#8217;<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-700\" src=\"\/wp-content\/uploads\/2024\/03\/pasted-image-0-1024x541-1.png\" alt=\"\" width=\"1024\" height=\"541\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/pasted-image-0-1024x541-1.png 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/pasted-image-0-1024x541-1-400x211.png 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/pasted-image-0-1024x541-1-768x406.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\n<p>3. Import the &#8216;lifepeaks ecommerce tracking.json&#8217; file and select &#8216;existing&#8217; workspace, &#8216;merge&#8217; and &#8216;rename&#8217; as shown, duplicates of triggers and variables can be removed afterwards.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-701\" src=\"\/wp-content\/uploads\/2024\/03\/2.png\" alt=\"\" width=\"924\" height=\"756\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/2.png 924w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/2-400x327.png 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/2-768x628.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/>\n<p>4. Open the tag &#8216;lifepeaks &#8211; ecommerce tracking logic&#8217; and instead of &#8216;https:\/\/example.dk&#8217; enter your own website and in the same syntax.<\/p>\n<p>For example, open your site in a browser and copy past URL from there, but do not include any subpages, and end with dk and not dk\/.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-702\" src=\"http:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/03\/3-1024x438-1.png\" alt=\"\" width=\"1024\" height=\"438\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/3-1024x438-1.png 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/3-1024x438-1-400x171.png 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/3-1024x438-1-768x329.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\n<p>5. Go to the lifepeaks GA4 configuration tag and paste your GA4 tracking ID. For the purchase tag refer to the newly changed lifepeaks GA4 configuration tag<br \/>\nAlternatively, for the lifepeaks GA4 purchase tag, you can also refer to your own GA4 configuration tag and not fill in the lifepeaks GA4 configuration tag as mentioned at the beginning of this point.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-703\" src=\"\/wp-content\/uploads\/2024\/03\/4-1024x718-1.png\" alt=\"\" width=\"1024\" height=\"718\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/4-1024x718-1.png 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/4-1024x718-1-400x280.png 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/4-1024x718-1-768x539.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-704\" src=\"\/wp-content\/uploads\/2024\/03\/ga4.png\" alt=\"\" width=\"587\" height=\"475\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4.png 587w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4-400x324.png 400w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-705\" src=\"\/wp-content\/uploads\/2024\/03\/ga4_1.png\" alt=\"\" width=\"624\" height=\"636\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4_1.png 624w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4_1-392x400.png 392w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/>\n<p>6. Publish Tag Manager.<br \/>\n7. In GA4 under admin-&gt;property settings-&gt;data streams-&gt;web-&gt;more data settings-&gt;configure domains add lifepeaks.dk.<br \/>\nThis completes the setup of cross domain tracking and purchase data will now enter your GA4.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-707\" src=\"http:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/03\/ga4_3-1024x674-1.png\" alt=\"\" width=\"1024\" height=\"674\" srcset=\"https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4_3-1024x674-1.png 1024w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4_3-1024x674-1-400x263.png 400w, https:\/\/lifepeaks.dk\/wp-content\/uploads\/2024\/03\/ga4_3-1024x674-1-768x506.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\n","protected":false},"template":"","class_list":["post-1464","faq","type-faq","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tracking data with Google Analytics and other tools - LifePeaks<\/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:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tracking data with Google Analytics and other tools - LifePeaks\" \/>\n<meta property=\"og:description\" content=\"Guidance for tracking data with Google Analytics and other tools Overview: This guide describes 2 ways to track which traffic sources generate sales and their revenue....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/\" \/>\n<meta property=\"og:site_name\" content=\"LifePeaks\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-23T12:11:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/\",\"url\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/\",\"name\":\"Tracking data with Google Analytics and other tools - LifePeaks\",\"isPartOf\":{\"@id\":\"https:\/\/lifepeaks.dk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg\",\"datePublished\":\"2024-05-24T06:25:40+00:00\",\"dateModified\":\"2024-10-23T12:11:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage\",\"url\":\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg\",\"contentUrl\":\"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\/\/lifepeaks.dk\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tracking data with Google Analytics and other tools\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lifepeaks.dk\/#website\",\"url\":\"https:\/\/lifepeaks.dk\/\",\"name\":\"LifePeaks\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lifepeaks.dk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tracking data with Google Analytics and other tools - LifePeaks","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:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/","og_locale":"en_US","og_type":"article","og_title":"Tracking data with Google Analytics and other tools - LifePeaks","og_description":"Guidance for tracking data with Google Analytics and other tools Overview: This guide describes 2 ways to track which traffic sources generate sales and their revenue....","og_url":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/","og_site_name":"LifePeaks","article_modified_time":"2024-10-23T12:11:54+00:00","og_image":[{"url":"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/","url":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/","name":"Tracking data with Google Analytics and other tools - LifePeaks","isPartOf":{"@id":"https:\/\/lifepeaks.dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage"},"image":{"@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg","datePublished":"2024-05-24T06:25:40+00:00","dateModified":"2024-10-23T12:11:54+00:00","breadcrumb":{"@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#primaryimage","url":"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg","contentUrl":"https:\/\/life.dev.indicom.dk\/wp-content\/uploads\/2024\/05\/IMG_0166.jpeg"},{"@type":"BreadcrumbList","@id":"https:\/\/lifepeaks.dk\/en\/faqs\/tvaerdomaenesporing-med-google-analytics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https:\/\/lifepeaks.dk\/en\/"},{"@type":"ListItem","position":2,"name":"Tracking data with Google Analytics and other tools"}]},{"@type":"WebSite","@id":"https:\/\/lifepeaks.dk\/#website","url":"https:\/\/lifepeaks.dk\/","name":"LifePeaks","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lifepeaks.dk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/lifepeaks.dk\/en\/wp-json\/wp\/v2\/faq\/1464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifepeaks.dk\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/lifepeaks.dk\/en\/wp-json\/wp\/v2\/types\/faq"}],"wp:attachment":[{"href":"https:\/\/lifepeaks.dk\/en\/wp-json\/wp\/v2\/media?parent=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}