Connect your CRM & GA4
Log in Sign Up
  • Product
    • Features Get to know more about how GA Connector works
    • Integrations Explore all integrations powered by GA Connector
    • Case Studies Discover success stories from our customers
  • Pricing
  • Company
    • About us Meet the marketing technology professionals behind GA Connector
    • We're hiring Explore our open roles for working remotely
  • Blog
  • Help
    • Knowledge Base Find answers via our support resources
    • Contact Us Ask questions, report bugs or give us feedback
Log in Sign Up
Knowledge Base

FAQ and Setup Guides

GA Connector Tracking Code

/GA Connector Tracking Code

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script data-cfasync="false" type="text/javascript" src="https://tracker.gaconnector.com/gaconnector.js"></script>
<script>
function setGaconnectorHiddenFields() {
    var gaFields = gaconnector.getCookieValues();
    for (var fieldName in gaFields) {
        var selectors = 'form input[name="' + fieldName + '"], form input#' + fieldName + ', form input#field_' + fieldName + ', form input[name="' + fieldName.toLowerCase() + '"], form input#' + fieldName.toLowerCase() + ', form input#field_' + fieldName.toLowerCase() + ', input[value="gaconnector_' + fieldName + '"],';
        selectors += 'form textarea[name="'+fieldName+'"], form textarea#'+fieldName+', form textarea#field_'+fieldName + ', form textarea[name="'+fieldName.toLowerCase()+'"], form textarea#'+fieldName.toLowerCase()+', form textarea#field_'+fieldName.toLowerCase()+', form textarea.'+fieldName+', form textarea[name="param['+fieldName+']"]'+", form textarea[id^='field_"+fieldName+"']";
        var inputs = document.querySelectorAll(selectors);
        if (inputs === null) {
            continue;
        } else if (typeof inputs.length === 'undefined') {
            inputs.value = gaFields[fieldName];
        } else {
            for (var i = 0; i < inputs.length; i++) {
                inputs[i].value = gaFields[fieldName];
            }
        }
    }
}
 
gaconnector.setCallback(setGaconnectorHiddenFields);
setInterval(setGaconnectorHiddenFields, 1000);
</script>

 

[email protected]
CRM integration with Google Analytics

Avoid paying for traffic that won't convert. Track your ROI down to the channel, campaign and keyword level.

GDPR Compliant

Read now GA Connector protects your privacy under the GDPR

Cookie Settings

Quick Links

  • About us
  • Pricing
  • Blog
  • Knowledge Base
  • Contact Us
  • Become a Partner
  • Terms and Conditions
  • Privacy Policy
  • Cookie Policy
  • Service Agreement
© 2016-2025 MarTech Solutions LLC. All Rights Reserved.

Try GA Connector Free For 30 Days

No Credit Card Required

Thank you for your message! We will contact you soon.
By signing up, you agree to our Terms and Conditions and Privacy Policy.