We recently hired a new advertising firm that wants us to change our analytics code. Specifically they want us to start tracking Client IDs. Does FC Google Analytics already track this variable? Per their instructions, I had this function called from our website
var dimensionValue = tracker.get('clientId');
ga('set', 'dimension1', dimensionValue);
where dimension1 is specified in analytics as the Client ID. This seems to have worked for most pageviews on our site.
For our FoxyCart checkout page, I left the analytics configuration alone. According their analysis, this led to only ~30% of users visiting our checkout page to have their Client IDs correctly tracked.
I'm thinking that I will need to do a custom integration of google analytic into our FoxyCart pages to get these Client IDs tracked correctly with 'dimension1' as above. Is their a guide on doing custom integrations of analytics with FC's checkout and receipt pages? Specifically, I'm asking for the FC parameters that need to be parsed in our custom footer code that will make sure that transactions and revenue are accurately recorded. Can you provide the templates you use for Google analytics integration into the checkout and first_receipt pages?