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 […]
Category: Lead Source Tracking (cookie-based)
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 […]
Generate a Web-to-Lead form in Salesforce (with GA Connector fields)
Add Google Analytics data to Salesforce web-to-lead with GA Connector’s Salesforce integration. For the GA Connector Fields are able to work, you are expected to have already implemented the GA Connector Tracking Script on your website as it is outlined in this article. How it works Once you implement the GA Connector Field Extension to […]
Setup Instructions for Gravity Forms
Add Google Analytics data to Gravity Forms with GA Connector’s Gravity Forms integration. GA Connector has a WordPress plugin, which allows to skip several steps and integrate Gravity Forms without writing a single line of code. Here is how to install and configure this plugin: 1. Download the plugin here. 2. Go to your WordPress admin […]
Free Trial Setup Instructions for Contact Form 7
Add Google Analytics data to Confact Form 7 with GA Connector’s Contact Form 7 integration. GA Connector has a plugin for Contact Form 7, which allows to skip several steps and set up the integration without writing a single line of code. Video tutorial: Here is how install and configure this plugin: 1. Download the […]