Skip to content

Commit 826a465

Browse files
committed
Revert "remove front page from atianalytics params"
This reverts commit 8579af6.
1 parent b758514 commit 826a465

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/app/components/ATIAnalytics/params/frontPage/buildParams.test.ts

+14
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ const validURLParams = {
4343
statsDestination: requestContext.statsDestination,
4444
};
4545

46+
const frontPage = {
47+
metadata: {
48+
analyticsLabels: {
49+
counterName: 'service.page',
50+
},
51+
locators: {
52+
curie:
53+
'http://www.bbc.co.uk/asset/00000000-0000-0000-0000-000000000000/desktop/domestic',
54+
},
55+
language: 'language',
56+
title: 'title',
57+
},
58+
};
59+
4660
const fixPage = {
4761
metadata: {
4862
analyticsLabels: {

src/app/components/ATIAnalytics/params/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ import {
2525
buildPageATIParams,
2626
buildPageReverbParams,
2727
} from './buildParams';
28+
import {
29+
buildIndexPageATIParams,
30+
buildIndexPageATIUrl,
31+
} from './frontPage/buildParams';
2832
import { RequestContextProps } from '../../../contexts/RequestContext';
2933
import { ServiceConfig } from '../../../models/types/serviceConfig';
3034
import {
@@ -181,4 +185,4 @@ export const buildATIEventTrackingParams = ({
181185
);
182186

183187
return buildParams(data as PageData, requestContext, serviceContext);
184-
};
188+
};

0 commit comments

Comments
 (0)