• Resolved j_shb

    (@j_shb)


    This plugin wasn’t validating properly with Google Analytics if Display Advertising was selected. I fixed this by changing the code around line 129:

    $tk .= " ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n";

    … was replaced with …

    if($Display_Advertising=="false"){
      $tk .= "   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n";
    }else{
      $tk .= "   ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';\n";
    }

    … which appears earlier in the plugin.

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug fix: Display Advertising’ is closed to new replies.