Two Google Analytics Accounts, tracking on one website
Does anyone have any idea how i can add two analytics accounts to the one website? I currently have one working through a magento extension and another through segment.com ... the segment.com version is not receiving data how it should be.
In order to use multiple GA trackers on a single page you have to re-name the 2nd tracker as explained here: https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers
The GA instance loaded by Segment can only use the default GA tracker name, and I assume the same is probably true for your Magento plugin. We do have a section explaining how to initiate a 2nd tracker via Segment here: https://segment.com/docs/integrations/google-analytics/#multiple-trackers
Let me know if that does the trick or if you have other questions!Reply