Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael K

    (@mikkamp)

    Automattic Happiness Engineer

    Hi there,

    The Google Analytics Intregration plugin is already using custom “dimension1” for tracking whether the user is logged in or not. So if you are seeing “dimension1” set to “no” that means the user is not logged in.

    If you would like to pass along a second value then I’d suggest to use “dimension2” for this. The following guide explains a bit more about custom dimensions: https://support.google.com/analytics/answer/2709828

    In order to add additional data you can use the filter “woocommerce_ga_snippet_require”
    You will need to create a code snippet which hooks into this filter and appends the additional code to set dimension2. I’d suggest to do an additional check to make sure you are on the single product page before doing so. The conditional function is_product can be used for that, see: https://docs.woocommerce.com/document/conditional-tags/#section-7

    Thread Starter kobog

    (@kobog)

    Thanks

    • This reply was modified 5 years, 1 month ago by kobog.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dimensionvalue is set to “no”’ is closed to new replies.