<script id="transaction_cross_domain_analytics">
  if (typeof GOVUK.analytics != "undefined") {
    GOVUK.analytics.addLinkedTrackerDomain('<%= transaction.department_analytics_profile %>', 'transactionTracker', 'service.gov.uk');
  }
</script>

<script id="transaction_cross_domain_analytics">
  if (typeof GOVUK.analytics != "undefined") {
    GOVUK.analytics.addLinkedTrackerDomain('<%= transaction.department_analytics_profile %>', 'transactionTracker', '<%= URI.parse(transaction.link).host %>');
  }
</script>

Support cross-domain tracking for any destination
Support cross-domain tracking for any destination
