I'm looking for the mapping option of the cookie name for the Google Analytics (analytics.js) tag. It seems there is no such option. The docs also don't list the cookie name parameter for the tracker object next to other common parameters like cookie domain. Am I overlooking something?
Solved! Go to Solution.
06-04-2020 08:26 AM
06-04-2020 08:56 AM - edited 06-04-2020 09:03 AM
I just tested mapping a custom cookieName via a custom value mapping:
The naming follows the convention in the GA docs.
However testing on a dev site the client id still gets written to the standard _ga cookie. This can also be verified by looking at the tracker ga object:
Since similar parameters are available (like cookieDomain) I wonder why there is no standard implementation for the name.
06-05-2020 10:09 AM - edited 06-05-2020 10:11 AM
The marketplace tags provide a template that you may customized to suite your integration of a vendor. If you are using the legacy 'analaytics.js' Google Analytics tag then you may edit the template looks like if you add c.cookieName = 'somename' to the template's u.initTracker function then you should be good to go. I have not tested this as you should when making edits to any template.
Please reach out to firstname.lastname@example.org to start a support ticket if you need assistance making the edit and test.
Thanks and regards