{"id":19871,"date":"2025-01-28T22:51:16","date_gmt":"2025-01-28T21:51:16","guid":{"rendered":"https:\/\/affi.ai\/woocommerce-price-sync-copy\/"},"modified":"2025-01-28T23:17:15","modified_gmt":"2025-01-28T22:17:15","slug":"google-analytics","status":"publish","type":"post","link":"https:\/\/affi.ai\/google-analytics\/","title":{"rendered":"How to enable Google Analytics link click tracking"},"content":{"rendered":"<p>AFFI AI comes with a feature that lets you automatically track product box clicks in your existing Google Analytics. Here we&#8217;ll explain how to set this up.<\/p>\n<p><em>*Please note that you need to already have Google Analytics on your site. i.e.: You need to have already added your Google Analytics tracking code to your site.<\/em><\/p>\n<p>The first thing you need to do is toggle on the <strong>Enable Google Analytics<\/strong> option.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-19872 size-large\" src=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption-1024x516.png\" alt=\"\" width=\"1024\" height=\"516\" \/><\/p>\n<p>After doing this, you need to go into your actual Analytics account and create a few custom definitions to match the parameters that our plugin tracks.<\/p>\n<p>So, log in to your Analytics account, make sure you are on the right property, go to Admin and then click on <strong>Custom definitions<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-19873 size-large\" src=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/ga1-1024x572.png\" alt=\"\" width=\"1024\" height=\"572\" \/><\/p>\n<p>On the next screen, click the <strong>Create custom dimension<\/strong> button. In the screen that pops up, you will see four fields that you need to fill in:<\/p>\n<ul>\n<li><strong>Dimension name:<\/strong> This can be whatever you want.<\/li>\n<li><strong>Scope:<\/strong> This needs to be set to <strong>Event<\/strong>.<\/li>\n<li><strong>Description:<\/strong> This can be whatever you want.<\/li>\n<li><strong>Event parameter:<\/strong> This is the unique parameter name that we have specified in the plugin. The four different parameters that you need to create are <strong>affi_click<\/strong>, <strong>affi_post_id<\/strong>, <strong>affi_link<\/strong> and <strong>affi_product_title<\/strong>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-19875 size-large\" src=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/ga3-1024x664.png\" alt=\"\" width=\"1024\" height=\"664\" \/><\/p>\n<p>You need to do the above four times, once for each parameter. When you are done, it should look like the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19874 size-large\" src=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/ga2-1024x401.png\" alt=\"\" width=\"1024\" height=\"401\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After doing this, each time someone clicks on an Affi product box on your site, it will track it as an event in your Google Analytics account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19876 size-large\" src=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/ga4-1024x454.png\" alt=\"\" width=\"1024\" height=\"454\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AFFI AI comes with a feature that lets you automatically track product box clicks in your existing Google Analytics. Here we&#8217;ll explain how to set this up. *Please note that you need to already have Google Analytics on your site. i.e.: You need to have already added your Google Analytics tracking code to your site. [&hellip;]<\/p>\n","protected":false},"author":1031,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-19871","post","type-post","status-publish","format-standard","hentry","category-functions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable Google Analytics link click tracking<\/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:\/\/affi.ai\/google-analytics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable Google Analytics link click tracking\" \/>\n<meta property=\"og:description\" content=\"AFFI AI comes with a feature that lets you automatically track product box clicks in your existing Google Analytics. Here we&#8217;ll explain how to set this up. *Please note that you need to already have Google Analytics on your site. i.e.: You need to have already added your Google Analytics tracking code to your site. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/affi.ai\/google-analytics\/\" \/>\n<meta property=\"og:site_name\" content=\"Affi.Ai\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AffiAi\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-28T21:51:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-28T22:17:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2692\" \/>\n\t<meta property=\"og:image:height\" content=\"1356\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tim RUSE\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@affi_ai\" \/>\n<meta name=\"twitter:site\" content=\"@affi_ai\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tim RUSE\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/\"},\"author\":{\"name\":\"Tim RUSE\",\"@id\":\"https:\\\/\\\/affi.ai\\\/#\\\/schema\\\/person\\\/ecfe207250815bfe111075f2d6ae5cc8\"},\"headline\":\"How to enable Google Analytics link click tracking\",\"datePublished\":\"2025-01-28T21:51:16+00:00\",\"dateModified\":\"2025-01-28T22:17:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/\"},\"wordCount\":265,\"publisher\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/gaoption-1024x516.png\",\"articleSection\":[\"Functions\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/\",\"url\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/\",\"name\":\"How to enable Google Analytics link click tracking\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/gaoption-1024x516.png\",\"datePublished\":\"2025-01-28T21:51:16+00:00\",\"dateModified\":\"2025-01-28T22:17:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#primaryimage\",\"url\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/gaoption.png\",\"contentUrl\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/gaoption.png\",\"width\":2692,\"height\":1356},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/affi.ai\\\/google-analytics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Affi.Ai\",\"item\":\"https:\\\/\\\/affi.ai\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable Google Analytics link click tracking\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/affi.ai\\\/#website\",\"url\":\"https:\\\/\\\/affi.ai\\\/\",\"name\":\"Affi.Ai\",\"description\":\"Boost your affiliate revenue\",\"publisher\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/affi.ai\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/affi.ai\\\/#organization\",\"name\":\"Affi.Ai\",\"url\":\"https:\\\/\\\/affi.ai\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/affi.ai\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/affi.ai\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/logo.png\",\"width\":520,\"height\":101,\"caption\":\"Affi.Ai\"},\"image\":{\"@id\":\"https:\\\/\\\/affi.ai\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/AffiAi\\\/\",\"https:\\\/\\\/x.com\\\/affi_ai\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCnV-110Qse8ePdJZuuGwgKg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/affi.ai\\\/#\\\/schema\\\/person\\\/ecfe207250815bfe111075f2d6ae5cc8\",\"name\":\"Tim RUSE\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g\",\"caption\":\"Tim RUSE\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable Google Analytics link click tracking","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:\/\/affi.ai\/google-analytics\/","og_locale":"en_US","og_type":"article","og_title":"How to enable Google Analytics link click tracking","og_description":"AFFI AI comes with a feature that lets you automatically track product box clicks in your existing Google Analytics. Here we&#8217;ll explain how to set this up. *Please note that you need to already have Google Analytics on your site. i.e.: You need to have already added your Google Analytics tracking code to your site. [&hellip;]","og_url":"https:\/\/affi.ai\/google-analytics\/","og_site_name":"Affi.Ai","article_publisher":"https:\/\/www.facebook.com\/AffiAi\/","article_published_time":"2025-01-28T21:51:16+00:00","article_modified_time":"2025-01-28T22:17:15+00:00","og_image":[{"width":2692,"height":1356,"url":"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption.png","type":"image\/png"}],"author":"Tim RUSE","twitter_card":"summary_large_image","twitter_creator":"@affi_ai","twitter_site":"@affi_ai","twitter_misc":{"Written by":"Tim RUSE","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/affi.ai\/google-analytics\/#article","isPartOf":{"@id":"https:\/\/affi.ai\/google-analytics\/"},"author":{"name":"Tim RUSE","@id":"https:\/\/affi.ai\/#\/schema\/person\/ecfe207250815bfe111075f2d6ae5cc8"},"headline":"How to enable Google Analytics link click tracking","datePublished":"2025-01-28T21:51:16+00:00","dateModified":"2025-01-28T22:17:15+00:00","mainEntityOfPage":{"@id":"https:\/\/affi.ai\/google-analytics\/"},"wordCount":265,"publisher":{"@id":"https:\/\/affi.ai\/#organization"},"image":{"@id":"https:\/\/affi.ai\/google-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption-1024x516.png","articleSection":["Functions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/affi.ai\/google-analytics\/","url":"https:\/\/affi.ai\/google-analytics\/","name":"How to enable Google Analytics link click tracking","isPartOf":{"@id":"https:\/\/affi.ai\/#website"},"primaryImageOfPage":{"@id":"https:\/\/affi.ai\/google-analytics\/#primaryimage"},"image":{"@id":"https:\/\/affi.ai\/google-analytics\/#primaryimage"},"thumbnailUrl":"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption-1024x516.png","datePublished":"2025-01-28T21:51:16+00:00","dateModified":"2025-01-28T22:17:15+00:00","breadcrumb":{"@id":"https:\/\/affi.ai\/google-analytics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/affi.ai\/google-analytics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affi.ai\/google-analytics\/#primaryimage","url":"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption.png","contentUrl":"https:\/\/affi.ai\/wp-content\/uploads\/2025\/01\/gaoption.png","width":2692,"height":1356},{"@type":"BreadcrumbList","@id":"https:\/\/affi.ai\/google-analytics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Affi.Ai","item":"https:\/\/affi.ai\/"},{"@type":"ListItem","position":2,"name":"How to enable Google Analytics link click tracking"}]},{"@type":"WebSite","@id":"https:\/\/affi.ai\/#website","url":"https:\/\/affi.ai\/","name":"Affi.Ai","description":"Boost your affiliate revenue","publisher":{"@id":"https:\/\/affi.ai\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/affi.ai\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/affi.ai\/#organization","name":"Affi.Ai","url":"https:\/\/affi.ai\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affi.ai\/#\/schema\/logo\/image\/","url":"https:\/\/affi.ai\/wp-content\/uploads\/2020\/09\/logo.png","contentUrl":"https:\/\/affi.ai\/wp-content\/uploads\/2020\/09\/logo.png","width":520,"height":101,"caption":"Affi.Ai"},"image":{"@id":"https:\/\/affi.ai\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AffiAi\/","https:\/\/x.com\/affi_ai","https:\/\/www.youtube.com\/channel\/UCnV-110Qse8ePdJZuuGwgKg"]},{"@type":"Person","@id":"https:\/\/affi.ai\/#\/schema\/person\/ecfe207250815bfe111075f2d6ae5cc8","name":"Tim RUSE","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b65e4e7506101e546ab03bc22aff011f14a088df14b89d9ab5589b09fab782b8?s=96&d=mm&r=g","caption":"Tim RUSE"}}]}},"_links":{"self":[{"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/posts\/19871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/users\/1031"}],"replies":[{"embeddable":true,"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/comments?post=19871"}],"version-history":[{"count":0,"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/posts\/19871\/revisions"}],"wp:attachment":[{"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/media?parent=19871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/categories?post=19871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affi.ai\/wp-json\/wp\/v2\/tags?post=19871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}