The Problem Before deploying GA Connector script to your site, you may want to check how it works on a local machine or on a staging server first. But you may get this error message in console if you try to do this: The Solution If want to test it on a staging server, just […]
Category: Lead Source Tracking (cookie-based)
How to fix “Size of a request header field exceeds server limit” error
One of the cookies that GA Connector script creates (gaconnector_pages_visited_list, and occasionally gaconnector_all_traffic_sources) can sometimes get too big if the user visited too many pages. On some servers, it results in errors like: Size of a request header field exceeds server limit 400 Bad Request Or similar To fix this issue, you just need to […]
What to do if Zoho CRM replaces last click source with “crm.zoho.com”?
You’re using Zoho CRM Webforms, and after the form is submitted, the user is redirected back to the site. So the referrer is naturally crm.zoho.com (because when the user comes back from the redirected form, Google Analytics thinks it’s a new session with source=crm.zoho.com): To fix this, you need to remove the referrer information (“crm.zoho.com“) when the […]
Documentation for Our Basic Integration Salesforce Package
We have developed a Salesforce package for the basic integration to speed up the creation of the necessary fields. Installation link for Production Orgs: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t09000000Nslp Installation link for Sandbox Orgs: https://test.salesforce.com/packaging/installPackage.apexp?p0=04t09000000Nslp plus Package Contents This package is nothing more but a set of fields the purpose of which is to store users’ source, medium, term, location […]
Integrate GA Connector with custom forms
This instruction assumes that you have already installed either GA Connector WordPress plugin, or GA Connector script:
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> |
Now that you’ve installed our script, you need to make modification to your forms. There are two methods of integrating your forms with GA Connector: Integration Method #1 Step 1: Add hidden fields with specific names to […]
How to set up “Google Analytics Link” field in Salesforce
So you have installed the GA Connector package on Salesforce and brought all fields from the website into Salesforce. Since Google Analytics URLs are unique per account, you’ll need to set up the formula on “Google Analytics Link” in Salesforce so that it matches the account that you are using. We have prepared a tool for you […]
Why do I see (not set), (not provided) and (none) in some GA Connector fields?
Sometimes you’ll (not set) and (not provided) inside some GA Connector fields: In this article, we’ll explain why that happens and what can be done about it. 1. (not provided) in “First Click Term” and “Last Click Term”. This has to do with do with Google policies, and unfortunately, nothing can be done about this. […]
Zoho CRM Basic Integration Screenshot
How to check if you custom forms can be integrated with GA Connector
Most custom forms can be integrated with GA Connector, but before we begin, we need to double-check this. Here is what is required from the custom forms in order for us to be able to integrate them with GA Connector: They need to be connected with your CRM already (so that each form submission becomes […]
HubSpot Forms Integration Guide
Add Google Analytics data to Hubspot forms with GA Connector’s Hubspot integration. Prerequisites Installed either GA Connector WordPress plugin or GA Connector script on your website
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> |
Creating GA Connector custom fields/properties in Hubspot If you haven’t created custom properties yet for GA Connector in Hubspot, follow the steps below on how to add them. While on […]