Open your GTM workspace and click on “Tags” Click on “New” to create a new tag for GA Connector script Give this tag a name Something like “GA Connector Tracking Code” Click on Triggering and select “All Pages” Click on “Tag Configuration” and select “Custom HTML” In the window that appears, paste GA Connector tracking […]
All posts by sergey
How to make GA Connector fields visible for all users in Salesforce
A newer version of this article is available here. First, go to Salesforce and click on “Setup”. Type “page layouts” in the quick find box and click on “Page Layouts” under “Leads”. Click “Edit” near one of the layouts you want to add GA Connector fields to. Drag & drop fields from the menu above […]
How to test GA Connector from localhost
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 […]
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 […]
How to make sure that you’re using Universal Analytics
Here is how you can check if you use Universal Analytics: Visit Google Analytics Go to the ‘Admin’ area Under the property that will be using GA Connector you should NOT see “Universal Analytics upgrade”. If you do, it means that you still use Classic Analytics. Screenshot 1 Alternatively, you can go to Google Analytics – Admin – […]
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 […]
GA Connector and Multi-Channel Attribution Reports
One of the ways GA Connector imports CRM data is through standard goal completions. This means that you can see CRM data in most standard Google Analytics reports, including Model Comparison Tool and Assisted Conversions. Model Comparison Tool Model Comparison Tool allows you to compare how different attribution models impact the valuation of your marketing […]
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 […]