{"id":3846,"date":"2026-06-26T17:36:44","date_gmt":"2026-06-26T17:36:44","guid":{"rendered":"https:\/\/gaconnector.com\/docs\/?p=3846"},"modified":"2026-06-26T17:38:42","modified_gmt":"2026-06-26T17:38:42","slug":"installing-ga-connector-to-your-website","status":"publish","type":"post","link":"https:\/\/gaconnector.com\/docs\/installing-ga-connector-to-your-website\/","title":{"rendered":"Installing GA Connector to Your Website"},"content":{"rendered":"<h2>What this section covers<\/h2>\n<p>Website tracking is the first thing you set up with GA Connector before any visitor data can reach your CRM or Google Analytics, GA Connector needs to be running on your site so it can see where your visitors came from.<\/p>\n<p>This section walks you through getting the tracking script onto your website, handling a few platform-specific cases (site builders, caching plugins), and staying compliant if you use a cookie consent banner.<\/p>\n<h2>How tracking works, briefly<\/h2>\n<p>GA Connector is a small piece of JavaScript that runs on your pages. When someone lands on your site, the script records how they got there, such as the campaign, referrer, and UTM parameters, and holds onto that information as the visitor moves around. When the visitor fills out a form, that source data gets passed along to your CRM next to the lead&#8217;s name, email, and phone.<\/p>\n<p>The script has to load on every page a visitor might land on first, and it needs to load early. If it loads too late, visitors who navigate away before the page finishes won&#8217;t be tracked correctly.<\/p>\n<div class=\"gac-callout gac-note\"><span class=\"gac-label\">Note<\/span>GA Connector runs in either an API-based or a cookie-based mode. The setup wizard assigns it for you based on your account and CRM, and hands you the right script to install. The install steps differ slightly between the two modes, so confirm which one you have first. See <a href=\"https:\/\/gaconnector.com\/docs\/how-to-check-which-ga-connector-integration-type-youre-using\/\">Checking Which Integration Type You&#8217;re Using<\/a> if you&#8217;re not sure.<\/p>\n<\/div>\n<h2>Where to start<\/h2>\n<p>Most people only need the first article below. The rest are there for specific platforms and situations.<\/p>\n<div class=\"gac-callout gac-warning\"><span class=\"gac-label\">Heads up<\/span>If your site uses a cookie consent banner, jump to the Consent banners part below before you finish. By default the GA Connector script can run before the visitor gives consent, which causes compliance problems. The fix is to set it up so the script only runs once consent is given.<\/p>\n<\/div>\n<h3>Installing the script<\/h3>\n<p>Once you know your type (see the note above if you&#8217;re not sure), follow the matching guide:<\/p>\n<ul>\n<li><strong>Cookie-based:<\/strong> <a href=\"https:\/\/gaconnector.com\/docs\/how-to-add-ga-connector-tracking-data-into-your-crm\/\">Cookie-based Integration<\/a><\/li>\n<li><strong>API-based:<\/strong> <a href=\"https:\/\/gaconnector.com\/docs\/install-ga-connector-2-0-tracking-code\/\">API-based Integration<\/a><\/li>\n<\/ul>\n<p>If you manage your tags through Google Tag Manager rather than editing your site directly, use <a href=\"https:\/\/gaconnector.com\/docs\/how-to-install-ga-connector-script-on-google-tag-manager-gtm\/\">Using Google Tag Manager<\/a> to add the script.<\/p>\n<h3>Consent banners (check this if you use one)<\/h3>\n<p>If your site shows a cookie consent banner, this is important to get right. By default, the GA Connector script can run as soon as the page loads, which means it may start collecting data before the visitor has given consent. For privacy regulations like GDPR, that&#8217;s a problem.<\/p>\n<p>The goal is to make sure the GA Connector script runs only after the visitor gives consent, rather than on page load. These guides show you how to set that up:<\/p>\n<ul>\n<li><a href=\"https:\/\/gaconnector.com\/docs\/setting-up-gaconnector-with-consent-banners\/\">Setting up with Consent Banners<\/a> \u2014 start here for the general approach that works with most banners.<\/li>\n<li><a href=\"https:\/\/gaconnector.com\/docs\/integrating-ga-connector-with-cookieyes\/\">Integrating with CookieYes<\/a> \u2014 specific steps if you use CookieYes.<\/li>\n<\/ul>\n<h2>Once tracking is live<\/h2>\n<p>After the script is installed and you&#8217;ve confirmed it&#8217;s running, the next step is making sure the tracked data lands in your CRM. Head to the CRM Setup section for the guide that matches your system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What this section covers Website tracking is the first thing you set up with GA Connector before any visitor data can reach your CRM or Google Analytics, GA Connector needs to be running on your site so it can see where your visitors came from. This section walks you through getting the tracking script onto [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[],"_links":{"self":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3846"}],"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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/comments?post=3846"}],"version-history":[{"count":1,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3846\/revisions"}],"predecessor-version":[{"id":3847,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3846\/revisions\/3847"}],"wp:attachment":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/media?parent=3846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/categories?post=3846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/tags?post=3846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}