.js-config.is-hidden
  = render 'layouts/core/inline_js/fonts_async'
  = render 'layouts/core/inline_js/fs_init'
  = render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
  = render 'layouts/core/inline_js/base_js_async'
  = yield :scripts

  = js_configuration
  - if defined?($JS_VARS)
    :javascript
      #{js_hash($JS_VARS)}

  :javascript
    (function(w,c){
      if (w.lp.ads && c) {
        w.lp.ads.networkCode=c
      }
    }(window,lp.getCookie('lpNetworkCode')));

.js-config.is-hidden
  = render 'layouts/core/inline_js/fonts_async'
  = render 'layouts/core/inline_js/fs_init'
  = render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
  = render 'layouts/core/inline_js/base_js_async'
  = yield :scripts

  = js_configuration
  - if defined?($JS_VARS)
    :javascript
      #{js_hash($JS_VARS)}

  :javascript
    (function(w,c){
      if (w.lp.ads && c) {
        w.lp.ads.networkCode=c.length?c.pop():c
      }
    }(window,lp.getCookie('lpNetworkCode') || window.location.search.match(/lpNetworkCode=([0-9]{4,8})/) ));

Add support for setting network code via query string
Add support for setting network code via query string
