Many people use both Click tracking code and Google Analytics code. We do it too. There is a newer version of Google Analytics code described in their article here: https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced.
Goals
- Learn how to use Google Analytics in conjunction with Click web tracking
Google Analytics Script
If you use the version of the Google Analytics script shown below with our tracking script, your Google Analytics will not work. This is due to a conflict in our codes. Google states in their article that their 'ga' variable might conflict with other objects, and we have found that it does. They offer a suggested workaround, described below, that is simple to implement. We are working to see what we can do to prevent this conflict, but until then, Google's recommendation is as follows:
There are three instances of "ga" in this Google Analytics code, if you change that variable to something else like '_gaTracker' it will work.
You can see this is explained in the same article linked above. There is a section called "Renaming the Global Object" that explains that this is okay to change this variable.