This is an old revision of the document!
This extension permits you to send data to Google Analytics based on ClientID on Account via WorkfFlow. With this easy setup you can fully track the ROI of your google investments and do all sorts of analysis and statistics on your clients using Google Analytics platform.
To setup the integration you must execute three actions.
Go to Settings > Module manager > Custom modules and click on the settings/hammer on the Google Measurement Protocol line to access the configuration screen where you will put the necessary information to access google analytics. These are your website google analytics ID and the version of the GMP that you are using.
Your user reaches your website, Google adds his identifier to your statistics. When the user decides to contact you he fills in the webform, when you send the information from the form you also send the Google Identifier and save it on a custom field in the CRM.
If you are creating Accounts, the “Google Analytics ClientID” field already exists.
If you add a “Google Analytics ClientID” field to Leads, remember to add the mapping of that value into Accounts or Contacts.
Once the prospect is inside the CRM you can follow your normal opportunity management process, until you reach the “Closed Lost” or “Closed Won” status. At this point you will create a workflow to send the relevant information that you want to register in Google Analytics.
For example, you can simply send the information of the status of the opportunity, or, if the client actually buys the service you can detect the creation of a sales order or invoice and send that fact, with the amounts to Google Analytics. Since we will be sending also the Google Identifier you will be able to track the sales and return on investment easily.
To send the information you create a workflow and construct the URL to send to Google using meta-variables from the record being saved.
In the examples below we send sales order totals to Analytics.