Caspio Submission Forms can be configured to capture the user tracking information used by Google Analytics. This way you get statistical information that pertains directly to “active” site users. Google Analytics also offers a tool to create URL’s tagged with additional information so you can monitor the efficiency of individual online campaigns.
This solution is adapted from the article Integrating Google Analytics with CRM posted on the Justin Cutroni’s Analytics Talk blog.
Before you apply the solution presented below, make sure you already have created a Submission Form and you are familiar with Google Analytics and their terminologies.
- Add the following fields into your Submission Form’s base table for which you are configuring Google Analytics. Set the data type to Text(255).
- Add the fields to your Submission Form.
- Edit the Submission Form.
- Add the newly added fields into your Submission Form. Move all of the Google Analytics fields to the right-hand panel using the arrow button.
- On the Configure Fields screen, insert Header & Footer sections.
- Deploy the code into your HTML page.
Test the Google Analytics Fields.
Once the Submission Form has been edited and configured, you can test the Google Analytics Fields.
- Click Preview of the Submission Form you have just modified. The Google Analytics fields should be populated with some data. The data within Caspio may not be accurate, but if some data appears, you know the fields are functioning.
- If you have a webpage that is indexed by Google, you can also test by embedding this DataPage in the indexed webpage. Go to Google, search, and click through to that webpage. The DataPage should indicate Google as the GA_Source value, and also indicate the search term you used in GA_Term.
- If you do not have a page indexed by Google, just embed the DataPage and then go directly to the site. The Source should read as “(direct)”.
Hide the Google Analytics Fields.
Once you are sure that the form is receiving data, you can edit the DataPage again. Edit the Submission Form and on the Configure Fields screen, select each of the Google Analytics fields and set the Form Element dropdown to Hidden.
Now, whenever a user submits the form, these fields will be automatically populated with the Google Analytics data.
Create Specially Formatted Analytics Links
To better analyze your website traffic, you can create specially formatted links that will provide information directly to these Google Analytics fields. Google provides an online tool to create a special URL that you can use in your online promotions.