diff --git a/spec/javascripts/admin/analytics-modules/ga4-button-setup.spec.js b/spec/javascripts/admin/analytics-modules/ga4-button-setup.spec.js index fb8af06682c..089b68df76a 100644 --- a/spec/javascripts/admin/analytics-modules/ga4-button-setup.spec.js +++ b/spec/javascripts/admin/analytics-modules/ga4-button-setup.spec.js @@ -18,7 +18,7 @@ describe('GOVUK.analyticsGa4.analyticsModules', function () { ga4ButtonSetup.init() expect(button.dataset.ga4Event).toEqual( - '{"event_name":"navigation","type":"button","text":"Button","section":"Title","action":"Button","method":"primary_click"}' + '{"event_name":"navigation","type":"button","text":"Button","method":"primary_click"}' ) }) @@ -29,7 +29,7 @@ describe('GOVUK.analyticsGa4.analyticsModules', function () { ga4ButtonSetup.init() expect(button.dataset.ga4Event).toEqual( - '{"event_name":"navigation","type":"button","text":"Button","section":"Title","action":"Button","method":"primary_click"}' + '{"event_name":"navigation","type":"button","text":"Button","method":"primary_click"}' ) }) @@ -42,7 +42,7 @@ describe('GOVUK.analyticsGa4.analyticsModules', function () { ga4ButtonSetup.init() expect(button.dataset.ga4Event).toEqual( - '{"event_name":"custom_event_name","type":"button","text":"Button","section":"Title","action":"Button","method":"primary_click"}' + '{"event_name":"custom_event_name","type":"button","text":"Button","method":"primary_click"}' ) }) @@ -56,7 +56,7 @@ describe('GOVUK.analyticsGa4.analyticsModules', function () { ga4ButtonSetup.init() expect(link.dataset.ga4Event).toEqual( - '{"event_name":"navigation","type":"button","text":"Link","section":"Title","action":"Link","method":"primary_click"}' + '{"event_name":"navigation","type":"button","text":"Link","method":"primary_click"}' ) }) }) diff --git a/spec/javascripts/admin/analytics-modules/ga4-form-setup.spec.js b/spec/javascripts/admin/analytics-modules/ga4-form-setup.spec.js index ad3c00b7eaa..ca0b083fa45 100644 --- a/spec/javascripts/admin/analytics-modules/ga4-form-setup.spec.js +++ b/spec/javascripts/admin/analytics-modules/ga4-form-setup.spec.js @@ -18,7 +18,7 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4FormSetup', function () { Ga4FormSetup.init() expect(container.dataset.ga4Form).toEqual( - '{"event_name":"form_response","section":"Title","action":"button"}' + '{"event_name":"form_response","action":"button"}' ) }) }) diff --git a/spec/javascripts/admin/analytics-modules/ga4-link-setup.spec.js b/spec/javascripts/admin/analytics-modules/ga4-link-setup.spec.js index 72337dd38d7..5980855374e 100644 --- a/spec/javascripts/admin/analytics-modules/ga4-link-setup.spec.js +++ b/spec/javascripts/admin/analytics-modules/ga4-link-setup.spec.js @@ -17,7 +17,7 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4LinkSetup', function () { Ga4LinkSetup.init() expect(link.dataset.ga4Event).toEqual( - '{"event_name":"navigation","type":"generic_link","section":"Title","method":"primary_click"}' + '{"event_name":"navigation","type":"generic_link","method":"primary_click"}' ) }) @@ -28,7 +28,7 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4LinkSetup', function () { Ga4LinkSetup.init() expect(link.dataset.ga4Event).toEqual( - '{"event_name":"navigation","type":"button","section":"Title","method":"primary_click"}' + '{"event_name":"navigation","type":"button","method":"primary_click"}' ) }) }) diff --git a/spec/javascripts/admin/analytics-modules/ga4-visual-editor-event-handlers.spec.js b/spec/javascripts/admin/analytics-modules/ga4-visual-editor-event-handlers.spec.js index 155023f92e8..fef6eb4a560 100644 --- a/spec/javascripts/admin/analytics-modules/ga4-visual-editor-event-handlers.spec.js +++ b/spec/javascripts/admin/analytics-modules/ga4-visual-editor-event-handlers.spec.js @@ -1,6 +1,5 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4VisualEditorEventHandlers', function () { it('triggers ga4 tracking on visualEditorSelectChange event', function () { - document.title = 'Title - Text' const container = document.createElement('div') const select = document.createElement('select') container.setAttribute('data-module', 'ga4-visual-editor-event-handlers') @@ -28,8 +27,6 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4VisualEditorEventHandlers', fun event_name: 'select_content', type: 'select', text: 'DROPDOWN', - section: 'Title', - action: 'DROPDOWN', tool_name: 'Visual Editor' } @@ -40,7 +37,6 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4VisualEditorEventHandlers', fun }) it('triggers ga4 tracking on visualEditorButtonClick event', function () { - document.title = 'Title - Text' const container = document.createElement('div') const button = document.createElement('button') container.setAttribute('data-module', 'ga4-visual-editor-event-handlers') @@ -70,8 +66,6 @@ describe('GOVUK.analyticsGa4.analyticsModules.Ga4VisualEditorEventHandlers', fun text: 'BUTTON', external: 'false', method: 'primary click', - section: 'Title', - action: 'select', tool_name: 'Visual Editor' }