Fixed Unused code in google_analytics template


Well-known member
Affected version
It looks like this code is unused? Maybe started doing it as a set var, but then changed to be inline once more than one option was involved?

    <xf:if is="$xf.cookie.domain">
        <xf:set var="$gaConfig">{'cookie_domain': '{$xf.cookie.domain}'}</xf:set>
    <xf:else />
        <xf:set var="$gaConfig">{}</xf:set>
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.1).

Change log:
Remove unused bit of code in the GA template.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
Top Bottom