• Resolved a022278

    (@a022278)


    I am getting a lot of PHP Notice’s from the tracking-code.php file.

    It appears that the problem is with the $homeurl variable.

    From v2.3.1 the variable was set as part of an if…else conditional. In v2.4, the else statement has been removed so that if get_option('set_domain')=='on' resolves to false, the following lines call an unset $homeurl throwing an error.

    Possibly related, it appears that in v2.4 this variable is not used at all. The ga('create',... statement no longer uses this variable as an argument.

    This seems to be persistent in v2.4.1 and the trunk.

    Thank you for taking the time to build, maintain and update this plugin.

    https://wordpress.org/plugins/google-universal-analytics/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, same problem here since update.

    Plugin Author Audrius Dobilinskas

    (@audriusd-1)

    Hello!

    I am not sure what is causing this for you. I don’t get such errors on any of my test websites. Here are my recommendations:

    1) Update your WordPress to the latest version 4.0.1
    2) Update Google Universal Analytics plugin (version 2.4.2 is now available)

    3) If these does not work, look at your other plugins. They may be causing the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined variable’ is closed to new replies.