<commit_before>(function() {
  "use strict";

  // Load Google Analytics libraries
  GOVUK.StaticAnalytics.load();

  // Use document.domain in dev, preview and staging so that tracking works
  // Otherwise explicitly set the domain as www.gov.uk (and not gov.uk).
  var cookieDomain = (document.domain == 'www.gov.uk') ? '.www.gov.uk' : document.domain;

  var universalId = 'UA-26179049-1';

  // Configure profiles, setup custom vars, track initial pageview
  var analytics = new GOVUK.StaticAnalytics({
    universalId: universalId,
    cookieDomain: cookieDomain,
    govukTrackerGifUrl: '<%= asset_path "/static/a.gif" %>',
  });

  // Make interface public for virtual pageviews and events
  GOVUK.analytics = analytics;
})();<commit_msg>Add linked domain tracking to Plan For Britain campaign<commit_after>(function(global) {
  "use strict";

  // Load Google Analytics libraries
  GOVUK.StaticAnalytics.load();

  // Use document.domain in dev, preview and staging so that tracking works
  // Otherwise explicitly set the domain as www.gov.uk (and not gov.uk).
  var cookieDomain = (document.domain == 'www.gov.uk') ? '.www.gov.uk' : document.domain;

  var universalId = 'UA-26179049-1';

  // Configure profiles, setup custom vars, track initial pageview
  var analytics = new GOVUK.StaticAnalytics({
    universalId: universalId,
    cookieDomain: cookieDomain,
    allowLinker: true,
    govukTrackerGifUrl: '<%= asset_path "/static/a.gif" %>',
  });

  // Make interface public for virtual pageviews and events
  GOVUK.analytics = analytics;

  if (global.ga) {
    var ga = global.ga;
    ga('require', 'linker');
    ga('linker:autoLink', ['planforbritain.gov.uk']);
  }
})(window);
{'fraction_non_alphanumeric': 0.12779740871613662, 'fraction_numerical': 0.01060070671378092, 'mean_word_length': 3.7458100558659218, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '359994', 'n_tokens_mistral': 537, 'n_tokens_neox': 506, 'n_words': 154}