diff --git a/app/uk/gov/hmrc/merchandiseinbaggage/views/layouts/govukLayout.scala.html b/app/uk/gov/hmrc/merchandiseinbaggage/views/layouts/govukLayout.scala.html index 5e833eeca..9010f994e 100644 --- a/app/uk/gov/hmrc/merchandiseinbaggage/views/layouts/govukLayout.scala.html +++ b/app/uk/gov/hmrc/merchandiseinbaggage/views/layouts/govukLayout.scala.html @@ -16,6 +16,8 @@ @import uk.gov.hmrc.govukfrontend.views.viewmodels.header.Header @import uk.gov.hmrc.merchandiseinbaggage.views.html.components +@import uk.gov.hmrc.hmrcfrontend.views.html.components.HmrcReportTechnicalIssue +@import uk.gov.hmrc.hmrcfrontend.views.html.helpers.HmrcTrackingConsentSnippet @this( govukTemplate: GovukTemplate, @@ -24,6 +26,7 @@ govukBackLink: GovukBackLink, phaseBanner: components.phaseBanner, hmrcReportTechnicalIssue: HmrcReportTechnicalIssue, +hmrcTrackingConsentSnippet: HmrcTrackingConsentSnippet, appConfig: AppConfig ) @@ -39,6 +42,11 @@ maybeBackButtonUrl: Option[play.api.mvc.Call] )(contentBlock: Html)(implicit messages: Messages, appConfig: AppConfig) +@headDefault = { + @headBlock + @hmrcTrackingConsentSnippet() +} + @headerDefault = { @headerBlock.getOrElse { @govukHeader(Header( @@ -88,7 +96,7 @@ @govukTemplate( htmlLang = Some(messages.lang.code), pageTitle = pageTitle, - headBlock = headBlock, + headBlock = Some(headDefault), headerBlock = headerDefault, beforeContentBlock = Some(beforeContentDefault), footerBlock = footerDefault, diff --git a/build.sbt b/build.sbt index 8fa445748..36f3bd401 100644 --- a/build.sbt +++ b/build.sbt @@ -18,8 +18,7 @@ lazy val microservice = Project(appName, file(".")) TwirlKeys.templateImports ++= Seq( "uk.gov.hmrc.merchandiseinbaggage.config.AppConfig", "uk.gov.hmrc.govukfrontend.views.html.components._", - "uk.gov.hmrc.govukfrontend.views.html.helpers._", - "uk.gov.hmrc.hmrcfrontend.views.html.components._" + "uk.gov.hmrc.govukfrontend.views.html.helpers._" ), // *************** // Use the silencer plugin to suppress warnings diff --git a/conf/application.conf b/conf/application.conf index 97937bca4..d09a66f15 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -45,7 +45,7 @@ play.modules.enabled += "play.modules.reactivemongo.ReactiveMongoHmrcModule" play.modules.enabled += "uk.gov.hmrc.merchandiseinbaggage.config.MerchandiseInBaggageFrontendConfigModule" -play.filters.headers.contentSecurityPolicy = "default-src 'self' 'unsafe-inline' localhost:9000 localhost:9032 www.google-analytics.com data:" +play.filters.headers.contentSecurityPolicy = "default-src 'self' 'unsafe-inline' localhost:9000 localhost:9032 localhost:12345 www.googletagmanager.com www.google-analytics.com data:" # Play Modules # ~~~~ @@ -130,6 +130,10 @@ google-analytics { host = auto } +tracking-consent-frontend { + gtm.container = "a" +} + contact-frontend { host = "http://localhost:9250" } diff --git a/project/AppDependencies.scala b/project/AppDependencies.scala index 725fa2437..3047a23fa 100644 --- a/project/AppDependencies.scala +++ b/project/AppDependencies.scala @@ -5,8 +5,8 @@ object AppDependencies { val compile = Seq( "uk.gov.hmrc" %% "bootstrap-frontend-play-27" % "3.0.0", - "uk.gov.hmrc" %% "play-frontend-hmrc" % "0.17.0-play-27", - "uk.gov.hmrc" %% "play-frontend-govuk" % "0.53.0-play-27", + "uk.gov.hmrc" %% "play-frontend-hmrc" % "0.27.0-play-27", + "uk.gov.hmrc" %% "play-frontend-govuk" % "0.54.0-play-27", "uk.gov.hmrc" %% "simple-reactivemongo" % "7.30.0-play-27", "com.github.pureconfig" %% "pureconfig" % "0.13.0", "com.beachape" %% "enumeratum-play" % "1.5.13"